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 =CEILING.MATH(A2,25) returns 150
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(, , )
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 =CEILING.MATH(A2,25) returns 150
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.
=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.
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.
FLOOR.MATH is the mirror image: it rounds down to a multiple.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.
=CEILING.MATH(A2, 15) bills 38 minutes as 45.=CEILING.MATH(units, per_carton) gives units rounded up to full cartons.=CEILING.MATH(cost*1.3, 0.5) makes every price end at .00 or .50.CEILING.MATH needs numbers. Text returns #VALUE!.
B2.5, 15 or 0.25. If you leave it out, it is 1. The sign of significance is ignored.0 or omitted rounds towards zero (-5.5 with significance 2 becomes -4). Any other value rounds away from zero (-5.5 becomes -6).Each example is a live sheet. Change the inputs or the formula and watch the result.
Example 1
B2 =CEILING.MATH(A2,25)
Result: 150
137 sits between 125 and 150, so it goes up to 150.
B2 =CEILING.MATH(A2,25) returns 150
Example 2
B2 =CEILING.MATH(A2)
Result: 5
With no significance, CEILING.MATH rounds up to the next integer.
B2 =CEILING.MATH(A2) returns 5
Example 3
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 =CEILING.MATH(A2,0.5) returns 12.5
Example 4
B2 =CEILING.MATH(A2,2)
Result: -4
-4 is the next multiple of 2 above -5.5. The default mode moves towards zero.
B2 =CEILING.MATH(A2,2) returns -4
Example 5
B2 =CEILING.MATH(A2,2,1)
Result: -6
Any non-zero mode makes negatives round away from zero, as ROUNDUP would.
B2 =CEILING.MATH(A2,2,1) returns -6
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.
#NUM! for a positive number with a negative multiple, so don't assume the two behave alike.#NAME?. Use CEILING instead if the file must open there.Use `=CEILING.MATH(B2, 5)` or `=CEILING.MATH(B2, 10)`. The result is the next multiple at or above the number.
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.
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.
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.
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.
Tracks take you from the basics to modelling, one graded exercise at a time.