Google Sheets FLOOR.MATH Function: A How-To Guide
In this article
The FLOOR.MATH function in Google Sheets rounds a number down to the nearest integer or to the nearest multiple of a specified significance. It is useful for rounding prices down, grouping values into buckets, or cleaning up data for reports. To use it, type =FLOOR.MATH(number, [significance], [mode]) into a cell, replacing the arguments with your values or cell references. The function is available in all current versions of Google Sheets on desktop and mobile.
What You'll Need
- A Google account with access to Google Sheets (free with any Google account).
- A spreadsheet open in Google Sheets on a computer or the mobile app. The steps below use the desktop browser version; the mobile app works similarly but the formula bar and function suggestions may appear slightly differently.
- Basic familiarity with entering formulas (starting with an equals sign).
Step-by-Step
- Open your spreadsheet. Go to sheets.google.com and open the file you want to work in, or create a new blank spreadsheet.
- Select the cell where you want the result. Click a cell, for example A1, to make it active.
- Start the formula. Type =FLOOR.MATH( (including the opening parenthesis). As you type, Google Sheets may show a suggestion box; you can ignore it or click the function name to insert it.
- Enter the number argument. This is the value you want to round down. You can type a number directly (e.g., 7.8) or click a cell that contains the number (e.g., B2). For example, =FLOOR.MATH(7.8).
- Add the significance argument (optional). After a comma, type the multiple to round down to. If omitted, it defaults to 1. For example, =FLOOR.MATH(7.8, 2) rounds down to the nearest multiple of 2, giving 6. The significance must not be zero; if it is, the function returns an error.
- Add the mode argument (optional). After another comma, type 0 or 1. Mode controls how negative numbers are rounded. If mode is 0 or omitted, negative numbers are rounded toward zero (up). If mode is 1, negative numbers are rounded away from zero (down). For example, =FLOOR.MATH(-7.8, 1, 0) returns -7, while =FLOOR.MATH(-7.8, 1, 1) returns -8. Note that the mode argument only affects negative numbers; positive numbers are always rounded down toward zero.
- Close the parenthesis and press Enter. The cell will display the rounded result. If you see an error, check that you have the correct number of arguments and that the significance is not zero.
- Copy the formula to other cells if needed. Drag the fill handle (the small square at the bottom-right of the cell) to apply the same formula to adjacent cells. Relative references will adjust automatically.
Common Mistakes
- Forgetting the significance argument when you need a multiple. If you omit it, the function rounds down to the nearest integer, not to the nearest 5 or 10. Always include the second argument if you want a specific multiple.
- Using a negative significance. The significance must be positive. A negative value returns a #NUM! error. If you need to round negative numbers, use the mode argument instead.
- Misunderstanding mode for negative numbers. Many people expect FLOOR.MATH(-7.8) to return -8, but with the default mode (0) it returns -7. To round away from zero for negatives, set mode to 1.
- Confusing FLOOR.MATH with FLOOR. The older FLOOR function has different behavior for negative numbers and requires the significance argument. FLOOR.MATH is more flexible and is the recommended function for new spreadsheets.
- Typing a comma instead of a semicolon. In some locales, Google Sheets uses semicolons as argument separators. If your formula returns an error, check your locale settings or try replacing commas with semicolons.
Tips
- Use cell references instead of hard-coded numbers so you can change the input without editing the formula.
- Combine FLOOR.MATH with other functions like SUM or AVERAGE to round aggregated results down to a sensible precision.
- If you need to round up instead, use CEILING.MATH. For standard rounding (nearest), use ROUND.
- To round down to a certain number of decimal places, use the significance 0.1, 0.01, etc. For example, =FLOOR.MATH(3.14159, 0.01) returns 3.14.
- Remember that FLOOR.MATH always rounds toward zero for positive numbers, so it truncates rather than rounds to the nearest. For example, 7.9 becomes 7, not 8.
Troubleshooting
If you see a #NUM! error, the significance is likely zero or negative. Check that the second argument is a positive number. If you see a #VALUE! error, one of the arguments is not a number—for example, a text string or a cell that contains text. Ensure all arguments are numeric or refer to numeric cells. If the formula returns an unexpected result, verify the mode argument: for negative numbers, mode 0 rounds toward zero, mode 1 rounds away from zero. If the formula does not calculate at all, check that the cell is not formatted as text; select the cell, go to Format > Number > Automatic. Also ensure you have not accidentally typed a space or extra character in the formula. If you are using a non-English locale, the argument separator might be a semicolon instead of a comma; try replacing commas with semicolons. If the function name is not recognized, make sure you are using the correct spelling and that you have not included any spaces. Finally, if you copied the formula from another sheet or file, check that the referenced cells exist and contain numbers.
Frequently Asked Questions
What is the difference between FLOOR.MATH and FLOOR?
FLOOR requires a significance argument and rounds negative numbers away from zero by default. FLOOR.MATH has an optional significance (default 1) and an optional mode that controls negative rounding. FLOOR.MATH is generally more flexible and is the recommended function for new spreadsheets.
Can FLOOR.MATH round to a certain number of decimal places?
Yes. Set the significance to 0.1 for one decimal place, 0.01 for two decimal places, and so on. For example, =FLOOR.MATH(3.14159, 0.01) returns 3.14.
Why does FLOOR.MATH(-7.8) return -7 instead of -8?
By default, the mode argument is 0, which rounds negative numbers toward zero (up). To round negative numbers away from zero (down), set mode to 1: =FLOOR.MATH(-7.8, 1, 1) returns -8.
Does FLOOR.MATH work with arrays?
Yes, you can use FLOOR.MATH with an array formula or inside functions like ARRAYFORMULA to apply it to a range. For example, =ARRAYFORMULA(FLOOR.MATH(A1:A10, 2)) rounds down each value in A1:A10 to the nearest multiple of 2.
What happens if I omit the significance argument?
If you omit the significance, it defaults to 1, so the function rounds down to the nearest integer. For example, =FLOOR.MATH(7.8) returns 7.
Is FLOOR.MATH available in the Google Sheets mobile app?
Yes, FLOOR.MATH works in the Google Sheets mobile app for Android and iOS. The formula syntax is the same, though the function suggestion box may look different.