Concatenate results without decimals

K

kemp

I have two results which I want to concatenate in another cell.
I do not want to have decimals with - does anybody know how to avoid this ?

My example is:

A1=23 (cell format set to 0 decimals)
A2=4 (cell format set to 0 decimals)
In formula line for B2 I set:
=A1&"±"&A2

Then cell B2 shows 23,333333±4,122343 but I like it shows 23±4

Can somebody help?
 
J

Jacob Skaria

Kemp, if you dont want to Round the numbers in those cells use

=TRUNC(A1)&"±"&TRUNC(A2)

If this post helps click Yes
 
S

Stefi

Another solution:
=TEXT(A1,"0")&"±"&TEXT(A2,"0")
Regards,
Stefi


„kemp†ezt írta:
 
R

Rick Rothstein

You might as well save yourself 3 characters...

=TEXT(A1,"0±")&TEXT(A2,"0")
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top