FLOOR.MATH function
FLOOR.MATH rounds a number down to the nearest multiple you choose, such as the previous 5 or 0.5. It also handles negative numbers in a predictable direction.
Example
Read it as a sentence: round -5.5 down to the nearest multiple of 2, which gives -6.
A
B
C
D
1
-6
2
3
Syntax
FLOOR.MATH(number, [significance], [mode])
Arguments in [square brackets] are optional.
-
number(required) - The value to round down.
-
significance(optional) - The multiple to round to. Defaults to 1.
-
mode(optional) - For negative numbers: 0 or omitted rounds away from zero, any other value rounds toward zero.
Returns: The number rounded down to the nearest multiple of significance.
What Excel actually returns
Each formula below was run in desktop Excel. The result is exactly what the cell showed, errors included.
| Formula | Excel shows | Case |
|---|---|---|
=FLOOR.MATH(2.5) | 2 | 2.5 |
=FLOOR.MATH(-2.5) | -3 | -2.5 |
=FLOOR.MATH(2.5,2) | 2 | 2.5, sig 2 |
=FLOOR.MATH(-2.5,2) | -4 | -2.5, sig 2 |
=FLOOR.MATH(2.5,0) | 0 | Sig 0 |
=FLOOR.MATH(2.5,-2) | 2 | Negative sig -2 |
=FLOOR.MATH("abc") | #VALUE! | Text |
=FLOOR.MATH(-2.5,1,"x") | #VALUE! | Mode text |
Watch out for
- Rounding 'down' on a negative number moves it to a larger magnitude by default.
Where it works
- Excel
- FLOOR.MATH arrived in Excel 2013. Older versions do not have it.
- Google Sheets
- Same name, same behaviour for everyday use.
Part of Math and trig functions. Every result on this page was measured in desktop Excel, build 16.0.20527. Last updated .