Removing decimal places (not hiding them)

ifu06416

Board Regular
Joined
Sep 5, 2011
Messages
56
Office Version
  1. 365
I have formatted column A's data to only show 2 decimal places.

However i also want to add in a written message from column B to the end of the formatted number eg

=A1&" "&"over"

My problem is that if A1 if formatted to 2 dec places (0.75) once the message is added the formatting erraces and i get the full number (0.7678547 over)

Is there any way i can removed all but thhe last 2 dec places so the answer reads 0.75 over

John.
 

Excel Facts

Excel motto
Not everything I do at work revolves around Excel. Only the fun parts.
Use the TEXT function...

=TEXT(A1,"0.00"" over""")

or, as little shorter...

=TEXT(A1,"0.00 ov\er")
 
Upvote 0
You can insert a column next to it, then do =Round(A1,2) or however many digits and copy that down through the whole column.

Copy those new numbers and Paste Values into your previous column with too many decimal places.

Now you have a rounded version of those with less decimal places.


If you don't want it to round and all of the cells have the same amount of digits, you can use Text to Columns and set a limited width, so it will split one cell into 2 at a certain digit. Then you can delete the second column it creates and you are left with your original numbers but with only however many digits you choose.
 
Upvote 0
VoG gets the prize though
Just to point out that, as long as you chose to go the concatenation route, we can eliminate one concatenation from VoG's formula. Instead of this...

=TEXT(A1,"0.00")&" "&"over"

combine all the text into one text constant and use this...

=TEXT(A1,"0.00")&" over"<!-- / message --><!-- sig --><!-- / message --><!-- sig -->
 
Upvote 0

Forum statistics

Threads
1,224,583
Messages
6,179,682
Members
452,937
Latest member
Bhg1984

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top