x
• Status: Solved
• Priority: Medium
• Security: Public
• Views: 327

# Use cell value to nearest whole number in concatenate function

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
robinbernett
2 Solutions

Commented:
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

Commented:
If B1 is the decimal number, this perhaps?

=A1 & ROUND(B1,0)
0

Commented:
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 Commented:
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 Commented:
A wizard, and sage and a genius to my rescue!  Very grateful as ever.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.