How to use the IFNA function
The IFNA function handles #N/A errors only, it returns a given value you specify if the formula returns a #N/A error.
Table of Contents
1. IFNA Function Syntax
IFNA(value, value_if_na)
2. IFNA Function Arguments
value | Required. The value you want to check. |
value_if_na | Required. The value to return if the value argument returns #N/A. |
3. IFNA Function Example
The image above shows values and formulas in column B, the first cell B3 contains value A. The IFNA Function returns "A" because the result is not an #N/A error.
Formula in cell D3:
#N/A means not available and is returned if a formula or function can't find a value. Cell B5 contains this formula:
It returns a #N/A error because 1 is not found in the second argument in the MATCH function. The IFNA function catches this error and returns "Yes" which is the value we specified in the second argument.
4. When to use the IFNA Function?
Use the IFNA function instead of the IFERROR function to check for #N/A errors specifically. For example, VLOOKUP returns #N/A when it can't find the lookup value.
The IFERROR function checks for all error values which in most cases is not recommended. This makes it harder to spot a more serious error since all error values are handled.
'IFNA' Function examples
The following 3 articles have formulas containing the IFNA function.
The picture above shows an array formula in cell B9:C13 that extracts unique distinct records from two tables in cell […]
The above picture shows you two formulas that extract names (column B) and date ranges (column C and D) based […]
This article describes ways to work with the SUMPRODUCT function and blanks, error values, N/A# errors. Table of Contents SUMPRODUCT […]
Functions in 'Logical' category
The IFNA function function is one of many functions in the 'Logical' category.
How to comment
How to add a formula to your comment
<code>Insert your formula here.</code>
Convert less than and larger than signs
Use html character entities instead of less than and larger than signs.
< becomes < and > becomes >
How to add VBA code to your comment
[vb 1="vbnet" language=","]
Put your VBA code here.
[/vb]
How to add a picture to your comment:
Upload picture to postimage.org or imgur
Paste image link to your comment.
Contact Oscar
You can contact me through this contact form