The Excel Ceiling.Precise function is one of fifteen rounding functions in Excel.
A full list, along with comparison tables, is provided on the Excel Rounding Functions page.The Excel Ceiling.Precise function rounds a supplied number up (regardless of the number's sign), to the nearest multiple of a given number.
I.e. Positive values are rounded away from zero (becoming more positive) and negative numbers are rounded towards zero (becoming less negative).
The syntax of the Ceiling.Precise function is:
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 up 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. |
In column B of the following spreadsheet, the Excel Ceiling.Precise function is used to round up the positive and negative numbers 22.25 and -22.25, to different significance values.
Formulas:
|
Results:
|
The above examples show how:
For further information and examples of the Excel Ceiling.Precise function, see the Microsoft Office website.
If you get an error from the Excel Ceiling.Precise function, this is likely to be the #VALUE! error:
#VALUE! | - | Occurs if one or both of the supplied arguments are non-numeric. |