Returns a number that is rounded up to the nearest integer or to the nearest multiple of significance. Regardless of the sign of the number, the number is rounded up. However, if the number or the significance is zero, zero is returned.
Syntax
CEILING.PRECISE(number, [significance])
The CEILING.PRECISE function syntax has the following arguments:
-
Number Required. The value to be rounded.
-
Significance Optional. The multiple to which number is to be rounded.
If significance is omitted, its default value is 1.
Remarks
-
The absolute value of the multiple is used, so that the CEILING.PRECISE function returns the mathematical ceiling irrespective of the signs of number and significance.
Example
Copy the example data in the following table, and paste it in cell A1 of a new Excel worksheet. For formulas to show results, select them, press F2, and then press Enter. If you need to, you can adjust the column widths to see all the data.
Formula |
Description |
Result |
=CEILING.PRECISE(4.3) |
Rounds 4.3 up to the nearest multiple of 1. |
5 |
=CEILING.PRECISE(-4.3) |
Rounds -4.3 up to the nearest multiple of 1. Rounds toward 0 because the number is negative. |
-4 |
=CEILING.PRECISE(4.3, 2) |
Rounds 4.3 up to the nearest multiple of 2. |
6 |
=CEILING.PRECISE(4.3,-2) |
Rounds 4.3 up to the nearest multiple of -2. |
6 |
=CEILING.PRECISE(-4.3,2) |
Rounds -4.3 up to the nearest multiple of 2. Rounds toward 0 because the number is negative. |
-4 |
=CEILING.PRECISE(-4.3,-2) |
Rounds -4.3 up to the nearest multiple of -2. |
-4 |