Excel CEILING.MATH Function

Related Functions:
Excel Rounding Functions

The Excel Ceiling.Math function is one of fifteen rounding functions in Excel.

A full list, along with comparison tables, is provided on the Excel Rounding Functions page.

Function Description

The Excel Ceiling.Math function rounds a supplied number up to a supplied multiple of significance.

In general, positive values are rounded away from zero and negative numbers are rounded towards zero. However, the user can reverse the direction of the rounding for negative numbers.

Note: the Ceiling.Math function was first introduced in Excel 2013 and so is not available in earlier versions of Excel.

The syntax of the function is:

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

Where the arguments are as follows:

number - The number that is to be rounded up
[significance] -

An optional argument that specifies the multiple of significance to round the supplied number to.

If omitted, the [significance] argument takes on the default value 1 (i.e. round up to the nearest integer).

(Note that the arithmetic sign of the [significance] argument is ignored).
[mode] -

An optional numeric argument that reverses the direction of rounding for negative numbers only.

  • If [mode] = 0 (or is omitted), negative numbers are rounded towards zero.
  • If [mode] = any other numeric value, negative numbers are rounded away from zero.

Ceiling.Math Function Examples

In column B of the following spreadsheet, the Excel Ceiling.Math function is used to round the positive and negative numbers 15.25 and -15.25, to different significance values.

  A B
1 15.25 =CEILING.MATH( A1 )
2 15.25 =CEILING.MATH( A2, 0.1 )
3 15.25 =CEILING.MATH( A3, 5 )
4 -15.25 =CEILING.MATH( A4, 1 )
5 -15.25 =CEILING.MATH( A5, 1, 1 )
6 -15.25 =CEILING.MATH( A6, 10 )
  A B
1 15.25 16
2 15.25 15.3
3 15.25 20
4 -15.25 -15
5 -15.25 -16
6 -15.25 -10

The above examples show how:

For further details and examples of the Excel Ceiling.Math function, see the Microsoft Office website.

Ceiling.Math Function Error

If you get an error from the Excel Ceiling.Math function, this is likely to be the #VALUE! error:

Common Error
#VALUE! - Occurs if any of the supplied arguments are non-numeric.