Day(s)

:

Hour(s)

:

Minute(s)

:

Second(s)

IFNA function

This function will return a specified value if your given expression results in an #N/A error. Only the #N/A! error will result in the alternate value.

Syntax

IFNA(Expression, Value if #N/A!)

  • Expression (required) – This is part of the formula that is checked for an #N/A error.
  • Value if #N/A! (required) – This is the value that is returned if the expression results in an #N/A! error.

Example

In this example we use the IFNA function with a VLOOKUP function. If the VLOOKUP function results in an #N/A! error (ie the lookup value was not found), then the IFNA function will return the text “Item not found”.

=IFNA(VLOOKUP(D2,$A$2:$B$6,2,FALSE),"Item not found")

IFNA

About the Author

John MacDougall

John MacDougall

John is a Microsoft MVP and qualified actuary with over 15 years of experience. He has worked in a variety of industries, including insurance, ad tech, and most recently Power Platform consulting. He is a keen problem solver and has a passion for using technology to make businesses more efficient.

Subscribe

Subscribe for awesome Microsoft Excel videos 😃

John MacDougall

I’m John, and my goal is to help you Excel!

You’ll find a ton of awesome tips, tricks, tutorials, and templates here to help you save time and effort in your work.

Related Posts

Comments

0 Comments

Get the Latest Microsoft Excel Tips

Follow Us

Follow us to stay up to date with the latest in Microsoft Excel!

Subscribe for awesome Microsoft Excel videos 😃