Compatibility function

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

Older function. CEILING still works, but for new workbooks use CEILING.MATH.

Syntax

CEILING(number, significance)
ArgumentWhat it means
numberRequiredThe value to round.
significanceRequiredThe 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

C2fx=CEILING(B2, 0.05)
ABC
1ItemCost + margin
2Coffee beans4.424.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

C2fx=CEILING(A2, B2)
ABC
1Order quantityBox size
223624

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

C2fx=CEILING(A2, B2)
ABC
1NumberSignificance
2-2.52-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.

⬇Practice workbookExamples with live formulas + practice sheets · .xlsx · 15 KB

Common errors and how to fix them

ErrorWhy it happensFix
#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.

LanguageFunction name
CzechZAOKR.NAHORU
DanishAFRUND.LOFT
DutchAFRONDEN.BOVEN
FinnishPYÖRISTÄ.KERR.YLÖS
FrenchPLAFOND
GermanOBERGRENZE
HungarianPLAFON
ItalianARROTONDA.ECCESSO
Norwegian (Bokmål)AVRUND.GJELDENDE.MULTIPLUM
PolishZAOKR.W.GÓRĘ
Portuguese (Brazil)TETO
Portuguese (Portugal)ARRED.EXCESSO
RussianОКРВВЕРХ
SpanishMULTIPLO.SUPERIOR
SwedishRUNDA.UPP
TurkishTAVANAYUVARLA