Rounding · About 5 minutes
Round to a multiple with CEILING and FLOOR
ROUND works in decimal places. Sometimes you need steps of another size: menu prices in steps of 5, or bottles in cartons of 12.
CEILING.MATH rounds up to the next multiple. =CEILING.MATH( reads as "round B2 up to the next multiple of 5", so 86.4 becomes 90. FLOOR.MATH rounds down instead, so 87 bottles in cartons of 12 becomes 84.
Older Excel files use CEILING and FLOOR. For positive numbers they work the same way, but in Excel the multiple is required: =CEILING(. (Google Sheets lets you leave it out, and then rounds to a whole number.)
Part of Plus
Free during our founding launch: sign in to unlock this lesson's exercises, the timed practice sets and the rest of Plus. The free lessons stay free, with no account needed.
What CEILING and FLOOR does
CEILING rounds a number up to the next multiple of a step you choose, like the next 5 or the next full pack of 6. FLOOR rounds down to the multiple below. A number that is already a multiple stays as it is.
Use them when things come in fixed sizes: cups sold in packs, chairs set out in rows, times booked in 15-minute slots. ROUND only works in decimal places, so it can't do this on its own.
How to write CEILING and FLOOR
=CEILING.MATH(
- number
- The number to round up, like the cups you need in B2.
- significance
- The step to round to, like 6 for packs of 6. Leave it out and it rounds up to the next whole number.
- mode
- Only changes how negative numbers round. Leave it out for everyday counts.
=FLOOR.MATH(
- number
- The number to round down.
- significance
- The step to round down to. It also defaults to 1.
- mode
- Again, only for negative numbers.
=CEILING(
- number
- The number to round up. FLOOR(number, significance) works the same way, rounding down.
- significance
- The step. In Excel it is required. Google Sheets lets you leave it out and then uses 1.
CEILING and FLOOR worked example
A café orders supplies in packs. In D2 to D4, round each amount needed up to whole packs.
| A | B | C | D | |
|---|---|---|---|---|
| 1 | Item | Need | Pack | Order |
| 2 | Cups | 50 | 6 | 54 |
| 3 | Plates | 38 | 10 | 40 |
| 4 | Forks | 64 | 8 | 64 |
=CEILING.MATH( B2, C2)Round the amount in B2 up to the next multiple of the pack size in C2: 50 cups in packs of 6 becomes 54, 38 plates in packs of 10 becomes 40, and 64 forks in packs of 8 stays 64.Common CEILING and FLOOR mistakes
Excel won't accept the CEILING formula
In Excel, plain CEILING and FLOOR need the step as a second part, like =CEILING(. Add it, or use CEILING.MATH, which can leave the step out.
The order comes up short
FLOOR rounds down, so 50 cups in packs of 6 becomes 48. When you need at least the amount, use CEILING or CEILING.MATH.
The answer is cups, not packs
CEILING gives the rounded amount, 54 cups. For the number of packs, divide by the pack size: 54 / 6 = 9.
CEILING, FLOOR or ROUNDUP?
Use ROUNDUP and ROUNDDOWN for decimal places, like 2 places for a price. Use CEILING and FLOOR for steps of any size, like 5, 12 or 0.25. To round to the nearest step, up or down, MROUND does that.
CEILING.MATH and FLOOR.MATH are in Excel 2013 and later and in Google Sheets. Plain CEILING and FLOOR work in every version, so use them if a file must open in older Excel. For positive numbers both kinds give the same answer.
Questions people ask
How do I round up to the nearest 5 in Excel?
=CEILING.MATH(. 86.4 becomes 90.
How do I round down to a multiple?
=FLOOR.MATH(. 87 becomes 84, the most that fills cartons of 12.
CEILING vs CEILING.MATH: which should I use?
For positive numbers they agree. In Excel, CEILING needs the multiple; CEILING.MATH rounds to a whole number without one. Google Sheets lets you leave the multiple out of CEILING too.
How is this different from ROUND?
ROUND works in decimal places. CEILING and FLOOR work in steps of any size, like 5 or 12.