Skip to content

CEILING.MATH

Rounds a number up to the next multiple of a value you choose, such as 5, 15 or 0.25. By default it rounds up to a whole number.

Syntax

=CEILING.MATH(, , )

Math and trigonometry

Excel 2013 and later, including Excel for Microsoft 365 and Excel for the web.

Try it

Edit the formula in B2 or change the inputs. The sheet recalculates as you type.

B2
A
B
C
1
Estimate
Rounded up
2
137
150
3

B2 =CEILING.MATH(A2,25) returns 150

How CEILING.MATH works

CEILING.MATH rounds a number up to the next multiple of another number. Use it when you can only buy, bill or schedule in whole steps and anything over the line takes you to the next step: cartons of 24, 15-minute billing blocks, prices that end in .50.

How CEILING.MATH works

=CEILING.MATH(137, 25) returns 150, the next multiple of 25 at or above 137. =CEILING.MATH(4.2) returns 5, since significance defaults to 1. A number that is already a multiple is unchanged: =CEILING.MATH(150, 25) is 150.

Negative numbers and the mode argument

For negative numbers, "up" normally means towards zero on the number line. =CEILING.MATH(-5.5, 2) returns -4, because -4 is the next multiple of 2 above -5.5. If you set mode to any non-zero value, CEILING.MATH rounds negatives away from zero instead: =CEILING.MATH(-5.5, 2, 1) returns -6. Most workbooks never need mode, because their numbers are positive.

Compared with ROUNDUP and MROUND

  • ROUNDUP rounds up only to powers of ten, so it can't do multiples of 15 or 0.25.
  • MROUND goes to the nearest multiple, which can be lower than the input. CEILING.MATH never goes below the input for positive numbers.
  • FLOOR.MATH is the mirror image: it rounds down to a multiple.

CEILING.MATH versus the older CEILING

The older CEILING function needs both arguments, and returns #NUM! when a positive number is paired with a negative significance. CEILING.MATH ignores the sign of significance, treats a missing significance as 1, and lets you choose how negatives round. It is the better choice in any workbook that doesn't need to run in Excel 2010 or earlier. CEILING.PRECISE is a close cousin that ignores signs altogether.

Practical uses

  • Billing time in blocks: =CEILING.MATH(A2, 15) bills 38 minutes as 45.
  • Packing: =CEILING.MATH(units, per_carton) gives units rounded up to full cartons.
  • Pricing: =CEILING.MATH(cost*1.3, 0.5) makes every price end at .00 or .50.
  • Capacity planning: round a headcount up to a whole team size.

CEILING.MATH needs numbers. Text returns #VALUE!.

Arguments

number
The number to round up, such as B2.
significanceoptional
The multiple to round up to, such as 5, 15 or 0.25. If you leave it out, it is 1. The sign of significance is ignored.
modeoptional
Only matters for negative numbers. 0 or omitted rounds towards zero (-5.5 with significance 2 becomes -4). Any other value rounds away from zero (-5.5 becomes -6).

Examples

Each example is a live sheet. Change the inputs or the formula and watch the result.

Example 1

Round up to a multiple of 25

B2 =CEILING.MATH(A2,25)

Result: 150

137 sits between 125 and 150, so it goes up to 150.

B2
A
B
C
1
Estimate
Rounded up
2
137
150
3

B2 =CEILING.MATH(A2,25) returns 150

Example 2

Round up to a whole number

B2 =CEILING.MATH(A2)

Result: 5

With no significance, CEILING.MATH rounds up to the next integer.

B2
A
B
C
1
Value
Rounded up
2
4.2
5
3

B2 =CEILING.MATH(A2) returns 5

Example 3

Prices that end in .00 or .50

B2 =CEILING.MATH(A2,0.5)

Result: 12.5

12.31 is above 12.00, so it goes up to the next half pound.

B2
A
B
C
1
Calculated price
Shelf price
2
12.31
12.5
3

B2 =CEILING.MATH(A2,0.5) returns 12.5

Example 4

Negative numbers round towards zero by default

B2 =CEILING.MATH(A2,2)

Result: -4

-4 is the next multiple of 2 above -5.5. The default mode moves towards zero.

B2
A
B
C
1
Value
Rounded up
2
-5.5
-4
3

B2 =CEILING.MATH(A2,2) returns -4

Example 5

Negative numbers with mode 1 round away from zero

B2 =CEILING.MATH(A2,2,1)

Result: -6

Any non-zero mode makes negatives round away from zero, as ROUNDUP would.

B2
A
B
C
1
Value
Rounded
2
-5.5
-6
3

B2 =CEILING.MATH(A2,2,1) returns -6

Your turn.

Solve it in the sheet. Every answer is checked, with hints if you need them.

Task 1 of 2

In C2, round the minutes in B2 up to the next 15-minute block. Fill it down to C7.

Answer in C2, then it fills down to C7.

C2
A
B
C
D
1
Job
Minutes worked
Billed minutes
2
Audit
38
3
Setup
61
4
Call
15
5
Email
7
6
Review
95
7
Training
120
8
9
Total billed

Common mistakes

  • With negative numbers, the default mode rounds towards zero: -5.5 becomes -4. Set mode to 1 if you want -6.
  • MROUND can round down, but CEILING.MATH never does for positive numbers. Pick the one that matches the rule, such as "full cartons only".
  • CEILING.MATH ignores the sign of significance. The older CEILING returns #NUM! for a positive number with a negative multiple, so don't assume the two behave alike.
  • It isn't available in Excel 2010 or earlier. There the formula returns #NAME?. Use CEILING instead if the file must open there.
  • Rounding each job up and then adding gives a larger total than adding first and rounding once. Decide which the bill follows and apply it consistently.

Questions people ask

How do I round up to the nearest 5 or 10?

Use `=CEILING.MATH(B2, 5)` or `=CEILING.MATH(B2, 10)`. The result is the next multiple at or above the number.

What is the difference between CEILING and CEILING.MATH?

CEILING needs both arguments and fails for mixed signs. CEILING.MATH makes significance optional, ignores its sign, and has a mode argument for negative numbers.

What does the mode argument do?

It only affects negative numbers. 0 or omitted rounds towards zero, so -5.5 becomes -4. Any other value rounds away from zero, so -5.5 becomes -6.

How do I round time up to the next 15 minutes?

If the time is in minutes as a number, use `=CEILING.MATH(A2, 15)`. For a time value, use `=CEILING.MATH(A2, TIME(0,15,0))` and format the result as a time.

Is CEILING.MATH the same as ROUNDUP?

For whole numbers and positive values, `=CEILING.MATH(x)` and `=ROUNDUP(x, 0)` agree. CEILING.MATH can also round up to any multiple, such as 15 or 0.25.

Learn CEILING.MATH in a real sheet.

Tracks take you from the basics to modelling, one graded exercise at a time.