Example 1
Find the start of a 10-year age band
B2 =FLOOR.MATH(A2,10)
Result: 30
Anyone from 30 to 39 gets 30, which makes a clean grouping column.
B2 =FLOOR.MATH(A2,10) returns 30
Rounds a number down to the previous multiple of a value you choose, such as 10, 25 or 0.25. By default it rounds down to a whole number.
Syntax
=FLOOR.MATH(, , )
Excel 2013 and later, including Excel for Microsoft 365 and Excel for the web.
Try it
Edit the formula in B2 or change the inputs. The sheet recalculates as you type.
B2 =FLOOR.MATH(A2,10) returns 30
FLOOR.MATH rounds a number down to the previous multiple of another number. It answers questions like "which band does this value start in?": an age of 37 sits in the 30s, an order of 1,240 sits in the 1,000 to 1,499 band.
=FLOOR.MATH(37, 10) returns 30. =FLOOR.MATH(137, 25) returns 125. =FLOOR.MATH(4.8) returns 4, since significance defaults to 1. A number that is already a multiple stays as it is.
For negative numbers, "down" normally means further from zero: =FLOOR.MATH(-5.5, 2) returns -6, because -6 is the next multiple of 2 below -5.5. If mode is any non-zero value, FLOOR.MATH rounds negatives towards zero instead, so =FLOOR.MATH(-5.5, 2, 1) returns -4. Only workbooks with negative values need mode.
The classic use is a helper column of band start values, which you can then count or sum with COUNTIFS or SUMIFS. Put =FLOOR.MATH(B2, 500) next to each order, and every order from 1,000 to 1,499 shows 1,000. Group ages, salaries, or distances the same way. The result is also a clean label for a chart axis.
=FLOOR.MATH(x).CEILING.MATH is the mirror image and rounds up.The older FLOOR function needs both arguments and returns #NUM! when a positive number is paired with a negative significance. FLOOR.MATH ignores the sign of significance, treats a missing significance as 1, and gives you the mode argument for negatives. Use it unless the file has to open in Excel 2010 or earlier. FLOOR.PRECISE is a close cousin that ignores signs altogether.
Because dates are numbers, FLOOR.MATH can round a time down to a block, such as =FLOOR.MATH(A2, TIME(0,15,0)) for the previous quarter hour. Remember to format the result as a time.
FLOOR.MATH needs numbers. Text returns #VALUE!.
B2.10, 500 or 0.25. If you leave it out, it is 1. The sign of significance is ignored.0 or omitted rounds away from zero (-5.5 with significance 2 becomes -6). Any other value rounds towards zero (-5.5 becomes -4).Each example is a live sheet. Change the inputs or the formula and watch the result.
Example 1
B2 =FLOOR.MATH(A2,10)
Result: 30
Anyone from 30 to 39 gets 30, which makes a clean grouping column.
B2 =FLOOR.MATH(A2,10) returns 30
Example 2
B2 =FLOOR.MATH(A2,25)
Result: 125
137 sits between 125 and 150, so it goes down to 125.
B2 =FLOOR.MATH(A2,25) returns 125
Example 3
B2 =FLOOR.MATH(A2,0.25)
Result: 7.75
7.9 is above 7.75 and below 8, so it is rounded down to the quarter hour.
B2 =FLOOR.MATH(A2,0.25) returns 7.75
Example 4
B2 =FLOOR.MATH(A2,2)
Result: -6
-6 is the next multiple of 2 below -5.5. The default mode goes away from zero.
B2 =FLOOR.MATH(A2,2) returns -6
Example 5
B2 =FLOOR.MATH(A2,2,1)
Result: -4
Any non-zero mode makes negatives round towards zero, as ROUNDDOWN would.
B2 =FLOOR.MATH(A2,2,1) returns -4
Solve it in the sheet. Every answer is checked, with hints if you need them.
Task 1 of 2
In C2, return the start of the 500-wide band that the value in B2 falls in. Fill it down to C6.
Answer in C2, then it fills down to C6.
#NUM! for a positive number with a negative multiple, so don't assume the two behave alike.#NAME?. Use FLOOR instead if the file must open there.Use `=FLOOR.MATH(B2, 10)` or `=FLOOR.MATH(B2, 100)`. The result is the previous multiple at or below the number.
FLOOR needs both arguments and fails for mixed signs. FLOOR.MATH makes significance optional, ignores its sign, and has a mode argument for negative numbers.
It only affects negative numbers. 0 or omitted rounds away from zero, so -5.5 becomes -6. Any other value rounds towards zero, so -5.5 becomes -4.
Add a helper column with `=FLOOR.MATH(B2, 500)`, then count or sum by that column with COUNTIFS or SUMIFS. Every value from 1,000 to 1,499 shows as 1,000.
`=FLOOR.MATH(x)` and `=INT(x)` give the same answer for any number. FLOOR.MATH can also round down to any multiple, such as 25 or 0.25.
Tracks take you from the basics to modelling, one graded exercise at a time.