CEILING.MATH Function

Excel Functions › Math & Trig

Excel 2013+ Math & Trig

The Excel CEILING.MATH function rounds a number up to the nearest integer or multiple, with an optional mode argument that controls how negative numbers behave.


Quick answer:
=CEILING.MATH(6.7) up to nearest integer = 7

Syntax

=CEILING.MATH(number, [significance], [mode])
ArgumentDescription
numberRequiredThe value you want to round up.
significanceOptionalThe multiple to round to. Defaults to 1 (the next integer).
modeOptionalControls direction for negative numbers. Omitted/0 rounds toward zero; any non-zero value rounds away from zero.

How to use it

CEILING.MATH improves on classic CEILING: significance is optional (defaults to 1) and signs never cause an error.

=CEILING.MATH(6.7) // next integer = 7
=CEILING.MATH(-5.5) // toward zero = -5
=CEILING.MATH(-5.5, 1, 1) // mode on, away from zero = -6

For positive numbers it always rounds up. For negatives the mode flag decides: by default they round toward zero, but a non-zero mode rounds them away from zero.

Default mode: with mode omitted, =CEILING.MATH(-5.5) gives -5 (toward zero). Add a non-zero mode — =CEILING.MATH(-5.5, 1, 1) — to get -6 instead.

Try it: interactive demo

Live demo

Pick a CEILING.MATH example to see the formula and its result.

Result:

Practice workbook

📊
Download the free CEILING.MATH practice workbook
Every example on this page, ready to open in Excel — plus practice challenges with answers on a separate tab. No sign-up required.

Frequently asked questions

What does the mode argument do?
It only affects negative numbers. Omitted or 0 rounds toward zero; any non-zero value rounds away from zero. For positives, mode has no effect.
How is CEILING.MATH different from CEILING?
CEILING.MATH makes significance optional (defaults to 1), never errors on mixed signs, and adds a mode argument for negative numbers.
Why does CEILING.MATH(-5.5) give -5 instead of -6?
By default negatives round toward zero, and -5 is closer to zero than -6. To round away from zero, pass a non-zero mode: =CEILING.MATH(-5.5, 1, 1) = -6.
Is CEILING.MATH the same as ISO.CEILING?
Nearly — both round up and default significance to 1, and they agree on negatives by default. CEILING.MATH adds the extra mode argument that ISO.CEILING lacks.

Master functions like this in one day

This page covers one function. Our Excel Formulas and Functions class covers the 30 that matter most — live, hands-on, taught by professionals in Dallas–Fort Worth, Houston, Austin, Oklahoma City, Denver, or online.

See the Formulas & Functions Class

Related functions: CEILING · FLOOR.MATH · CEILING.PRECISE · ISO.CEILING · ROUNDUP