What #N/A means
#N/A is short for “not available”. Google Sheets shows it when a lookup function, like VLOOKUP, XLOOKUP, MATCH or HLOOKUP, searches for a value and comes back empty-handed. Hover over the cell, or click it and look at the red corner, and Sheets tells you exactly what it was looking for: “Did not find value ‘Glue’ in VLOOKUP evaluation.”
That message is the place to start. Read the value in the quotes closely. Most of the time it’s either something that really isn’t on your list, or something that looks right but isn’t quite the same.
The example data
A small price list sits in columns A and B. Column D has four orders, and column E looks up each one’s price. One order works, one finds nothing, and one looks fine but still fails.
Fill that formula down column E and two of the orders break:
| A | B | C | D | E | |
|---|---|---|---|---|---|
| 1 | Item | Price | Order | Price | |
| 2 | Pen | 1.25 | Stapler | 8.99 | |
| 3 | Stapler | 8.99 | Glue | #N/A | |
| 4 | Folder | 3.25 | Pen | #N/A | |
| 5 | Notebook | 4.75 | Folder | 3.25 | |
| 6 | Marker | 1.95 | |||
| 7 | Tape | 2.75 |
The value really isn’t there
Glue isn’t in column A, so #N/A is the right answer. Before you go hunting for a hidden problem, check whether the value exists at all. =COUNTIF(A2:A7,D3) returns 0 here, which settles it.
If missing values are expected, say so in plain words instead of showing an error. IFNA catches #N/A and nothing else:
You’ll often see IFERROR used the same way, and it gives the same result here. The difference is that IFERROR hides every error, including the ones caused by a typo in your own formula. Stick with IFNA when the only thing you expect to go wrong is a missing value, so real mistakes still show up.
Want a blank instead of a message? Use "" as the second part: =IFNA(VLOOKUP(D3,$A$2:$B$7,2,FALSE),""). A total of the column will then skip that row instead of turning into #N/A itself.
Extra spaces you can’t see
The Pen order in D4 looks exactly like Pen in A2, but the lookup still fails. There’s a space after the word. =LEN(D4) returns 4 for a three-letter word, which gives it away.
Stray spaces creep in from copy and paste, forms and imported files, and lookups need an exact match. Strip them inside the formula with TRIM:
Better still, clean the data once so every formula benefits. Select the column and choose Data > Data cleanup > Trim whitespace. Check the list you search in as well as the values you search for, because the space can be on either side.
Text copied from a web page sometimes carries non-breaking spaces, which look like normal spaces but aren’t. If TRIM doesn’t help, swap them out first: =TRIM(SUBSTITUTE(D4,CHAR(160)," ")).
Numbers stored as text
To a lookup, the number 102 and the text "102" are different values, even though they look the same in a cell. This happens a lot with product codes, IDs and ZIP codes, especially after an import. A sign is that some of the numbers sit on the left side of the cell instead of the right.
On a second tab called Codes, each item has a number. Searching for the code as text fails, and converting it first works:
=VLOOKUP("102",Codes!A2:B4,2,FALSE)Returns #N/A. The codes on the tab are numbers, and "102" is text.
=VLOOKUP(VALUE("102"),Codes!A2:B4,2,FALSE)Returns Stapler. VALUE turns the text into a number first.
It works the other way too. When the codes in the list are text and the one you search for is a number, add &"" after it, like B2&"", to turn it into text. To fix a whole column for good, select it and choose Format > Number > Number, or Plain text if every code should stay text.
The range stops too early
Tape is in row 7 of the price list. A range written as $A$2:$B$6, maybe from before Tape was added, stops one row short, so Tape can’t be found:
=VLOOKUP("Tape",$A$2:$B$6,2,FALSE)Returns #N/A. Row 7 is outside the range.
=VLOOKUP("Tape",$A:$B,2,FALSE)Returns 2.75. Whole columns pick up every row you add later.
Also check that the range is locked with $ signs, as in $A$2:$B$7. Without them, filling the formula down slides the range down one row at a time, and the lookups near the bottom start missing items near the top.
You’re searching the wrong column
VLOOKUP only ever searches the first column of the range you give it. If you have a price and want the item name, =VLOOKUP(8.99,A2:B7,1,FALSE) looks for 8.99 in column A, finds only names, and returns #N/A.
XLOOKUP lets you choose the column to search and the column to return separately, in any order:
=XLOOKUP(8.99,B2:B7,A2:A7)Returns Stapler: it searches the prices and returns the name to their left.
INDEX and MATCH does the same and works in older files too: =INDEX(A2:A7,MATCH(8.99,B2:B7,0)) also returns Stapler.
#N/A from XLOOKUP, MATCH and others
- XLOOKUP: returns
#N/Awhen nothing matches, unless you give it a fourth argument.=XLOOKUP(D3,A2:A7,B2:B7,"Not on the list")needs no IFNA around it. - MATCH:
=MATCH("Glue",A2:A7,0)returns#N/Afor the same reasons as VLOOKUP. Keep the0at the end for an exact match. See MATCH. - HLOOKUP: the sideways version of VLOOKUP, so it searches the first row of the range instead of the first column.
- FILTER: shows
#N/Awith “No matches are found in FILTER evaluation” when no row meets the condition. Wrap it in IFNA to show a message instead.
When a whole total turns into #N/A
One #N/A in a column spreads to anything that adds it up, so =SUM(E2:E5) shows #N/A as long as Glue is missing. Fix it at the source: use IFNA with "" or 0 in the lookup column, and the total works again. To list or count the problem rows instead, =ISNA(E2) returns TRUE for each one, which you can filter on or count with COUNTIF.
Frequently asked questions
What does #N/A mean in Google Sheets?
It means “not available”: a lookup such as VLOOKUP, XLOOKUP or MATCH couldn’t find the value it was searching for. Hover over the cell to see which value it was.
How do I replace #N/A with 0 or a blank?
Wrap the formula in IFNA, for example =IFNA(VLOOKUP(D2,$A$2:$B$7,2,FALSE),0) for a zero or =IFNA(VLOOKUP(D2,$A$2:$B$7,2,FALSE),"") for a blank.
Should I use IFNA or IFERROR?
IFNA, when the only thing you expect to go wrong is a missing value. IFERROR also hides errors like #REF! and #VALUE! that usually mean the formula itself needs fixing.
Why does VLOOKUP return #N/A when the value is clearly there?
It almost always comes down to an exact-match problem: an extra space, a number stored as text, or a range that doesn’t include that row. Check the value with LEN, try TRIM or VALUE, and make sure the range covers every row.
Why does my SUM show #N/A?
One of the cells it adds up holds #N/A, and the error carries through to the total. Wrap the lookups in that column in IFNA with 0 or "" and the SUM will work again.