To handle N/A errors in Excel, wrap your formula in IFNA like this: =IFNA(A2/VLOOKUP(B2,C2:D50,2,FALSE),"Not found"). IFNA runs the lookup, and if the result is #N/A it shows whatever you put in the second argument instead of the error. IFNA exists in Excel 2013 and later (desktop, Microsoft 365 and Excel for the web), so if you are on Excel 2010 or older you need the older IF(ISNA(...)) pattern described below. The goal is not to hide errors but to replace the one specific error that means "no match" with something a reader can understand while letting real problems elsewhere in the sheet still show up.
What You'll Need
- Excel 2013 or later, Microsoft 365, or Excel for the web for IFNA. Excel 2010 and older need the IF(ISNA(...)) alternative.
- A formula that can return #N/A, most often VLOOKUP, HLOOKUP, MATCH or XLOOKUP against a list that does not contain every value you are searching for.
- A replacement value you are happy to see on screen: a word like "Not found", a zero, an empty string "", or a number.
- Column headings or a labeled sample row if you plan to use INDEX and MATCH, since those refer to ranges rather than a single table.
Menu labels and formula names can differ slightly by version, device and region, so if a dialog looks different from these instructions, look for the equivalent option in your build rather than assuming the step is missing.
Step-by-Step
- Find the formula that is failing. Select the cell showing #N/A and look at the formula bar. If it starts with =VLOOKUP, =HLOOKUP, =MATCH or =XLOOKUP, the error almost certainly means the lookup value was not found in the lookup range. If it is an arithmetic formula such as =A2/B2, #N/A usually means one of the referenced cells is itself an error or an empty cell in a calculation that cannot handle it.
- Confirm it really is #N/A and not #VALUE! or #REF!. IFNA only catches #N/A. Wrapping a #REF! error in IFNA changes nothing, because #REF! is a different error type. Click the cell, read the small warning icon next to it, and check the error name in the status bar tooltip.
- Fix the underlying cause first if you can. Before hiding the error, check whether the lookup value has trailing spaces, whether the lookup column is on the left of the return column (VLOOKUP cannot look left), whether text is stored as numbers, or whether the table range has slipped. A replacement message is far more useful when the error is genuinely a missing value rather than a broken range.
- Write the IFNA wrapper. Put your original formula as the first argument and the fallback as the second. For a lookup in B2 against the list in A2:C20 returning column 3:
=IFNA(VLOOKUP(B2,A2:C20,3,FALSE),"Not found"). Press Enter and fill down the column. - Choose the right fallback value. Use a text label when a person will read the sheet, a zero when you need to sum the column, and "" when you want the cell to look blank. If you later run calculations on the column, "Not found" text will break SUM and AVERAGE, while 0 will quietly skew an average. Decide based on what happens next, not just on how it looks.
- Check the result on a row you know exists. Find one matching row and confirm the wrapped formula returns the correct value, not the fallback. This proves you wrapped the formula without changing its arguments.
- Fill down and spot-check the bottom rows. Drag the fill handle or copy and paste the cell down the column. Confirm that relative references moved correctly and that the fallback appears only on genuinely missing rows.
- Test the older-Excel version if needed. On Excel 2010 and older, use
=IF(ISNA(VLOOKUP(B2,A2:C20,3,FALSE)),"Not found",VLOOKUP(B2,A2:C20,3,FALSE)). This runs the lookup twice, which is slower on large sheets but behaves identically. - Consider IFERROR only if you want to catch everything. IFERROR catches #N/A, #VALUE!, #REF!, #DIV/0! and #NAME?, so it can mask broken references and typos. IFNA is the safer choice when only a missing match is expected, because other errors keep showing and stay visible for fixing.
- Save and recalculate. Press F9 (or Ctrl+Alt+F9 for a full rebuild) to force recalculation and confirm the whole column shows what you expect.
Common Mistakes
The most frequent error is wrapping with IFERROR when the intent was to catch only a missing lookup, which then hides real problems such as a deleted column or a mistyped range. Another common one is putting the fallback value in quotes when a number was intended: "0" is text and will not add, while 0 is a number. People also forget that VLOOKUP with exact match (FALSE) returns #N/A even when the value exists but has a trailing space, so the formula looks right while the data is dirty.
Watch for mismatched parentheses when nesting IFNA inside a long formula, and remember that if you nest IFNA inside another function, the outer function may still see the error if the IFNA sits in the wrong argument. Finally, do not use IFNA to hide a #REF! error; it will not work, and it makes the sheet look correct when it is not.
Tips
Use trimming and cleaning inside the lookup value when data comes from imports: =IFNA(VLOOKUP(TRIM(B2),A2:C20,3,FALSE),"Not found") catches the common trailing-space problem before it becomes an error. If you need to count missing values, use =COUNTIF(D2:D100,"Not found") after the fallback is in place, so you can see how many rows failed rather than scanning the sheet.
For readability, keep the fallback short and consistent across the workbook, and add a note in a nearby cell explaining what the fallback means. If you are on Microsoft 365, XLOOKUP has a built-in fourth argument for the not-found value, which removes the need for IFNA entirely: =XLOOKUP(B2,A2:A20,C2:C20,"Not found"). Use IFNA when you need to support older files that others may open in older Excel versions.
Troubleshooting
If the fallback still does not appear, check that the cell is not formatted as Text, which can show the formula as typed text instead of calculating it; set the format to General and re-enter the formula. If you see the fallback everywhere, the lookup range is probably anchored wrongly, or the column index is off by one; check the range with the Name Box and confirm the column number counts from the first column of the range.
If the formula returns #NAME?, the function name may be misspelled or the workbook may be in an older format that lacks IFNA; save as .xlsx and re-enter. If a #VALUE! appears instead of #N/A, the problem is a type mismatch, not a missing match, so IFNA will not help and the lookup value or data needs cleaning. When a sheet is shared, ask the owner which Excel version is in use before applying IFNA, since an older colleague may not see the function at all.
Frequently Asked Questions
What is the difference between IFNA and IFERROR?
IFNA catches only #N/A, which usually means a lookup found no match. IFERROR catches every error type, including #REF!, #VALUE! and #DIV/0!, so it can hide problems you would rather see.
Does IFNA work in Excel 2010?
No. IFNA was introduced in Excel 2013. In older versions use IF(ISNA(formula),fallback,formula), which does the same job but runs the lookup twice.
Can IFNA hide a real error I need to fix?
It hides only #N/A by design, which is why it is safer than IFERROR. If a range breaks, you will still see #REF!, so the problem stays visible.
Why does my VLOOKUP return #N/A when the value is clearly there?
Usually trailing spaces, numbers stored as text, or a lookup range that starts below the matching row. TRIM the lookup value and check the range before wrapping it in IFNA.
Can I use IFNA with XLOOKUP?
You can, but XLOOKUP already has a built-in not-found argument, so the fourth argument is simpler and avoids a nested function.