IFNA Function in Excel: Handle “Not Found” Only

IFNA Function in Excel: Handle “Not Found” Only featured illustration

📎 This article includes 1 downloadable practice file ↓

⏱ 2 min readUpdated 5 October 2026

LogicalLevel: IntermediateAvailable in: Excel 2013+

In this article
  1. Syntax
  2. Examples
  3. Example 1
  4. IFNA in practice
  5. Where you will use it
  6. Worked example
  7. Mistakes people make
  8. Related functions
  9. Continue learning

IFNA replaces only #N/A — the “not found” result of lookups — and lets real errors show.

Advertisement

Syntax

=IFNA(value, value_if_na)
Argument What it means
value_if_na What to show when not found.

Examples

Example 1

=IFNA(VLOOKUP(A2, Prices, 2, FALSE), "New product")

Friendly message only for missing codes.

IFNA in practice

Where you will use it

  • Show 'Not found' when a lookup fails
  • Default prices for new items
  • Keep other errors visible while hiding #N/A

Worked example

CodeFormulaResult
P01=IFNA(VLOOKUP(A2,{"P01",250;"P02",400},2,FALSE),"Not found")250
P99=IFNA(VLOOKUP(A3,{"P01",250;"P02",400},2,FALSE),"Not found")Not found
P02=IFNA(VLOOKUP(A4,{"P01",250;"P02",400},2,FALSE),"Not found")400

Results calculated in Excel.

Mistakes people make

MistakeWhat to do instead
Using IFERROR everywhereIFNA hides only #N/A, so real mistakes still show
Returning "" then summingReturn 0 if the column is summed

IFERROR · XLOOKUP

📚 Part of the free Excel course: Beginner → Expert · Try it in the Formula Lab or ask the AI Helper.

⚡ Interactive Practice Lab & Formula Tester:

Test formulas dynamically in our web formula laboratory or download the companion Excel workbook.

📎 Practice files for this article

  • 📗
    Practice workbook: Logic, LET & LAMBDA17 tasks on realistic sales data — type your formula, the Check column turns green when it is right. Answers sheet included.
    ⬇ XLSX · 35 KB

Free to use for learning. Files with macros (.bas) are plain text — import them with Alt+F11 → File → Import File, and always test on a copy.

✨ Ask AI about this article

Stuck on a step? Ask a question and the AI answers using this article.

Free · AI can be wrong

Leave a Reply

Your email address will not be published. Required fields are marked *