CEILING.MATH rounds a number up (away from zero by default) to the nearest multiple of a significance you choose. It is the go-to function when quantities must be rounded up to a whole box, price step or billing unit.
=CEILING.MATH(number, [significance], [mode])What does CEILING.MATH do?
CEILING.MATH takes a number and pushes it up to the next multiple of a significance value. If you sell items in packs of 12, it turns 50 units into 60; if you bill in 15-minute blocks, it turns 38 minutes into 45. Unlike plain rounding, it never rounds down, so you never fall short of a required quantity.
This matters in everyday office work because many business rules are based on multiples: packaging sizes, price increments, time slots, shipping pallets and tax brackets. Doing that arithmetic by hand is slow and error-prone; CEILING.MATH does it in one formula and keeps the logic visible in the sheet.
A typical situation: a warehouse team receives orders in units but must ship full cartons of 24. For each order line, =CEILING.MATH(B2,24) returns the number of units to pick so the carton is complete. The same pattern works for rounding prices up to the next 0.05 or rounding hours up to the next half hour for client billing.
When to use CEILING.MATH
- Converting order quantities into full packs, cartons or pallets.
- Rounding prices up to the next 0.05, 0.10 or 0.25 increment.
- Billing time in fixed blocks such as 15, 30 or 60 minutes.
- Rounding weights or volumes up to the next shipping bracket.
- Calculating the number of sheets, labels or containers needed for a print run.
- Setting budget figures up to the next whole thousand for planning.
CEILING.MATH syntax
=CEILING.MATH(number, [significance], [mode])| Argument | Required? | What to enter |
|---|---|---|
number | Required | The value you want to round up. It can be a number, a cell reference or a formula result. Example: B2 where B2 contains 47. |
significance | Optional | The multiple to round up to. If omitted, it defaults to 1, so the result is the next whole number. Example: 24 rounds up to the next multiple of 24. |
mode | Optional | Controls rounding for negative numbers. Omitted or 0 rounds negative numbers away from zero; any other value rounds them toward zero. It has no effect on positive numbers. Example: 1 makes -7 with significance 5 return -5. |
What it returns: A number rounded up to the nearest multiple of significance. The result has the same sign as the original number (unless mode changes negative behaviour), and it is always greater than or equal to the original number when the number is positive.
CEILING.MATH examples
1 Round a single number up to the next whole number
The goal is to see the simplest form of the function. With no significance, CEILING.MATH uses 1, so it rounds 7.2 up to 8. The formula =CEILING.MATH(B2) looks only at the value in B2 and returns the next integer above it. Because 7.2 is positive, the result is 8.
| A | B | C | D | E | |
|---|---|---|---|---|---|
| 1 | Item | Value | |||
| 2 | Pens | 7.2 | 8 | ||
| 3 | Notepads | 12.01 | |||
| 4 | Folders | 3 | |||
| 5 | Staplers | 0.4 | |||
| 6 |
2 Round order quantities up to full cartons of 24
A warehouse ships in cartons of 24 units, so any order must be rounded up to a complete carton. The formula =CEILING.MATH(B2,24) takes the ordered units in B2 and finds the smallest multiple of 24 that is at least that number. For 50 units it returns 72, meaning three cartons are needed. The same logic applies down the column for each order line.
| A | B | C | D | E | |
|---|---|---|---|---|---|
| 1 | Order | Units | |||
| 2 | ORD-1001 | 50 | 72 | ||
| 3 | ORD-1002 | 24 | |||
| 4 | ORD-1003 | 25 | |||
| 5 | ORD-1004 | 96 | |||
| 6 | ORD-1005 | 1 | |||
| 7 |
3 Round prices up to the next 5 cents
Retail prices are often set in 0.05 steps, so a calculated cost of 12.31 must become 12.35. The formula =CEILING.MATH(B2,0.05) rounds the value in B2 up to the next multiple of 0.05. It returns 12.35, which is the smallest 0.05 multiple that is not below 12.31. Use the same formula for every product row.
| A | B | C | D | E | |
|---|---|---|---|---|---|
| 1 | Product | Cost | |||
| 2 | Widget | 12.31 | 12.35 | ||
| 3 | Gadget | 4.02 | |||
| 4 | Bracket | 7.5 | |||
| 5 | Clamp | 0.01 | |||
| 6 |
4 Bill time in 15-minute blocks
A consultancy bills in 15-minute increments, so 38 minutes becomes 45 minutes. The formula =CEILING.MATH(B2,15) rounds the minutes in B2 up to the next multiple of 15. It returns 45, which is three billing blocks. Apply it to each time entry to get billable minutes.
| A | B | C | D | E | |
|---|---|---|---|---|---|
| 1 | Client | Minutes | |||
| 2 | Acme | 38 | 45 | ||
| 3 | Beta Ltd | 15 | |||
| 4 | Gamma | 16 | |||
| 5 | Delta | 60 | |||
| 6 | Epsilon | 1 | |||
| 7 |
Common CEILING.MATH errors and how to fix them
| Error | Why it happens | How to fix it |
|---|---|---|
| #VALUE! | One of the arguments is text that Excel cannot convert to a number, such as a cell containing "n/a" or a stray space. | Check that the number and significance cells contain real numbers. Use ISNUMBER to test, or clean the data with VALUE or TRIM. |
| #DIV/0! | The significance argument is 0, so there is no multiple to round to. | Supply a non-zero significance, or wrap the formula in IFERROR to show a blank or a message. |
| #NAME? | The function name is misspelled, for example CEILINGMATH or CEILING.MATH typed with a space. | Use the exact name CEILING.MATH with a dot and no space. Let Excel's formula autocomplete insert it. |
| Unexpected negative result | For negative numbers, the default mode rounds away from zero, so -7 with significance 5 returns -10. | Add the mode argument as 1 (or any non-zero value) to round negative numbers toward zero. |
Tips for using CEILING.MATH
- Omit the significance argument when you just want the next whole number; it defaults to 1.
- Use a decimal significance such as 0.05 or 0.25 to round prices up to a pricing step.
- Remember that CEILING.MATH always rounds up for positive numbers; use
ROUNDorMROUNDif you need nearest-multiple behaviour. - For negative values, decide whether you want away from zero (default) or toward zero (mode 1) before sharing the sheet.
- Combine with
SUMorSUMPRODUCTto total cartons or billable blocks across many rows in one formula. - Test a few rows by hand before filling the formula down, especially when the significance is a decimal.
Frequently asked questions
What is the difference between CEILING.MATH and CEILING?
CEILING.MATH is the newer function and adds a mode argument for negative numbers. CEILING is kept for compatibility with older workbooks. For new sheets, CEILING.MATH is the clearer choice.
Does CEILING.MATH round up or down?
It rounds up to the next multiple of the significance. For positive numbers the result is always greater than or equal to the original number. For negative numbers the default behaviour rounds away from zero, which you can change with the mode argument.
Can I round up to the nearest 0.05 with CEILING.MATH?
Yes. Use =CEILING.MATH(A1,0.05). The significance can be any positive number, including decimals such as 0.1 or 0.25.
Why does CEILING.MATH return a different result for negative numbers?
By default, negative numbers are rounded away from zero, so -7 with significance 5 becomes -10. If you want -5 instead, add the mode argument as 1.
Related functions
Every example on this page was recalculated by SheetSkill’s spreadsheet engine. CEILING.MATH reference