How to use the IFNA function in Excel

Discover how to change #N/A errors in Excel! Change the value to a custom value easily.

What is IFNA?

The IFNA function returns a custom value if a formula returns the N/A error value. It happens mainly while using the VLOOKUP function in Excel.
Instead of seeing N/A errors, you can use the IFNA function to return a custom value like “Not Found” or “Not applicable”.

Excel values with #N/A

What is the IFNA formula in Excel?

In MS Excel, the IFNA function syntax includes 2 required arguments.
Syntax: =IFNA(value, value_if_na).

value – the value we want to check.
value_if_na – the custom value to return if the value to check is N/A.

Notes

– If value is a formula, the IFNA function will return the formula’s results if any.
– If value is empty, the system does not consider it as an error and 0 will be displayed.
– If the value_if_na argument is empty or if you use “” as the argument, the system will display 0 in the cell as it does not consider it as an error.

Examples

Return your custom value instead of a N/A error message

In this example, we want to replace any N/A errors by a custom value; value_if_na is “Not found”. Matthew is the only name with an error message as value so the value is replaced by “Not found” next to his name.

Return an empty cell instead of a N/A error message

If we wanted to replace a N/A error message by an empty result in the previous example, we would have changed the N/A formula in Excel with the following: =IFNA(value,””) or =IFNA(value,).

How to use VLOOKUP and IFNA together?

To use the VLOOKUP and IFNA functions together, replace the value argument by the VLOOKUP formula.

Example

In this example, if the VLOOKUP formula result is N/A, the value will be replaced by our custom value; value_if_na is “Not found”.

What if I want to catch all other errors?

If you want to replace other error messages by a custom value or an empty result, use the IFERROR function in Excel. The IFERROR function will replace all these errors: NULL!, N/A, REF!, VALUE!, DIV/0!, NUM! or NAME?.

To learn more about the IFERROR function in Excel or in Google Sheets, check our tutorial.

If you want to master the art of Excel Spreadsheets, join our Corporate Level MS Excel Course now!

Advertising
Analytics

Categories

AllAdvertisingFormatsPlatformsKPI'sAd News
What is Programmatic Advertising?

What is Programmatic Advertising?

Understand what programmatic advertising is and how it works to increase your ROI and become a programmatic specialist.

Read More
Programmatic Advertising: What is a DSP?

What are DSPs?

A DSP is a great tool to use but what does DSP stand for in marketing? What are some Demand-Side Platforms examples? Today, we answer your questions!

Read More

Best DSPs for Programmatic Advertising

Ted Jordan shares his list of best DSPs for Programmatic Advertising so you don’t have to lose time searching the internet to find the right Demand-Side Platform for your campaigns.

Read More
Programmatic Advertising: What is a SSP?

Supply-Side Platforms (SSPs) Explained

SSPs basics in advertising: learn what Supply-Side Platforms are used for and who use them. Get familiar with more programmatic advertising technical terms.

Read More

What is O&O Advertising?

Discover one more important jargon term used in Programmatic Advertising: O&O advertising. Get familiar with O&O formats and advantages.

Read More
Programmatic: Pixels in Advertising 101

Advertising pixels: types, pros and best practices

Learn the basics of Programmatic Advertising with Ted Jordan! Today, we explain what a pixel is in advertising with simple words and expertise. Ready to learn?

Read More

Categories

AllFunctionsToolsShortcut Keys

How to change shapes in Excel column charts

Learn how to easily change the columns shape in your Excel charts so your colleagues and customers will remember your impacting graphs.

Read More

How to use the LEFT, RIGHT and MID functions

Learn how to extract text in Excel with the LEFT, RIGHT and MID functions. Plenty of examples to learn from and functions are explained with simple words. If you start...

Read More

Excel IF statement: how to use it for 3 conditions

Learn how to use the Excel IF statement with multiple conditions and combine it with OR and/or AND functions!

Read More
Navigating with Tab, Enter, and Shift Key on Excel.

How to move between cells when arrow keys are not working (Excel)

Learn how to move between Excel cells without using your mouse or arrow keys. Discover more shortcuts and tricks below!

Read More

How to use the IFERROR function (Excel + Google Sheets)

Discover how to use IFERROR in Excel or in Google Sheets in 4 easy steps! No more errors on your documents or dashboards with IFERROR.

Read More
Split Semicolon Separated Value in Excel

How to split semicolon separated values in Excel

Split semicolon separated values in Excel into columns and rows, or convert columns to semicolon separated values, like an Excel Master!

Read More