WorksheetFunction.IfNa method (Excel)
Returns the value that you specify if the expression resolves to #N/A; otherwise, returns the result of the expression.
Syntax
expression.IfNa (Arg1, Arg2)
expression A variable that represents a WorksheetFunction object.
Parameters
Name | Required/Optional | Data type | Description |
---|---|---|---|
Arg1 | Required | Variant | value: Any value or expression or reference. |
Arg2 | Required | Variant | value_if_na: Any value or expression or reference. |
Return value
Variant
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.