WorksheetFunction.Ceiling method (Excel)

Returns number rounded up, away from zero, to the nearest multiple of significance.


This function has been replaced with one or more new functions that may provide improved accuracy and whose names better reflect their usage. This function is still available for compatibility with earlier versions of Excel. However, if backward compatibility is not required, you should consider using the new functions from now on, because they more accurately describe their functionality.

For more information about the new function, see the Ceiling_Precise method.


expression.Ceiling (Arg1, Arg2)

expression A variable that represents a WorksheetFunction object.


Name Required/Optional Data type Description
Arg1 Required Double Number - the value that you want to round.
Arg2 Required Double Significance - the multiple to which you want to round.

Return value



For example, if you want to avoid using pennies in your prices and your product is priced at $4.42, use the formula Ceiling(4.42,0.05) to round prices up to the nearest nickel.

If either argument is nonnumeric, Ceiling generates an error.

Regardless of the sign of number, a value is rounded up when adjusted away from zero. If number is an exact multiple of significance, no rounding occurs.

If number and significance have different signs, Ceiling generates an error.

Support and feedback

Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.