Google Sheets function · Math
FLOOR in Google Sheets: syntax and examples
FLOOR rounds a value down to the closest multiple of the factor you give. With no factor it rounds to whole numbers, and with 0.05 it works as a price rule.
Syntax
FLOOR(value, [factor])
Arguments
| Argument | Type | Required | What it does |
|---|---|---|---|
value | number | yes | The number to round down. |
factor | number | no | The multiple to round down to. Defaults to 1. |
Examples
The examples use this table, starting in A1:
| Value | Factor |
| 17 | 5 |
| -7.5 | 2 |
| 0.37 | 0.05 |
| 7.8 | 1 |
=FLOOR(17,5)Result: 15
Rounds 17 down to the nearest multiple of 5.
Run in a Google Sheet (English US locale) on .
=FLOOR(A5)Result: 7
Without factor the step is 1, so the result is the integer part for positive numbers.
Run in a Google Sheet (English US locale) on .
=FLOOR(0.37,0.05)Result: 0.35
Rounds down to a step of five cents, a common price rule.
Run in a Google Sheet (English US locale) on .
=FLOOR(-7.5,2)Result: -8
A negative value moves away from zero, to -8, not toward it.
Run in a Google Sheet (English US locale) on .
=ARRAYFORMULA(FLOOR(A2:A5,B2:B5))Result:
| 15 |
| -8 |
| 0.35 |
| 7 |
Runs FLOOR on every row of two columns and returns a column of results.
Run in a Google Sheet (English US locale) on .
Common errors
- A positive value with a negative factor returns #NUM!. Keep the signs consistent.
- A factor of 0 returns #DIV/0!. If the factor comes from a cell, guard against empty cells.
- For negative values FLOOR goes toward minus infinity: FLOOR(-7.5,2) is -8, not -6.
- Text such as "a" returns #VALUE!. A number typed as text, like "17", is still accepted: FLOOR("17",5) returns 15.
Compared with Excel
Same name and arguments as Excel FLOOR. Newer Excel versions also have FLOOR.MATH, and Sheets has it too.