ReferenceFunctionsMath Functions
CEILING
CEILING: Rounds a number up to the nearest multiple of a significance.
Summary
This implementation defaults significance to 1 and normalizes negative significance to positive.
Remarks
- If
significanceis omitted,1is used. significance = 0returns#DIV/0!.- Negative significance is treated as its absolute value in this fallback behavior.
Examples
Round up to the nearest multiple
Grid
| Cell | Value | |
|---|---|---|
| No inputs on Sheet1. | ||
Formula
=
Result
Not evaluated yet.
Expected
6
Round a negative number toward positive infinity
Grid
| Cell | Value | |
|---|---|---|
| No inputs on Sheet1. | ||
Formula
=
Result
Not evaluated yet.
Expected
-4
Related functions
FAQ
What happens if CEILING significance is 0?
It returns #DIV/0! because a zero multiple is invalid.
Runtime metadata
Category
Math
Signature
CEILING(arg1: Number, arg2…: Number)Arity
min 1, max variadic
Arguments
arg1Number · Scalar · coercion NumberLenientText
arg2Number · Scalar · coercion NumberLenientText
Caps
PURE
Source