-3

I have a column filled with values like:

   [0,55553656475856 ; -8,34567323546546]

I would like to display them as

   [0,56 ; -8,34 ]

so both numbers displaying only 2 decimal positions. Is there a way to do it in excel (2016) without actually modifying the underlying values or adding extra columns, as these are programmatically read-in later? With a kind of format or so?

2
  • 1
    No, that is a text string and number format will not touch it. You can use a helper column with a formula like below or vba to do it in place. But both will change the underlying value. Commented May 2 at 22:20
  • To preserve the data address for further programmatical use, create a copy of the whole sheet then apply the formula below. Commented May 3 at 5:30

1 Answer 1

1

You can use this formula:

="[" &
TEXT(SUBSTITUTE(MID(A1,2,FIND(";",A1)-3),",","."),"0.00") &
" ; " &
TEXT(SUBSTITUTE(LEFT(RIGHT(A1,LEN(A1)-FIND(";",A1)-1),LEN(RIGHT(A1,LEN(A1)-FIND(";",A1)-1))-1),",","."),"0.00") &
"]"
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.