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])| Argument | What it means | |
|---|---|---|
number | Required | The value to round up. |
significance | Optional | The multiple to round to. Default 1. Its sign is ignored. |
mode | Optional | Only 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
| A | B | C | |
|---|---|---|---|
| 1 | Item | Value | |
| 2 | Units needed | 4.12 | 5 |
| 3 | Parcel weight (kg) | 7.2 | |
| 4 | Stock adjustment | -7.2 | |
| 5 | Marketing budget | 12340 |
Result: 5
Without a significance the next whole number is used: 4.12 → 5.
2Shipping weight in half-kilo steps
| A | B | C | |
|---|---|---|---|
| 1 | Item | Value | |
| 2 | Units needed | 4.12 | |
| 3 | Parcel weight (kg) | 7.2 | 7.5 |
| 4 | Stock adjustment | -7.2 | |
| 5 | Marketing budget | 12340 |
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
| A | B | C | |
|---|---|---|---|
| 1 | Item | Value | |
| 2 | Units needed | 4.12 | |
| 3 | Parcel weight (kg) | 7.2 | |
| 4 | Stock adjustment | -7.2 | -7.5 |
| 5 | Marketing budget | 12340 |
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
| A | B | C | |
|---|---|---|---|
| 1 | Item | Value | |
| 2 | Units needed | 4.12 | |
| 3 | Parcel weight (kg) | 7.2 | |
| 4 | Stock adjustment | -7.2 | |
| 5 | Marketing budget | 12340 | 12,400 |
Result: 12,400
12,340 rounds up to the next multiple of 100: 12,400.
Common errors and how to fix them
| Error | Why it happens | Fix |
|---|---|---|
#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 ash: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.
| Language | Function name |
|---|---|
| Danish | LOFT.MAT |
| Dutch | AFRONDEN.BOVEN.WISK |
| Finnish | PYÖRISTÄ.KERR.YLÖS.MATEMAATTINEN |
| French | PLAFOND.MATH |
| German | OBERGRENZE.MATHEMATIK |
| Hungarian | PLAFON.MAT |
| Italian | ARROTONDA.ECCESSO.MAT |
| Norwegian (Bokmål) | AVRUND.GJELDENDE.MULTIPLUM.OPP.MATEMATISK |
| Polish | ZAOKR.W.GÓRĘ.MATEMATYCZNE |
| Portuguese (Brazil) | TETO.MAT |
| Portuguese (Portugal) | ARRED.EXCESSO.MAT |
| Russian | ОКРВВЕРХ.МАТ |
| Spanish | MULTIPLO.SUPERIOR.MAT |
| Swedish | RUNDA.UPP.MATEMATISKT |
| Turkish | TAVANAYUVARLA.MATEMATİK |