Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
If we do not hit our goal we will be forced to close the site.

Current status: https://keepboardsalive.com/

Annual subs are best for most impact. If you are still undecided on going Ad Free - you can also donate using the Paypal Donate option. All contribution helps. Thank you.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.

Excel Custom Format

  • 12-06-2019 07:21PM
    #1
    Registered Users, Registered Users 2 Posts: 1,019 ✭✭✭


    Hi All,

    I have the following in a single text box in excel:

    (-0.02934,-0.02161)

    I want to custom format this single box to look like:

    (-0.029,-0.022)

    Does anyone know the code for the custom format to do this?

    Much thanks


Comments

  • Registered Users, Registered Users 2 Posts: 1,019 ✭✭✭JJJackal


    ="("&ROUND(MID(F41,2,FIND(",",F41)-2),3)&", "&ROUND(MID(F41,FIND(",",F41)+1,LEN(F41)-FIND(",",F41)-1),3)&")"

    This will do the trick :)

    Found it on another forum


  • Registered Users, Registered Users 2 Posts: 4,423 ✭✭✭smuggler.ie


    If this is output of CONCATENATE from two cells, you could do:
    =CONCATENATE(TEXT(A1,"0.000")&","&TEXT(B1,"0.000"))


    482636.JPG


Advertisement