Rounding (up or down) to the nearest 25

mcgonma

Board Regular
Joined
Nov 2, 2011
Messages
158
Office Version
  1. 365
  2. 2013
Platform
  1. Windows
Is there a formula that can be used so that the result of a calculation is then rounded either up or down to the nearest 25.
e.g., if the result is 107, the final number would actually change then be 100; or, if the calculated value was 63, the final number would be 75.
 

Excel Facts

Last used cell?
Press Ctrl+End to move to what Excel thinks is the last used cell.
Note: A40 contained my test value, the formula was in B40
GetLastRow.xlsm
AB
408275
Sheet1
Cell Formulas
RangeFormula
B40B40=INT(A40/25)*25 + IF(MOD(A40,25)>12,25,0)
Is there a way to have this all be part of a cell that is pulling data from other places?
For example:
Currently, B43=B140+B232+B248+B264 and the result is 3,027. I would like to instead have the result be 3,025.
Similarly, B51=B148+B233+B249+B265 and the result is 716. I would like the result to 725 instead
 
Upvote 0
Replace the Cell reference with SUM(range) in both parts of the formula: (see example below)
Cells C41 to F41 are SUMmed, then SUM result is rounded.
GetLastRow.xlsm
BCDEF
4111751020301111
Sheet1
Cell Formulas
RangeFormula
B41B41=INT(SUM(C41:F41)/25)*25 + IF(MOD(SUM(C41:F41),25)>12,25,0)
 
Upvote 1
Solution
Replace the Cell reference with SUM(range) in both parts of the formula: (see example below)
Cells C41 to F41 are SUMmed, then SUM result is rounded.
GetLastRow.xlsm
BCDEF
4111751020301111
Sheet1
Cell Formulas
RangeFormula
B41B41=INT(SUM(C41:F41)/25)*25 + IF(MOD(SUM(C41:F41),25)>12,25,0)
THIS IS PERFECT!!!!! Thank you so much!!!!!
 
Upvote 0
Another option is to use the MROUND function.

Book2
ABCDEF
1117510203011112350
Sheet3
Cell Formulas
RangeFormula
F1F1=MROUND(SUM(A1:E1),25)
 
Upvote 0

Forum statistics

Threads
1,215,073
Messages
6,122,975
Members
449,095
Latest member
Mr Hughes

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