Excel function

CEILINGfunction

Rounds a number up to the nearest multiple of significance.

All versions
=CEILING(A2, 0.5)
A
B
1
2
3
4
5
6
7

Click a cell in the table to change number. Click -2.5 and set significance to 2, then -2. The result changes from -2 to -4. Try breaking it on purpose to see the errors.

Result

3.5

number
A2You can also click a cell in the table

The cell with the number to calculate. Click another value in the table.

significance

The multiple to round to. 0.5 means steps of 0.5; 100 means steps of 100.

What is the CEILING function?

=CEILING(number, significance)

CEILING rounds a number up to the nearest multiple of significance. Use it to round prices up to the next 10 or 100, or quantities up to a full pack.

According to Microsoft, a number that is already a multiple stays the same. For negative numbers the direction depends on the sign of significance: a negative significance rounds away from zero (smaller), a positive one rounds toward zero.

Arguments

number
The number or cell to round up.
significance
The multiple to round to. A positive number with a negative significance returns #NUM!.

CEILING examples

  1. Example 1. Round up to the next 100

    =CEILING(1234, 100)

    1234 rounded up to a multiple of 100 is 1300.

  2. Example 2. Prices in steps of 0.05

    =CEILING(4.42, 0.05)

    An example from Microsoft: 4.45. Useful for avoiding pennies.

  3. Example 3. Negative numbers and the sign of significance

    =CEILING(-2.5, 2)

    Significance is positive, so it rounds toward zero: -2. CEILING(-2.5, -2) is -4.

Common mistakes

FAQ

How is CEILING.MATH different?
CEILING.MATH lets you omit significance and uses a mode argument for negative numbers. CEILING needs both arguments.
How do I round an order up to full boxes?
Use the box size as significance, for example =CEILING(quantity, 12).