Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I have a excel sheet that has some values something like below.

My Excel sheet

When I want to get the values by concatenating with a string, points are being erased. The cells format are Number by the way.

If I do =P3 , it gets me 27.655.111

When I do ="(test '"&P3&"')", it gets me (test '27655111'). This is not correct. I need the points in the number.

How to do that ?

Thanks in advance

share|improve this question

migrated from stackoverflow.com Oct 10 '12 at 7:25

This question came from our site for professional and enthusiast programmers.

1  
These aren't floating point numbers, they're thousands-separated numbers. So P3 is equal to 27,655,111 (written the American way). –  nneonneo Oct 10 '12 at 5:57
    
Then how to get the seperators ? –  Kaplan Oct 10 '12 at 5:58
add comment

1 Answer

up vote 1 down vote accepted

Use ="(test '"& TEXT(P3;"#.##0") & "')".
Replace the ; by a , according to your regional settings.
Replace #.##0 by any format string as desired.

share|improve this answer
    
This is what I wanted. I will mark it when I can. Thanks –  Kaplan Oct 10 '12 at 6:00
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.