Rounding to a specific decimal intervals

immikefazz

New Member
Joined
Jan 22, 2004
Messages
6
Not a newbie to Excel, but I do run into my share of questions. Here's one:

I have a column of values (inches) that I would like to round to the nearest 0.25 (inches). I have yet to find a way to do this. Ceiling or Floor will take me either up or down, but no ONE function will round both UP and DOWN to the nearest 0.25.

Any idea?

Here's a visual example of what I'm looking to do...

imageone0qd.jpg


In the DEPTH column, I want to round each number either up or down to the nearest quarter-inch (0.25). For instance, the value 0.68 will round up to 0.75, the value 1.02 will round down to 1.00, 1.36 goes to 1.25, and so on.

Thanks in advance for any help.
 

Some videos you may like

Excel Facts

What does custom number format of ;;; mean?
Three semi-colons will hide the value in the cell. Although most people use white font instead.

Seti

Well-known Member
Joined
May 19, 2002
Messages
2,916
Here is one solution assuming your number to round is in C3. You could also make the .25 a variable in some cell and change it if needed.

=ROUND(C3/0.25,0)*0.25
 

Scott Huish

MrExcel MVP
Joined
Mar 17, 2004
Messages
19,958
Office Version
  1. 365
  2. 2010
Platform
  1. Windows
If you load the Analysis Toolpak:

=MROUND(C3,0.25)
 

Watch MrExcel Video

Forum statistics

Threads
1,122,964
Messages
5,599,069
Members
414,281
Latest member
Engjamal2021

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
Top