Google Sheets FLOOR Function: How to Round Down
In this article
The FLOOR function in Google Sheets rounds a number down to the nearest multiple of a specified factor. Its syntax is =FLOOR(value, factor), where value is the number you want to round and factor is the multiple to round to. For example, =FLOOR(7.8, 1) returns 7, and =FLOOR(23, 5) returns 20. This is useful for pricing, inventory, time calculations, and any scenario where you need to snap values to a set increment.
What You'll Need
- A Google account with access to Google Sheets (free with any Google account).
- A spreadsheet open in Google Sheets on desktop or mobile.
- Basic familiarity with entering formulas (starting with
=).
Step-by-Step
- Open your spreadsheet. Go to sheets.google.com or open the Google Sheets app on your phone or tablet. Create a new spreadsheet or open an existing one.
- Select the cell where you want the result. Click or tap the cell that should display the rounded-down number. This is where the formula will live.
- Type the formula. Start with an equals sign, then type
FLOORfollowed by an opening parenthesis. For example:=FLOOR(. As you type, Sheets may show a suggestion; you can ignore it and keep typing. - Enter the value. This can be a number, a cell reference, or another formula. For instance,
=FLOOR(A2,uses the number in cell A2. If you want to round a literal number, type it directly, like=FLOOR(7.8,. - Type a comma. This separates the value from the factor. In some regions, the separator may be a semicolon instead of a comma; Google Sheets usually adapts to your locale automatically, but if you see an error, try the other separator.
- Enter the factor. The factor is the multiple you want to round down to. For example, to round down to the nearest 5, type
5. To round down to the nearest 0.25, type0.25. Then close the parenthesis:). - Press Enter (or Return). The cell will display the rounded-down result. If you entered
=FLOOR(7.8, 1), you should see 7. If you entered=FLOOR(23, 5), you should see 20. - Copy the formula down or across if needed. Drag the fill handle (the small square at the bottom-right of the cell) to apply the same formula to other rows. Relative references will adjust automatically.
Common Mistakes
- Using a negative factor. The factor must be positive. If you use a negative number, Google Sheets returns a
#NUM!error. For negative values to round, keep the factor positive; FLOOR rounds away from zero for negative numbers (e.g.,=FLOOR(-7.8, 1)returns -8). - Forgetting the factor. FLOOR requires two arguments. If you omit the factor, you'll get an error. If you want to round down to the nearest integer, use a factor of 1.
- Mixing up FLOOR with ROUNDDOWN. ROUNDDOWN rounds to a specified number of decimal places, while FLOOR rounds to a multiple. For example,
=ROUNDDOWN(7.8, 0)returns 7, but=FLOOR(7.8, 1)also returns 7. However,=FLOOR(7.8, 2)returns 6, whereas ROUNDDOWN cannot round to a multiple of 2. - Using text instead of numbers. If the value or factor is entered as text (e.g., "5" with quotes), FLOOR may return an error or unexpected result. Ensure both arguments are numeric.
- Expecting FLOOR to round up. FLOOR always rounds down (toward zero for positive numbers, away from zero for negative numbers). For rounding up, use CEILING.
Tips
- Use cell references for the factor to change rounding dynamically. For example,
=FLOOR(A2, B2)rounds A2 down to the nearest multiple of B2. - Combine FLOOR with other functions like SUM or ARRAYFORMULA to apply rounding across a range. For instance,
=ARRAYFORMULA(FLOOR(A2:A10, 5))rounds each value in A2:A10 down to the nearest 5. - For time calculations, FLOOR can round times down to the nearest 15 minutes:
=FLOOR(A2, TIME(0,15,0)). - Remember that FLOOR rounds toward zero for positive numbers and away from zero for negative numbers. If you need consistent rounding toward negative infinity, use FLOOR.MATH with a negative sign mode, but note that FLOOR.MATH is available in Google Sheets and works similarly.
- To round down to a whole number, you can also use INT, but INT rounds down to the nearest integer (toward negative infinity), which differs for negative numbers. FLOOR with factor 1 rounds away from zero for negatives.
Troubleshooting
- #NUM! error: Check that the factor is not zero and is positive. Also ensure the value and factor are numeric. If the factor is negative, change it to positive.
- #VALUE! error: One of the arguments is non-numeric. Verify that cell references point to numbers, not text. Use ISNUMBER to test.
- Formula not calculating: Ensure the cell is formatted as a number, not text. If the formula appears as text, the cell may be formatted as plain text; change the format to Number or Automatic.
- Unexpected rounding: Double-check the factor. For example,
=FLOOR(7.8, 2)returns 6, not 8, because it rounds down to the nearest multiple of 2. If you expected 8, you want CEILING. - Locale issues: In some regions, the argument separator is a semicolon instead of a comma. If you get a parse error, try replacing commas with semicolons.
- If that did not work: Try retyping the formula from scratch, ensuring no hidden characters. You can also use the function wizard by clicking Insert > Function and searching for FLOOR.
Frequently Asked Questions
What does the FLOOR function do in Google Sheets?
FLOOR rounds a number down to the nearest multiple of a specified factor. It always rounds toward zero for positive numbers and away from zero for negative numbers.
How is FLOOR different from ROUNDDOWN?
ROUNDDOWN rounds to a set number of decimal places, while FLOOR rounds to a multiple. For example, ROUNDDOWN(7.8, 0) gives 7, and FLOOR(7.8, 1) also gives 7, but FLOOR(7.8, 2) gives 6, which ROUNDDOWN cannot do.
Can I use FLOOR with negative numbers?
Yes. FLOOR rounds negative numbers away from zero. For example, =FLOOR(-7.8, 1) returns -8. The factor must still be positive.
What happens if the factor is zero?
Google Sheets returns a #NUM! error because division by zero is not allowed.
Can I round down to the nearest 0.5?
Yes. Use a factor of 0.5: =FLOOR(7.8, 0.5) returns 7.5.
Is FLOOR available in Google Sheets on mobile?
Yes, the FLOOR function works the same in the Google Sheets mobile app for Android and iOS. You can type the formula directly into a cell.