What the video covers
Show how to replace or hide #N/A errors produced by lookup or calculation formulas in Google Sheets using IFNA or IFERROR.
Watch the video on YouTubeStep-by-step instructions
- Open the spreadsheet and select the cell showing #N/A
Go to the sheet with the lookup or formula that displays #N/A (commonly from VLOOKUP, XLOOKUP, MATCH, or INDEX). Click the cell to edit its formula. - Wrap the formula with IFNA to handle only #N/A
Place IFNA( immediately after the = sign, then add a comma and a fallback value before the closing ). Example: =IFNA(VLOOKUP(A2, D:E, 2, FALSE), "Not Found"). - Use a blank fallback if you prefer an empty cell
Replace the fallback text with empty quotes to leave the cell visually blank: =IFNA(VLOOKUP(A2, D:E, 2, FALSE), ""). - Use IFERROR to catch #N/A and other errors
If you want to catch any error type (not just #N/A), wrap the formula with IFERROR: =IFERROR(VLOOKUP(A2, D:E, 2, FALSE), "Data Missing"). - Apply the wrapped formula to other rows
Copy or fill the corrected cell down the column (drag or double-click the fill handle) so all rows use the error-handling wrapper. - Choose an appropriate fallback for calculations
If downstream formulas need numbers, use 0 as the fallback. For visual-only cleanup, use "". Use meaningful text (e.g., "Not Found") when you want users to know a match was missing.
Watch the video
Play tutorial
Why it matters
Unwrapped lookup formulas often return #N/A (or other error flags), which look unprofessional and can interfere with summary calculations. Wrapping formulas with IFNA or IFERROR provides a clean fallback value for display and downstream calculations.
Check your result
The cell that previously showed #N/A now displays your chosen fallback (custom text, blank, or zero). Copies of the wrapped formula applied down the column also show the fallback where errors occurred.
Troubleshooting
If errors persist: confirm the original formula inside the wrapper is unchanged and returns #N/A when expected; use IFERROR to catch other error types (#VALUE!, #REF!); ensure your fallback value is valid (e.g., use "" for blank or 0 for numeric). If lookups still fail, verify the lookup range and match key values for spelling, extra spaces, or data type mismatches.