Written and reviewed by FormulaCraft Team. Each formula on this page is run through our verification engine before publishing.
Last reviewed:
VLOOKUP returns #N/A when it cannot find the lookup value in the first column of your table range. The error means 'not available' — the match genuinely does not exist, or something is preventing the match from being recognised (a formatting difference, a hidden space, a number stored as text). No data is returned because no row was selected.
=VLOOKUP(A2,D2:F100,2,0)=VLOOKUP(TRIM(A2),$D$2:$F$100,2,0)TRIM removes hidden spaces from the lookup value, and the absolute range ($D$2:$F$100) prevents the table from shifting when the formula is copied.
Edit the grid or formula, then run it through a real spreadsheet engine — no signup.
Sample data — click any cell to edit
Stop hunting errors by hand.
Upload your spreadsheet and the Auditor flags every #N/A and broken formula at once — or paste this one formula and get the fix explained.
Only after you have diagnosed why the mismatch happens. IFERROR hides #N/A but does not fix the underlying problem. If a row genuinely has no match and a blank or zero is the right result, then IFERROR or IFNA is appropriate.
The cell likely contains invisible characters — a leading space, a non-breaking space, or a line break. Use TRIM(A2) in your formula and LEN(A2) to check the character count versus what you see.
In Excel, select the text-number column, click the warning triangle, and choose 'Convert to Number'. In Google Sheets, multiply the column by 1 with a helper formula =B2*1 or use VALUE(B2) to convert.
Look up a value in the first column of a range and return a value from another column in the same row.
How-toPull a value from a different tab with VLOOKUP by prefixing the range with the sheet name. Works in Excel and Google Sheets.
Error fixVLOOKUP returns an incorrect value in Excel and Google Sheets — fix wrong column index, approximate match mode, unsorted data, and duplicate lookup keys.
How-toLook up a value that matches two or more conditions using INDEX/MATCH with joined keys. Works in Excel 365 and Google Sheets.
Error fixVLOOKUP not working in Excel and Google Sheets — diagnose formula errors, wrong syntax, range issues, and when to switch to a better alternative.
How-toVLOOKUP shows #N/A when it can’t find a match. Here are the real causes — exact-match, spaces, text-vs-number — and how to fix each.
Written and reviewed by FormulaCraft Team. Each formula on this page is run through our verification engine before publishing.
Last reviewed: