You want a cell to stay empty when a lookup fails, instead of showing an #N/A error. The quickest working answer is to wrap your formula in IFERROR: =IFERROR(VLOOKUP(A2,Sheet2!A:B,2,FALSE),""). The final argument is two double quotes with nothing between them, which tells Excel to return an empty text string rather than the error. Everything below shows how this works with VLOOKUP, XLOOKUP and MATCH, plus how to keep the cell truly blank-looking and how to tell a real blank apart from a failed match.

What You'll Need

  • A copy of Excel on desktop (Microsoft 365, Excel 2021, 2019 or newer), Excel for the web, or Excel on Mac. IFERROR exists in all of these; XLOOKUP does not exist in Excel 2019 or older, so use VLOOKUP or INDEX/MATCH there.
  • A source table with a column to look up against and at least one column of values to return.
  • A lookup column where values are consistent in type, so numbers are stored as numbers and text as text.

Step-by-Step

  1. Write the lookup without any error handling first. For example, in a blank cell type =VLOOKUP(A2,Sheet2!$A$2:$B$100,2,FALSE). Press Enter. Where the looked-up value exists, you should see the matching result; where it does not, you will see #N/A. Confirming the lookup works before you hide errors is important, because a wrong range hidden behind a blank looks identical to a legitimately missing value.
  2. Wrap the whole formula in IFERROR. Place =IFERROR( at the start and ,"") at the end, so the cell reads =IFERROR(VLOOKUP(A2,Sheet2!$A$2:$B$100,2,FALSE),""). Press Enter and fill the formula down by dragging the small square at the bottom-right corner of the cell, or by double-clicking it.
  3. Check that the result reads as blank. Failed matches now show nothing. Be aware that the cell is not empty: it holds a zero-length text string. Formulas like =ISBLANK(B2) will return FALSE on it. If later steps need a genuinely empty cell, that matters, and the alternatives are covered in the tips below.
  4. Do the same for XLOOKUP if you have it. XLOOKUP has a built-in argument for this, so you do not need IFERROR at all: =XLOOKUP(A2,Sheet2!$A$2:$A$100,Sheet2!$B$2:$B$100,""). The fourth argument is the value to show when no match is found; leave it out and you get #N/A. XLOOKUP is available in Microsoft 365 and Excel 2021 and later, and in Excel for the web.
  5. Use IFNA instead when you only want to hide missing values. =IFNA(VLOOKUP(A2,Sheet2!$A$2:$B$100,2,FALSE),"") blanks only the "not found" error and still shows other errors, such as #REF! from a deleted column or #VALUE! from text where a number is expected. That is often better for catching real breakage.
  6. Handle a failed MATCH the same way. If you only need to know whether a value exists, =IFERROR(MATCH(A2,Sheet2!$A$2:$A$100,0),"") returns the row position when found and nothing when not. To turn that into a readable flag, use =IF(COUNTIF(Sheet2!$A$2:$A$100,A2)=0,"Not listed","Found").
  7. Combine a blank return with a label where it helps. A bare blank can look like a data-entry gap. If you want a deliberate signal, replace "" with something explicit such as "No match" or "-". Choose one convention and apply it to the whole column, because mixed blanks and dashes make filtering and counting unreliable.
  8. Decide whether blanks should be counted. Before you build SUM, COUNT or AVERAGE over the result column, note that "" is ignored by COUNT but included by COUNTA, and SUM treats it as zero. If you need correct counts, use COUNTIF with a criterion of "<>" to count non-blank entries, and check that your averages run over the numbers only.

Common Mistakes

The most frequent error is putting the quotes the wrong way round: ="") or , " ) with a stray space. A space makes the returned value a single space character, which looks blank but fails tests like =B2="". Type it cleanly as "".

The second is wrapping the entire formula in IFERROR before checking that the lookup itself is correct. If the range is absolute but off by a column, every row returns blank and the sheet looks empty for no visible reason. Always verify the unwrapped formula first.

Third, mixing text and numbers in the lookup column. A number stored as text (often imported from CSV, or left-aligned in the cell) will not match the same digits stored as a number, so genuine matches come back blank. Use Text to Columns or VALUE to clean the column, or wrap with TRIM and CLEAN to remove stray spaces.

Tips

  • Use absolute references ($A$2:$B$100) for lookup ranges so filling down does not shift them.
  • Table references (structured references) are more robust than fixed ranges because they expand automatically: =IFERROR(VLOOKUP([@ID],Products,2,FALSE),"").
  • If downstream charts or pivot tables choke on "", return NA() instead, which plots as a gap and is treated as missing by many functions.
  • To find which rows failed rather than hide them, use conditional formatting with a rule such as =ISNA(B2) and apply the formatting before wrapping in IFERROR.
  • Apply the same pattern to INDEX/MATCH: =IFERROR(INDEX(Sheet2!$B$2:$B$100,MATCH(A2,Sheet2!$A$2:$A$100,0)),"").
  • Keep the lookup range free of trailing spaces by cleaning the source column once with TRIM, rather than wrapping every formula.

Troubleshooting

Still seeing #N/A after wrapping. Either the closing quotes are misplaced, leaving IFERROR with only one argument, or the error is not actually a lookup failure. Click the cell, check the formula bar for balanced parentheses, and use Evaluate Formula on the Formulas tab to step through it.

Every row is blank. The formula is almost certainly correct but pointing at the wrong range, or the lookup values do not match due to type or whitespace. Test one known-good value by hard-coding it into the formula temporarily.

Blanks break a total or average. Replace "" with 0 and hide zeros with a custom number format, or switch to NA() if charts are involved.

Blank cells propagate into other formulas. Adding text to an empty string, as in ="ID: "&B2, produces "ID: " with nothing after it. Use IF(B2="","","ID: "&B2) to keep it clean.

Formula works on desktop but not in Excel for the web. XLOOKUP and IFERROR are both supported there, but older workbooks saved in legacy formats may not carry the function correctly; resave as .xlsx. Menu labels can also differ slightly by version, device and region, so look for the equivalent item rather than an exact name.

Frequently Asked Questions

Why does the cell look blank but ISBLANK says FALSE?

Because "" is an empty text string, not an empty cell. ISBLANK and COUNTBLANK treat it differently from a truly empty cell. Use =B2="" to test for it.

Should I use IFERROR or IFNA?

Use IFNA when you only want to hide "not found" errors and still want to see structural errors. Use IFERROR when any error in the formula should give the same fallback.

Can I return blank from a lookup without any error function?

With XLOOKUP, yes: supply "" as the if-not-found argument. VLOOKUP and MATCH must be wrapped.

Does returning a blank slow down a large workbook?

IFERROR adds little cost, but a whole-column VLOOKUP evaluated thousands of times does. Limit ranges to the actual data, or use XLOOKUP against a sized range.

How do I show blanks as dashes only in a report?

Leave the formulas returning "" and apply a custom number format on the display column, or build the report from a separate sheet that substitutes a dash with IF.