Rounding Sum to Nearest 100

Andrew Hardscape

Board Regular
Joined
Sep 28, 2003
Messages
136
Hello All!

I am sure this question has come up numerous times. I have a cell that displays the sum of numbers
=P7-P8

I want to round the sum to the nearest 100

Example: $2,550 I want rounded UP to $2,600.00 (the nearest 100)

or $9,249 I want rounded DOWN to the $9,200.00 (the nearest 100)

Can anyone be so kind to provide me with the code?

Thanks in advance!
 
Last edited:

Excel Facts

How can you turn a range sideways?
Copy the range. Select a blank cell. Right-click, Paste Special, then choose Transpose.
Hello Andrew

I hope this is what you are looking for.
Code:
=MROUND(SUM(P7-P8),100)

TotallyConfused
 
Upvote 0
Hello Andrew

I hope this is what you are looking for.
Code:
=MROUND(SUM(P7-P8),100)
Why are you using the SUM function for a straight subtraction of two numbers? Once you remove the SUM function call, your formula would become the same as the one zaska posted in Message #5 .
 
Upvote 0
@Andrew Hardscape
user-offline.png


Please use this formula , it takes care of the negative values too in case P7 < P8

=MROUND(P7-P8,IF(P7-P8>0,100,-100))
 
Last edited:
Upvote 0

Forum statistics

Threads
1,223,903
Messages
6,175,286
Members
452,631
Latest member
a_potato

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