The NVL2 function returns one value when the value of a specified expression is not NA
or an empty string, or another value when the value of the specified expression is an empty string or NA
.
To replace a NA
value or an empty string with a string, use NVL.
The data type of the return value is always the data type of expr2 (that is, the expression whose value is returned when the value of expr1 is not NA
).
The expression whose value this function evaluates.
An expression whose value is returned when the value of expr1 is not an empty string or NA.
An expression whose value is returned when the value of expr1 is NA.