Applies ToExcel for Microsoft 365 Excel for Microsoft 365 for Mac Excel for the web Excel 2024 Excel 2024 for Mac Excel 2021 Excel 2021 for Mac Excel 2019 Excel 2016

Here is the formula syntax and use of the CEILING.MATH function in Microsoft Excel.

Description

The CEILING.MATH function rounds a number up to the nearest integer or, optionally, to the nearest multiple of significance. 

Syntax

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

  • number    Required. (must be between -2.229E-308.and 9.99E+307.) 

  • significance    Optional. This is the number of significant digits after the decimal point to which number is to be rounded. 

  • mode    Optional. This controls whether negative numbers are rounded toward or away from zero. 

Remarks

  • By default, significance is +1 for positive numbers and -1 for negative numbers.

  • By default, positive numbers with decimal portions are rounded up to the nearest integer. For example, 6.3 is rounded up to 7.

  • By default, negative numbers with decimal portions are rounded up (toward 0) to the nearest integer. For example, -6.7 is rounded up to -6.

  • Using the significance and mode arguments, you can change the direction of the rounding for negative numbers. For example, rounding -6.3 to a significance of 1 with a mode of 1 will round away from 0, to -7.  Combinations of Significance and Mode values can affect rounding of negative numbers in different ways. 

  • The mode argument does not affect positive numbers. 

  • The significance argument rounds the number up to the nearest integer that is a multiple of the specified significance. The exception is where the number to be rounded is an integer. For example, for a significance of 3 the number is rounded up to the next integer that is a multiple of 3.

  • If number divided by a significance of 2 or greater results in a remainder, the result is rounded up.

Example

Copy all of the following table. In a new Excel worksheet, paste it in to cell A1 (and adjacent). If you do not automatically see the Results, select the formula, press F2 and press Enter. Adjust column widths if needed to see everything. 

Formula

Description

Result

=CEILING.MATH(24.3,5)

Rounds 24.3 up to the nearest integer that is a multiple of 5.

25

=CEILING.MATH(6.7)

Rounds 6.7 up to the nearest integer.

7

=CEILING.MATH(-8.1,2)

Rounds -8.1 up (toward 0) to the nearest integer that is a multiple of 2.

-8

=CEILING.MATH(-5.5,2,-1)

Rounds -5.5 down (away from 0) to the nearest integer that is a multiple of 2 with a mode of -1 which reverses rounding direction.

-6

Top of Page

Need more help?

Want more options?

Explore subscription benefits, browse training courses, learn how to secure your device, and more.

Communities help you ask and answer questions, give feedback, and hear from experts with rich knowledge.