FLOOR.MATH rounds a number down (toward zero by default, or away from zero in mode 1) to the nearest multiple of a significance you choose. It is the go-to function when quantities, prices or times must fit into whole units, packs or intervals.
=FLOOR.MATH(number, [significance], [mode])What does FLOOR.MATH do?
FLOOR.MATH takes any number and rounds it down to a multiple of a significance you specify. If you leave the significance out, it rounds down to the nearest whole number. Unlike plain rounding, you control the step size, so you can snap values to 5, 0.25, 50 or any other unit that matters to your work.
This matters because real-world quantities rarely land on tidy numbers. You may need to fit items into full boxes, bill in 15-minute blocks, or set prices that end in .95. FLOOR.MATH does that adjustment in one step, consistently, without manual editing or helper columns.
A typical situation: a warehouse packs products in cases of 12. An order for 50 units needs 5 cases, because 4 cases hold only 48. =FLOOR.MATH(50,12) returns 48, the largest multiple of 12 that does not exceed 50, which tells you how many units fit into full cases. From there, a simple subtraction shows the remainder.
When to use FLOOR.MATH
- Packing orders into full boxes, cases or pallets
- Billing time in fixed increments such as 15 or 30 minutes
- Setting price points that end in a chosen value, like .95
- Grouping ages, scores or measurements into bands
- Rounding down to the nearest 5 or 10 for reporting
- Calculating full periods for subscriptions or rentals
FLOOR.MATH syntax
=FLOOR.MATH(number, [significance], [mode])| Argument | Required? | What to enter |
|---|---|---|
number | Required | The value you want to round down. It can be a number, a cell reference or a formula result. Example: 50 or B2. |
significance | Optional | The multiple to round down to. If omitted, it defaults to 1, so the result is a whole number. Example: 12 rounds down to a multiple of 12. |
mode | Optional | Controls direction for negative numbers. Omit it or use 0 to round toward zero; use any non-zero value to round away from zero. Example: 1 changes how -50 is rounded. |
What it returns: A number rounded down to the nearest multiple of significance. The result is numeric and can be used in further calculations. If significance is omitted, the result is the nearest whole number at or below the input (toward zero by default).
FLOOR.MATH examples
1 Example 1: Round a single number down to the nearest 5
The goal is to snap a raw count to the nearest lower multiple of 5 for a quick summary. The formula =FLOOR.MATH(B2,5) takes the value in B2 and finds the largest multiple of 5 that does not exceed it. With 47 in B2, the multiples of 5 below it are 45 and 40, so the result is 45. The significance is 5 and mode is omitted, which is fine for positive numbers.
| A | B | C | D | E | |
|---|---|---|---|---|---|
| 1 | Item | Count | |||
| 2 | Pens | 47 | 45 | ||
| 3 | Pencils | 23 | |||
| 4 | Erasers | 58 | |||
| 5 |
2 Example 2: Pack orders into full cases of 12
A warehouse ships in cases of 12 and needs to know how many units fit into full cases. The formula =FLOOR.MATH(B2,12) rounds the order quantity down to the nearest multiple of 12. For an order of 50, the largest multiple of 12 not exceeding 50 is 48, so 48 units go into full cases. The remaining 2 units are handled separately, for example with =B2-FLOOR.MATH(B2,12).
| A | B | C | D | E | |
|---|---|---|---|---|---|
| 1 | Order | Units | |||
| 2 | ORD-101 | 50 | 48 | ||
| 3 | ORD-102 | 37 | |||
| 4 | ORD-103 | 24 | |||
| 5 |
3 Example 3: Bill support time in 15-minute blocks
Consultants bill in 15-minute increments, and the billing system records minutes as decimals of an hour. The formula =FLOOR.MATH(B2,0.25) rounds the logged hours down to the nearest quarter hour. For 1.4 hours, the multiples of 0.25 below it are 1.25 and 1.00, so the billable time is 1.25 hours. Multiplying by the hourly rate then gives the charge.
| A | B | C | D | E | |
|---|---|---|---|---|---|
| 1 | Client | Hours | |||
| 2 | Acme | 1.4 | 1.25 | ||
| 3 | Beta Ltd | 2.1 | |||
| 4 | Gamma | 0.9 | |||
| 5 |
4 Example 4: Set prices that end in .95
A retailer wants shelf prices to end in .95. The formula =FLOOR.MATH(B2-0.05,0.1)+0.05 first shifts the cost down by 0.05, rounds to the nearest lower 0.10, then adds 0.05 back. For a cost of 12.34, 12.34 minus 0.05 is 12.29, which rounds down to 12.20, and adding 0.05 gives 12.25. The result is the highest price ending in .95 that does not exceed the original cost plus a small margin.
| A | B | C | D | E | |
|---|---|---|---|---|---|
| 1 | Product | Cost | |||
| 2 | Mug | 12.34 | 12.25 | ||
| 3 | T-shirt | 8.76 | |||
| 4 | Notebook | 4.12 | |||
| 5 |
5 Example 5: Group ages into 10-year bands
A survey report groups respondents into 10-year age bands, and the band start is the lower multiple of 10. The formula =FLOOR.MATH(B2,10) rounds each age down to the nearest multiple of 10. For age 34, the result is 30, which represents the 30–39 band. The same formula works for any age, so the report stays consistent.
| A | B | C | D | E | |
|---|---|---|---|---|---|
| 1 | Respondent | Age | |||
| 2 | R-01 | 34 | 30 | ||
| 3 | R-02 | 27 | |||
| 4 | R-03 | 45 | |||
| 5 |
Common FLOOR.MATH errors and how to fix them
| Error | Why it happens | How to fix it |
|---|---|---|
| #VALUE! | The number or significance argument is text that Excel cannot interpret as a number, such as a word or a number stored with stray spaces. | Check the source cell and convert it to a real number, for example with VALUE or by removing spaces. Ensure the significance is numeric. |
| #DIV/0! | The significance argument is zero, so there is no valid multiple to round to. | Use a non-zero significance, such as 1, 5 or 0.25. If the significance comes from a cell, guard against zero with IF. |
| #NUM! | The result is too large or too small for Excel to represent, often caused by an extremely small significance with a very large number. | Use a sensible significance for the scale of the number, or split the calculation into smaller steps. |
| Unexpected result for negative numbers | Mode is omitted or zero, so negative numbers round toward zero, which may not match the intended direction. | Set mode to a non-zero value (for example 1) to round negative numbers away from zero, and test with a negative sample. |
Tips for using FLOOR.MATH
- Omit the significance to round down to a whole number; it defaults to 1.
- Use a decimal significance such as 0.25 or 0.05 to work in fractions of a unit.
- Remember that mode only affects negative numbers; positive results are the same in both modes.
- To find the remainder after rounding, subtract the FLOOR.MATH result from the original number.
- Test your formula with a value exactly on a multiple to confirm it stays unchanged.
- Combine FLOOR.MATH with
IFto handle zero or blank significance gracefully.
Frequently asked questions
What is the difference between FLOOR.MATH and FLOOR?
FLOOR.MATH is the newer function and handles negative numbers with a mode argument. The older FLOOR requires number and significance to have the same sign and does not have a mode argument. For new work, FLOOR.MATH is usually the better choice.
Does FLOOR.MATH round toward zero or away from zero?
By default it rounds toward zero. For positive numbers that means down to the lower multiple. For negative numbers, mode 0 or omitted rounds toward zero, while a non-zero mode rounds away from zero.
Can I round down to the nearest 0.5?
Yes. Use 0.5 as the significance, for example =FLOOR.MATH(2.7,0.5), which returns 2.5. Any positive decimal works as a significance.
Why does FLOOR.MATH return the same number sometimes?
If the number is already an exact multiple of the significance, rounding down leaves it unchanged. For example, =FLOOR.MATH(24,12) returns 24.
Related functions
Every example on this page was recalculated by SheetSkill’s spreadsheet engine. FLOOR.MATH reference