Written and reviewed by FormulaCraft Team. Each formula on this page is run through our verification engine before publishing.
Last reviewed:
ISNA specifically detects the #N/A error, returning TRUE only for that error type and FALSE for all other values including other errors. It is most often used with VLOOKUP, MATCH, or HLOOKUP to substitute a friendly message or a zero when a lookup target is not found in the range.
=IF(ISNA(MATCH(A2,B2:B5,0)),"Not found",MATCH(A2,B2:B5,0))=IF(ISNA(MATCH(A2,B2:B5,0)),"Not found",MATCH(A2,B2:B5,0))Computed by a real spreadsheet engine on the sample data below.
| LookupValue | Table | Result |
| Apple | Apple | Found |
| Grape | Banana | Not found |
| Banana | Cherry | Not found |
=IF(ISNA(MATCH(A2,B2:B5,0)),"Not found",MATCH(A2,B2:B5,0))→1
Edit the grid or formula, then run it through a real spreadsheet engine — no signup.
Sample data — click any cell to edit
Need a version for your data?
Try: “Show 'Not found' instead of #N/A when a VLOOKUP can't find a match”
Written and reviewed by FormulaCraft Team. Each formula on this page is run through our verification engine before publishing.
Last reviewed: