Practice free

CEILING.MATH function

CEILING.MATH rounds a number up to a chosen multiple, such as the next 5 or the next 0.25. It handles negative numbers in a controlled way, unlike the older CEILING.

Example

Read it as a sentence: round 24.3 up to the next multiple of 5, which gives 25.

Practice this in the app

Syntax

CEILING.MATH(number, [significance], [mode])

Arguments in [square brackets] are optional.

number (required)
The value to round up.
significance (optional)
The multiple to round to. Defaults to 1.
mode (optional)
For negative numbers only: leave out or 0 to round toward zero, any other value to round away from zero.

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

What Excel actually returns

Each formula below was run in desktop Excel. The result is exactly what the cell showed, errors included.

FormulaExcel showsCase
=CEILING.MATH(2.5) 3 2.5
=CEILING.MATH(-2.5) -2 -2.5
=CEILING.MATH(2.5,2) 4 2.5, sig 2
=CEILING.MATH(-2.5,2) -2 -2.5, sig 2
=CEILING.MATH(2.5,0) 0 Sig 0
=CEILING.MATH(2.5,-2) 4 Negative sig -2
=CEILING.MATH("abc") #VALUE! Text
=CEILING.MATH(-2.5,1,"x") #VALUE! Mode text

Watch out for

  • With a negative number, 'up' means toward zero unless mode is nonzero.
  • The sign of significance is ignored.

Where it works

Excel
CEILING.MATH arrived in Excel 2013. Older versions do not have it.
Google Sheets
Same name, same behaviour for everyday use.

Part of Math and trig functions. Every result on this page was measured in desktop Excel, build 16.0.20527. Last updated .