Sign in with Microsoft
Sign in or create an account.
Select a different account.
You have multiple accounts
Choose the account you want to sign in with.

The IFNA function returns the value you specify if a formula returns the #N/A error value; otherwise it returns the result of the formula.


IFNA(value, value_if_na)

The IFNA function syntax has the following arguments.





The argument that is checked for the #N/A error value.



The value to return if the formula evaluates to the #N/A error value.


  • If value or value_if_na is an empty cell, IFNA treats it as an empty string value ("").

  • If value is an array formula, IFNA returns an array of results for each cell in the range specified in value.


In the following example, IFNA tests the result of the VLOOKUP function. Because Seattle is not found in the lookup range, VLOOKUP returns the #N/A error value. IFNA returns the string "Not found" in the cell instead of the standard #N/A error value.

Image of using IFNA with VLOOKUP to prevent #N/A errors from being displayed.

Need more help?

You can always ask an expert in the Excel Tech Community or get support in Communities.

See Also

How to avoid broken formulas

Need more help?

Want more options?

Explore subscription benefits, browse training courses, learn how to secure your device, and more.

Communities help you ask and answer questions, give feedback, and hear from experts with rich knowledge.

Was this information helpful?

What affected your experience?
By pressing submit, your feedback will be used to improve Microsoft products and services. Your IT admin will be able to collect this data. Privacy Statement.

Thank you for your feedback!