Home » excel » Excel rounding up or down to specific number

# Excel rounding up or down to specific number

Questions:

I can’t seem to figure out a formula in excel for rounding up or down numbers to end in either 49 or 99.

What I’m looking to do

\$824 should round down to \$799; \$825 should round up to \$849; \$874 should round up to \$899; \$873 should round down to \$849

The number should round up or down to whichever number it is closest to.

Since it’s always 49 or 99 you can use MROUND like this:

``````=MROUND(A4,50)-1
``````

If you have a reasonably small range and you want other unique values that are not multiples of each other you can use a build-in lookup function like this (replace ‘A1’ with your value or cell address):

``````=LOOKUP(A1, {0,575,625,675,725,775,825,875,900}, {"Too Low",599,649,699,749,799,849,899,"Over"})
``````

The lookup function allows you to do odd rounding such as your referring to by rounding 874 up instead of down. Alter the equation like this for this offset.

``````=LOOKUP(A1, {0,574,625,674,725,774,825,874,900}, {"Too Low",599,649,699,749,799,849,899,"Over"})
``````

``````=ROUND(A1/50,0)*50-1
``````

So essentially, just round to the nearest 50 then subtract 1.

``````=IF(ABS(MROUND(A1;100)-1-A1)<=ABS(MROUND(A1;50)-1-A1);MROUND(A1;100)-1;MROUND(A1;50)-1)
``````824 799