Rounding in increments of 5,000

AndiH

New Member
Joined
Dec 3, 2009
Messages
41
Excel 2007 - I need to round down in increments of 5000. This rounded number will be referenced in other formulas. Example: 46,000. I'm looking for the result 45,000. If 39,000 I'm looking for the result of 35,000.

Similarly in a different column I need to round up in increments of 5,000. If 42,000 I would need to round up to 45,000. If 47,000 need to round up to 50,000.
 

Excel Facts

What is the fastest way to copy a formula?
If A2:A50000 contain data. Enter a formula in B2. Select B2. Double-click the Fill Handle and Excel will shoot the formula down to B50000.
If the numbers are always positive, then to round down (toward zero)

=floor(a1, 5000)

To round up (away from zero)

=ceiling(a1, 5000)
 
Upvote 0
If you want it to round both ways, try:

=IF(ABS(FLOOR(A1,5000)-A1) < ABS(CEILING(A1,5000)-A1),FLOOR(A1,5000),CEILING(A1,5000))
 
Upvote 0
If you want it to round both ways, try:

=IF(ABS(FLOOR(A1,5000)-A1) < ABS(CEILING(A1,5000)-A1),FLOOR(A1,5000),CEILING(A1,5000))

Is the purpose of this to behave like standard round, to the nearest 5000?

Try

=ROUND(A1/5000,0)*5000
 
Upvote 0
Thanks. I'm good.
icon12.gif
 
Upvote 0

Forum statistics

Threads
1,224,594
Messages
6,179,794
Members
452,943
Latest member
Newbie4296

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