For new items the usual cause is a fixed lookup range like Prices!$A$2:$B$4 that ends above the rows you added. Look in whole columns, =VLOOKUP(A2,Prices!$A:$B,2,FALSE), and decide what an item that is truly missing should show instead of #N/A.
See it happen
| A | B | |
|---|---|---|
| 1 | SKU | Price |
| 2 | TP-110 | 2.5 |
| 3 | BX-204 | 3.75 |
| 4 | GL-318 | 5 |
| 5 | MK-422 | 6.25 |
C3=VLOOKUP(A3,Prices!$A$2:$B$4,2,FALSE)| A | B | C | |
|---|---|---|---|
| 1 | SKU | Qty | Price |
| 2 | BX-204 | 4 | 3.75 |
| 3 | MK-422 | 2 | #N/A |
Three causes of #N/A, and the fix for each
| Cause | How to tell | Fix |
|---|---|---|
| The range ends above the new rows | The item is in the list, below the range | Look in whole columns: =VLOOKUP(A3,Prices!$A:$B,2,FALSE) returns 6.25 |
| The item really is not in the list | Search the list: it is not there | Say so instead of an error: =IFNA(VLOOKUP(A4,Prices!$A:$B,2,FALSE),"not in list") |
| A stray space in the value you look up | =LEN(A5) is one longer than it should be | Trim it: =VLOOKUP(TRIM(A5),Prices!$A:$B,2,FALSE). “GL-318␣” gave #N/A; trimmed, it returned 5 |
In Excel 2021 and Microsoft 365, XLOOKUP does the first two in one formula: =XLOOKUP(A3,Prices!A:A,Prices!B:B,"not in list") returns 6.25 for MK-422 and “not in list” for an item that is missing. In older versions, =INDEX(Prices!B:B,MATCH(A3,Prices!A:A,0)) is the usual alternative and also returned 6.25.
Two quieter VLOOKUP traps
Microsoft lists both in its announcement of XLOOKUP. Leave out the last argument, FALSE, and VLOOKUP does an approximate match: on an unsorted list it can return a wrong price with no error at all. And the column number, the 2 in the formula, is just a number: insert a column into the price list and the formula quietly returns the wrong column. Our engine did not reproduce the first trap on our small example, so we only describe it.
Should you hide #N/A with IFERROR?
Our view: not by default. IFERROR(…,0) turns “we don’t sell this” into a price of zero, and it also hides any other error in the formula. IFNA or XLOOKUP’s fourth argument handle only “not found”, and let you write what it means. More in #DIV/0! and IFERROR.
What Ghost Sheet doesn’t do
It cannot check the lookups in your own workbook. It has no task yet for the approximate-match or inserted-column traps.
How we checked
We ran the formulas on this page on the example data in the formula engine Ghost Sheet uses (Univer) on November 24, 2026, except where the page says we could not, and the sheets show the values it returned. That engine is not Microsoft Excel, and we have not re-run these examples in desktop Excel. One known difference: where Excel shows TRUE or FALSE, our engine shows 1 or 0.
- Microsoft Excel blog: Announcing XLOOKUP techcommunity.microsoft.com/t5/excel-blog/announcing-xlookup/ba-p/811376
Updated