Math & trig function

CEILING.MATH function

Rounds a number up to the nearest integer or multiple of significance, with control over negative numbers.

Available in Excel 2013 and later, Microsoft 365, Excel for the web, Excel for Mac 2016 and later

Excel 2013 and laterWorks in Google Sheets

Syntax

CEILING.MATH(number, [significance], [mode])
ArgumentWhat it means
numberRequiredThe value to round up.
significanceOptionalThe multiple to round to. Default 1. Its sign is ignored.
modeOptionalOnly affects negative numbers: 0 or omitted rounds toward zero (−7.2 → −7), any other number rounds away from zero (−7.2 → −8).

Returns: The number rounded up to the next multiple of significance.

How CEILING.MATH works

CEILING.MATH rounds a value up to the next step. With no extra arguments it rounds up to a whole number; with a significance it rounds up to a multiple, such as the next 0.5 kg for shipping, the next 5 for a price list, or the next 100 for a budget. It is the modern replacement for CEILING, with simpler rules: the sign of the significance does not matter, so you never get #NUM! from mixing signs.

For positive numbers "up" is obvious. For negative numbers CEILING.MATH by default rounds toward plus infinity, which means toward zero: −7.2 with significance 0.5 becomes −7.0. Set mode to 1 to round negative numbers away from zero (−7.5) so they mirror the positive side. If the number is already a multiple it is returned unchanged.

Compare with ROUNDUP, which works with decimal places instead of multiples and always goes away from zero, and FLOOR.MATH, the matching function for rounding down.

Examples

1Round up to a whole unit

C2fx=CEILING.MATH(B2)
ABC
1ItemValue
2Units needed4.125
3Parcel weight (kg)7.2
4Stock adjustment-7.2
5Marketing budget12340

Result: 5

Without a significance the next whole number is used: 4.12 → 5.

2Shipping weight in half-kilo steps

C3fx=CEILING.MATH(B3, 0.5)
ABC
1ItemValue
2Units needed4.12
3Parcel weight (kg)7.27.5
4Stock adjustment-7.2
5Marketing budget12340

Result: 7.5

The courier charges per started 0.5 kg, so 7.2 kg is billed as 7.5 kg.

3Negative numbers and mode

C4fx=CEILING.MATH(B4, 0.5, 1)
ABC
1ItemValue
2Units needed4.12
3Parcel weight (kg)7.2
4Stock adjustment-7.2-7.5
5Marketing budget12340

Result: -7.5

With mode 1 the negative value is rounded away from zero, to −7.5. Without mode the result would be −7.

4Budget to the next hundred

C5fx=CEILING.MATH(B5, 100)
ABC
1ItemValue
2Units needed4.12
3Parcel weight (kg)7.2
4Stock adjustment-7.2
5Marketing budget1234012,400

Result: 12,400

12,340 rounds up to the next multiple of 100: 12,400.

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

Common errors and how to fix them

ErrorWhy it happensFix
#VALUE!An argument is non-numeric text.Check the inputs.
#NAME?Opened in Excel 2010 or older, which do not have CEILING.MATH.Use CEILING.PRECISE (2010) or CEILING for older versions.

Tips

  • Significance 0 returns 0.
  • Round time up to the next quarter hour: =CEILING.MATH(A2, "0:15") and format as h:mm.
  • Price ending in .99: =CEILING.MATH(B2, 1)-0.01.

Questions

CEILING.MATH or CEILING?

Use CEILING.MATH in new workbooks. Old CEILING returns #NUM! for a positive number with a negative significance and has different negative-number rules.

How do I round up to the nearest 0.05?

=CEILING.MATH(B2, 0.05).

Google Sheets

CEILING.MATH also exists in Google Sheets and works the same way for everyday use, so the examples above work there too.

CEILING.MATH 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
DanishLOFT.MAT
DutchAFRONDEN.BOVEN.WISK
FinnishPYÖRISTÄ.KERR.YLÖS.MATEMAATTINEN
FrenchPLAFOND.MATH
GermanOBERGRENZE.MATHEMATIK
HungarianPLAFON.MAT
ItalianARROTONDA.ECCESSO.MAT
Norwegian (Bokmål)AVRUND.GJELDENDE.MULTIPLUM.OPP.MATEMATISK
PolishZAOKR.W.GÓRĘ.MATEMATYCZNE
Portuguese (Brazil)TETO.MAT
Portuguese (Portugal)ARRED.EXCESSO.MAT
RussianОКРВВЕРХ.МАТ
SpanishMULTIPLO.SUPERIOR.MAT
SwedishRUNDA.UPP.MATEMATISKT
TurkishTAVANAYUVARLA.MATEMATİK