Formula for rounding to the nearest nickel

itjr212

Board Regular
Joined
Sep 15, 2009
Messages
50
Hello,

Is there a formula that can round numbers to the nearest nickel?

I am trying to get the following:

Numbers Result
11.19 11.20
11.87 11.90
9.72 9.70

Also, is there a way to filter on any numbers that don't end in 0 or 5? I am trying to round off a large number of data and the formulas I am trying are not showing me the result I am looking for. Any help would be greatly appreciated

Thanks,

itjr212
 

Excel Facts

Who is Mr Spreadsheet?
Author John Walkenbach was Mr Spreadsheet until his retirement in June 2019.
Hi,

You can try =ROUND(A1;1) / The formula is in cell B1.

Format of cel B1 is number with two digits.

There's maybe a smarter way, but this works. Don't know the filter question.


A1 11,11 B1 11,10
A2 11,12 B2 11,10 etc.
11,13 11,10
11,14 11,10
11,15 11,20
11,16 11,20
11,17 11,20
11,18 11,20
11,19 11,20
11,2 11,20
 
Upvote 0
Well this might be a little convoluted, but it works well.

=IF(0.01*RIGHT(E11,1)< 0.05,E11-(0.01*RIGHT(E11,1)),E11-(0.01*RIGHT(E11,1))+0.05)

If you are filtering in a table the just used the filter under Home - Editing - Sort - Filtering and use the number filters to filter where equal to 0 or 5
 
Upvote 0
Actually, you're title/request doesn't match the sample you gave...

The nearest nickel to 11.87 is 11.85 (NOT 11.9)

Your example seems that you want the nearest DIME...


For nearest Nickel
=ROUND(A1/5,2)*5

For nearest Dime
=ROUND(A1/10,2)*10


Hope that helps.
 
Upvote 0
Hello,

Is there a formula that can round numbers to the nearest nickel?

I am trying to get the following:

Numbers Result
11.19 11.20
11.87 11.90
9.72 9.70

Also, is there a way to filter on any numbers that don't end in 0 or 5? I am trying to round off a large number of data and the formulas I am trying are not showing me the result I am looking for. Any help would be greatly appreciated

Thanks,

itjr212
If wanting to round to the nearest nickel shouldn't 11.87 round down to 11.85?

This will round to the NEAREST nickel:

=ROUND(A2/0.05,0)*0.05

I'm not sure about your filter question. That might be a bit complicated. In Excel a number like 9.70 doesn't actually end with 0. It ends with 7. The 0 is there just as a formatting style and is for display purposes only.
 
Upvote 0

Forum statistics

Threads
1,224,566
Messages
6,179,558
Members
452,928
Latest member
101blockchains

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