Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie

Excel Custom Format

Options
  • 12-06-2019 7:21pm
    #1
    Registered Users Posts: 1,016 ✭✭✭


    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 Posts: 1,016 ✭✭✭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 Posts: 4,130 ✭✭✭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