Solved

# Use cell value to nearest whole number in concatenate function

Posted on 2011-03-05
312 Views
I want to concatenate including using a cell that has a numberwith several decimal places. It is formatted to display as to the nearest whole number.   In the concatenated return I also want it to be to the nearest whole number, but it is of course displaying all it's decimal places.  How can I achieve this please?
0
Question by:robinbernett

LVL 24

Expert Comment

ID: 35043873
Am not sure I got you completely but I will try:
Put in C1:
=VALUE(CONCATENATE(A1,B1))
And make sure to format C1 as Number with 0 Decimal places.
0

LVL 24

Accepted Solution

StephenJR earned 250 total points
ID: 35043950
If B1 is the decimal number, this perhaps?

=A1 & ROUND(B1,0)
0

LVL 50

Assisted Solution

barry houdini earned 250 total points
ID: 35043970
You can also use TEXT function like

=A1&" "&TEXT(B1,0)

or FIXED function to set the number of decimal places

=A1&" "&FIXED(B1,0)

regards, barry

0

Author Comment

ID: 35044137
Thanks all.

I couldn't make the VALUE work, but ROUND, TEXT, and FIXED did - so problem solved, and with choice!
Much appreciated - i've often wondered.
0

Author Closing Comment

ID: 35044146
A wizard, and sage and a genius to my rescue!  Very grateful as ever.
0

## Featured Post

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question