CEILING function
Rounds a number up, away from zero, to the nearest multiple of a significance, e.g. prices up to 0.05 or quantities up to full boxes.
Available in All versions of Excel, including Microsoft 365 and Excel for the web (kept for compatibility)
In every Excel versionWorks in Google Sheets
Syntax
CEILING(number, significance)| Argument | What it means | |
|---|---|---|
number | Required | The value to round. |
significance | Required | The multiple to round to, such as 0.05, 5 or 12. For a positive number it must be positive. |
Returns: The rounded number.
How CEILING works
CEILING rounds a value up to the next multiple of whatever step you choose. It is a favourite for pricing (round up to the next 5 cents), packing (how many items fill whole boxes of 6), scheduling (round minutes up to the next quarter hour) and shipping weights (charge per started kilogram). If the number is already an exact multiple, it stays as it is.
Signs need care. With a positive number the significance must be positive, otherwise you get #NUM!. With a negative number and a positive significance (Excel 2010 and later), the value is rounded towards zero: CEILING(-2.5, 2) is -2. With both negative, it rounds away from zero: CEILING(-2.5, -2) is -4. A significance of 0 returns 0.
Compatibility note: since Excel 2010 CEILING is listed with the compatibility functions. CEILING.MATH (Excel 2013) is the recommended replacement: its significance defaults to 1, it never returns #NUM! for sign mismatches, and a mode argument controls how negative numbers are rounded. CEILING.PRECISE always rounds up regardless of sign. For positive numbers, CEILING(x, s) and CEILING.MATH(x, s) give the same result.
Examples
1Round prices up to 5 cents
| A | B | C | |
|---|---|---|---|
| 1 | Item | Cost + margin | |
| 2 | Coffee beans | 4.42 | 4.45 |
Result: 4.45
4.42 lies between the multiples 4.40 and 4.45, so CEILING goes up to 4.45. A price of exactly 4.40 would stay at 4.40.
2How many items fill whole boxes
| A | B | C | |
|---|---|---|---|
| 1 | Order quantity | Box size | |
| 2 | 23 | 6 | 24 |
Result: 24
23 is not a multiple of 6, so it rounds up to 24 — four full boxes. Use =CEILING(A2,B2)/B2 to get the number of boxes.
3Negative numbers round towards zero
| A | B | C | |
|---|---|---|---|
| 1 | Number | Significance | |
| 2 | -2.5 | 2 | -2 |
Result: -2
With a negative number and positive significance, "up" means towards zero, so -2.5 becomes -2. Excel 2007 and earlier returned #NUM! here. =CEILING(A2,-2) would give -4.
Common errors and how to fix them
| Error | Why it happens | Fix |
|---|---|---|
#NUM! | number is positive and significance is negative. | Use a positive significance, or switch to CEILING.MATH, which ignores the sign of the significance. |
#VALUE! | An argument is non-numeric text. | Check the inputs. |
Tips
- Round a time up to the next quarter hour:
=CEILING(A2, "0:15"), then format the cell as time. - Need to round to the nearest multiple instead of up? Use MROUND. Down? Use FLOOR or FLOOR.MATH.
=CEILING.MATH(A2)with no second argument rounds up to the next whole number — the original CEILING always needs two arguments.
Questions
What is the difference between CEILING and ROUNDUP?
ROUNDUP rounds to a number of decimal places (0.1, 0.01…). CEILING rounds to a multiple of any size, such as 0.05, 6 or 15 minutes.
Should I use CEILING or CEILING.MATH?
For new work use CEILING.MATH: it accepts a missing significance, never fails on sign mismatches and lets you choose how negatives behave. Use CEILING only for files that must open in Excel 2010 or earlier.
Why does CEILING return #NUM!?
A positive number with a negative significance is not allowed. Make the significance positive or use CEILING.MATH.
Google Sheets
CEILING also exists in Google Sheets and works the same way for everyday use, so the examples above work there too.
CEILING in other languages
In a non-English version of Excel the function has a local name. Excel translates formulas automatically when a file is opened in another language.
| Language | Function name |
|---|---|
| Czech | ZAOKR.NAHORU |
| Danish | AFRUND.LOFT |
| Dutch | AFRONDEN.BOVEN |
| Finnish | PYÖRISTÄ.KERR.YLÖS |
| French | PLAFOND |
| German | OBERGRENZE |
| Hungarian | PLAFON |
| Italian | ARROTONDA.ECCESSO |
| Norwegian (Bokmål) | AVRUND.GJELDENDE.MULTIPLUM |
| Polish | ZAOKR.W.GÓRĘ |
| Portuguese (Brazil) | TETO |
| Portuguese (Portugal) | ARRED.EXCESSO |
| Russian | ОКРВВЕРХ |
| Spanish | MULTIPLO.SUPERIOR |
| Swedish | RUNDA.UPP |
| Turkish | TAVANAYUVARLA |