Edit

Share via


WorksheetFunction.IfNa(Object, Object) Method

Definition

Returns the value you specify if the expression resolves to #N/A, otherwise returns the result of the expression.

public:
 System::Object ^ IfNa(System::Object ^ Arg1, System::Object ^ Arg2);
public object IfNa (object Arg1, object Arg2);
Public Function IfNa (Arg1 As Object, Arg2 As Object) As Object

Parameters

Arg1
Object

value: Any value or expression or reference.

Arg2
Object

value_if_na: Any value or expression or reference.

Returns

VARIANT

Applies to