Excel rounding off decimals

alliswell

Board Regular
Joined
Mar 16, 2020
Messages
204
Office Version
  1. 2007
Platform
  1. Windows
  2. Mobile
Hi everybody

I want to round off in decimal places
For example :
If its 1.1 then it shud become 1
If its 1.12 then 1.1
If its 1.125 then 1.3 and so on

And also how to do through cell format please show me to automatically take in effect
 

Excel Facts

Select all contiguous cells
Pressing Ctrl+* (asterisk) will select the "current region" - all contiguous cells in all directions.
I don't understand your logic.

Your first example goes from 1 decimal place to 0.
Your second goes from 2 decimal places to 1.
Your third goes from 3 decimal places to 1.
(And I don't see how you would get 1.3 from 1.125. Did you actually mean 1.13?)

Are you just trying to drop one decimal spot (however long the entry is) and round it to that?
 
Upvote 0
And will every entry have at least one decimal place?

Also, are you really still using Excel 2007, or something more recent. There are a bunch of new functions that would make this easier, if you have access to them.
 
Upvote 0
If my assumptions are correct (you are just trying to reduce the number of decimal places by one and round), and as long as you always have at least one decimal place, you could use a formula like this for an entry in cell A1:
Excel Formula:
=ROUND(A1,LEN(RIGHT(A1,LEN(A1)-FIND(".",A1)))-1)

1735244786962.png
 
Upvote 0
If my assumptions are correct (you are just trying to reduce the number of decimal places by one and round), and as long as you always have at least one decimal place, you could use a formula like this for an entry in cell A1:
Excel Formula:
=ROUND(A1,LEN(RIGHT(A1,LEN(A1)-FIND(".",A1)))-1)

View attachment 120661
Yes joe its working. Thanks a lot. Just a minor issue. If its 1 in A1, it shows value error #VALUE!, if its 1 then must show 1.

Your assumption was right. Actually i made a mistake in explaining. Sorry for that.
 
Upvote 0
Try this:

Excel Formula:
=ROUND(A1,LEN(TEXT(MOD(A1,1),"0.0#####"))-3)
 
Upvote 0
Yes joe its working. Thanks a lot. Just a minor issue. If its 1 in A1, it shows value error #VALUE!, if its 1 then must show 1.

Your assumption was right. Actually i made a mistake in explaining. Sorry for that.
Phuoc's answer should do what you want.
 
Upvote 0

Forum statistics

Threads
1,225,360
Messages
6,184,508
Members
453,237
Latest member
lordleo

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