Rounding while still seeing ".0"

sassriverrat

Well-known Member
Joined
Oct 4, 2018
Messages
655
Good Morning,

I'm trying to use a simple rounding formula but I don't want to lose the ".0" when a number, say 14.96, is rounded up to 15. I cannot format the cell itself. Ideas on how to do this. It's probably super simple but I've been brain farting all afternoon/evening....
 
Re: Rounding, having the decimal place with seeing the decimal point

Modifying the existing suggestions to remove the decimal. Assumed no negative values.

="F/"&TEXT(ROUND(A1*10,0),"0")&"//"

="F/"&TEXT(ROUND(A1,1)*10,"0")&"//"

="F/"&TEXT(A1*10,"0")&"//"

=TEXT(A1*10,"F\/0\/\/")

There are probably other ways to achieve the same result.
 
Upvote 0

Excel Facts

What is =ROMAN(40) in Excel?
The Roman numeral for 40 is XL. Bill "MrExcel" Jelen's 40th book was called MrExcel XL.
Re: Rounding, having the decimal place with seeing the decimal point

And what do you get, instead?

Huh....so it was still producing a decimal. I closed the workbook and reopened it and now it seems to be working. Not sure why that happened but thank you!
 
Upvote 0
Re: Rounding, having the decimal place with seeing the decimal point

jasonb75 said:
="F/"&TEXT(ROUND(A1*10,0),"0")&"//"
Using ROUND(A1*10,1) or ROUND(A1*10,0) doesn't make any difference because the text formatting; but I agree that ",0" is neater. I like your customized format.

Bye
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,170
Members
453,021
Latest member
Justyna P

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