Before you read the answers
- Type the price list and the order column from this guide into a blank sheet.
- Break each lookup the way the guide describes and watch the error appear.
- Name the cause before you read the fix, then apply the fix and compare results.
All examples use original synthetic data. Source row numbers and column letters are shown so you can reproduce the formulas.
Revenue rows that depend on a working lookup
Each order row below holds units and a unit price, the kind of price a VLOOKUP would pull from a price list. Multiply units by unit price for each order. If the lookup behind the price returned #N/A, every one of these revenue cells would show the error too.
USD for invented service orders. This is an original practice sample, not any employer's actual test or a qualification.
| Row | A · Order ID | B · Region | C · Status | D · Units | E · Unit price (USD) | F · Revenue: your formula |
|---|---|---|---|---|---|---|
| 8 | IT-201 | East | Open | 8 | 35 | Blank task cell |
| 9 | IT-202 | West | Closed | 12 | 28 | Blank task cell |
| 10 | IT-203 | East | Closed | 10 | 40 | Blank task cell |
| 11 | IT-204 | North | Open | 6 | 50 | Blank task cell |
| 12 | IT-205 | East | Open | 14 | 25 | Blank task cell |
| 13 | IT-206 | West | Closed | 9 | 32 | Blank task cell |
| Row | A · Service code | B · Service label |
|---|---|---|
| 20 | SV-10 | Setup |
| 21 | SV-20 | Training |
| 22 | SV-30 | Support |
Worked solution and complete results
IT-204 revenue · F11
=D11*E11Result: 300
IT-205 revenue · F12
=D12*E12Result: 350
IT-206 revenue · F13
=D13*E13Result: 288
A mistake to catch
Wrapping the lookup in IFERROR with a zero as soon as #N/A appears, so the revenue column fills with numbers and the missing prices are never found.
Correction. Leave the error visible until you know its cause. Run the checklist on one failing row, fix the data or the range, and only then decide whether a not-found message is the right thing to show.
Read the result
The three orders come to 300, 350 and 288. Those figures only exist because each row has a price. An error in the price cell spreads to the revenue cell and to every total built on it, which is why #N/A is worth fixing at the source.
Why does VLOOKUP return #N/A?
VLOOKUP returns #N/A when it cannot find your lookup value in the first column of the table you gave it. With an exact match, which is what FALSE as the last argument asks for, there is no near miss: either one cell in that first column equals your value or you get the error.
That leaves five common causes. The value has extra spaces. The value is in the table, but not in its first column. The table range moved when the formula was filled down. One side is a number and the other is text that looks like a number. Or the value really is missing. The first four are data or range problems that look like formula problems, which is why retyping the formula rarely helps.
To follow along, build one small sheet. A1:C1 holds SKU, Item and Price. A2:C6 holds TR-101 Trowel 14, HS-204 Hose 32, GL-310 Gloves 9, SP-415 Spade 27 and RK-520 Rake 21. On this sheet =VLOOKUP("HS-204",A2:C6,3,FALSE) returns 32. Every broken sheet below starts from that working formula. If the function itself is new to you, do the VLOOKUP lesson first.
What should you check first when VLOOKUP is not working?
Check the lookup value before you touch the formula. Count how many times the value appears in the first column of the table. On the practice sheet, =COUNTIF(A2:A6,"GL-310") returns 1, which means the key exists and a lookup can find it. A count of 0 tells you the lookup has nothing to match, and the remaining checks tell you why.
Run the checks in the same order every time. The order matters because the early checks are quick and rule out the most frequent causes, and because a later fix can hide an earlier problem.
Excel's own error is the same for all five causes, so the checklist is what separates them. Microsoft's page on correcting a #N/A error lists similar causes. The steps below turn them into a routine you can run on one failing row.
- Count the lookup value in the first column of the table with COUNTIF. Zero means no match exists as typed.
- Compare lengths with LEN on the lookup value and on the table cell you expected to match.
- Confirm the column you are searching is the first column of the table range.
- Click a failing cell lower in the column and read its table range. It should be the same range as the first row.
- Test both sides with ISTEXT or ISNUMBER to see whether one is text and the other a number.
- Read the last argument. For an exact question it should be FALSE.
How do you fix VLOOKUP #N/A caused by extra spaces?
Wrap the lookup value in TRIM, or clean the spaces out of the source data. A trailing space makes the text a different value, so an exact lookup cannot match it even though both cells look the same on screen.
Broken sheet 1: type HS-204 followed by one space into E2. =VLOOKUP(E2,A2:C6,3,FALSE) fails to find it and Excel shows #N/A. The proof is in the length. =LEN(E2) returns 7 and =LEN(A3) returns 6, so the order cell is one character longer than the code in the price list. =EXACT(E2,A3) returns FALSE for the same reason. The EXACT lesson covers this kind of strict comparison.
The fix: =VLOOKUP(TRIM(E2),A2:C6,3,FALSE) returns 32. TRIM removes the spaces at each end, and =EXACT(TRIM(E2),A3) now returns TRUE. If the stray spaces are in the price list instead of the order column, TRIM on the lookup value will not help. Clean the first column of the table itself, as the guide to cleaning imported data describes.
One thing you can rule out is capitalization. VLOOKUP does not care about case: =VLOOKUP("hs-204",A2:C6,3,FALSE) still returns 32.
Why does VLOOKUP return #N/A when the value is clearly in the table?
Because VLOOKUP only searches the first column of the table range. If the value you can see sits in the second or third column, the function never looks at it and reports that nothing was found.
Broken sheet 2: you know the item name and want its price. =VLOOKUP("Hose",A2:C6,3,FALSE) returns #N/A, even though Hose is plainly visible in B3. Two counts show what happened: =COUNTIF(A2:A6,"Hose") returns 0 and =COUNTIF(B2:B6,"Hose") returns 1. The value exists, but not in the column being searched.
The fix is to start the table at the column that holds your key and recount the column number from there. =VLOOKUP("Hose",B2:C6,2,FALSE) returns 32. Price is now the second column of the range, not the third.
If the value you want sits to the left of the key, VLOOKUP cannot reach it at all. To get the SKU for Hose, use =INDEX(A2:A6,MATCH("Hose",B2:B6,0)) or =XLOOKUP("Hose",B2:B6,A2:A6). Both return HS-204. The XLOOKUP lesson covers the separate lookup and return ranges that make this possible.
Why does VLOOKUP work in the first row and return #N/A further down?
The table range was written without dollar signs, so it moved down one row each time the formula was filled down. Rows near the top of the price list drop out of the range, and any order that needs them fails.
Broken sheet 3: put clean codes in the order column so that E3 holds TR-101, E5 holds RK-520 and E6 holds SP-415. Write =VLOOKUP(E2,A2:C6,3,FALSE) in F2 and fill it down to F6. The formula in F3 has become =VLOOKUP(E3,A3:C7,3,FALSE). TR-101 is in row 2, which is no longer inside the range, so F3 shows #N/A. In F6 the formula is =VLOOKUP(E6,A6:C10,3,FALSE) and SP-415, in row 5, is also out of reach.
This cause is easy to miss because some rows keep working. In F5 the formula is =VLOOKUP(E5,A5:C9,3,FALSE), and it still returns 21 because RK-520 sits in row 6, inside the shifted range. A column with a few correct answers and a few errors is the signature of a drifting range.
The fix is to lock the table before you fill down: =VLOOKUP(E3,$A$2:$C$6,3,FALSE) returns 14 and =VLOOKUP(E6,$A$2:$C$6,3,FALSE) returns 27. Click any cell in the column and the range should read the same. The references lesson covers when to use dollar signs.
How do you fix VLOOKUP #N/A when numbers are stored as text?
Make both sides the same type. A number and a piece of text that shows the same digits are different values to an exact lookup, so a numeric ID typed into one sheet will not match the same ID imported as text into another.
Broken sheet 4 is one to build in Excel itself. Replace the SKU codes with plain numeric IDs, then type one of those IDs into the order column with an apostrophe in front so that Excel stores it as text. Do not predict the result.
Test it: point ISTEXT at the order cell and ISNUMBER at the matching ID in the table. On the practice sheet as first built, =ISTEXT(A2) returns TRUE because TR-101 is text, and =ISNUMBER(C3) returns TRUE because the price 32 is a number. If your two keys give different answers to the same test, you have found the cause. The ISTEXT lesson and the ISNUMBER lesson cover both tests.
Other clues are numbers that sit at the left edge of the cell and a small green triangle in the corner. Neither is proof, because alignment can be changed by hand, so rely on the two functions.
Fix the data, not the formula, when you can. Convert the text column to real numbers once, for example with Text to Columns on the Data tab or by wrapping the key in VALUE, and check again with ISNUMBER afterward. Converting one side inside every lookup formula works, but it leaves the mismatch in place for the next person.
What if the lookup value really is missing from the table?
Then #N/A is the correct answer, and the fix is to correct the value or to show a clear message in its place. Do not change the last argument to TRUE to make the error go away. An approximate match on a list that is not sorted for it can return a price from a different row with no warning.
Broken sheet 5: type GL-301 into E4. It is a typo for GL-310, with two digits swapped. =VLOOKUP(E4,A2:C6,3,FALSE) returns #N/A, and =COUNTIF(A2:A6,E4) returns 0, which confirms the code does not exist. The spaces, column and range checks all pass, so the value itself is the problem. Correct the code and the lookup returns 9.
When missing codes are expected, say so on the sheet: =IFERROR(VLOOKUP(E4,A2:C6,3,FALSE),"Not listed") returns Not listed. In Excel 2021 and Microsoft 365, XLOOKUP has the message built in: =XLOOKUP(E4,A2:A6,C2:C6,"Not listed") also returns Not listed.
Add the wrapper last, because IFERROR hides every error and not only missing values. Ask for a fourth column from the three-column price list and =IFERROR(VLOOKUP("GL-310",A2:C6,4,FALSE),"Not listed") returns Not listed too, although GL-310 is in the list and the real fault is the column number. Excel also has IFNA, which is meant to catch only #N/A. Microsoft's IFNA page explains the difference. The IFERROR lesson covers when the wrapper is the right choice.
How do you stop VLOOKUP #N/A errors from coming back?
Fix the cause at the source and keep one check column beside the lookup. A lookup breaks again when new rows arrive with the same problem, so the lasting fix is clean keys and a locked range, not a longer formula.
A formula that handles the whole order column on the practice sheet is =IFERROR(VLOOKUP(TRIM(E2),$A$2:$C$6,3,FALSE),"Not listed"). Filled from F2 to F6, with the trailing space still in E2 and the typo still in E4, it returns 32, 14, Not listed, 21 and 27. The one Not listed is honest: it points at the row with the swapped digits.
Next to it, keep =COUNTIF($A$2:$A$6,TRIM(E2)) filled down. It returns 1 for every code that exists once and 0 for the typo. A column of ones means every lookup had exactly one row to find, which is a stronger statement than a column with no errors.
Then practice the diagnosis, not the formula. Break a working sheet on purpose, one cause at a time, and name the cause from the checklist before you fix it. The lookup practice test guide has questions to break this way and shows how to grade the answers. You can try one lesson of your choice for free. The rest of the course needs course access.
- Clean stray spaces out of both key columns.
- Lock the table range with dollar signs before filling down.
- Keep a COUNTIF check column beside the lookup.
- Add IFERROR last, with a message that says what is missing.
Practice the skills in order
- VLOOKUP VLOOKUP appears in many established office workbooks.Practice VLOOKUP
- IFERROR A column of error messages looks broken. A column of deliberate fallbacks looks finished.Practice IFERROR
- EXACT Ordinary spreadsheet equality ignores text case. EXACT is useful when a code or export identifier treats upper and lower case differently.Practice EXACT
- ISTEXT A product code or contact label should stay text. ISTEXT reveals when an import has changed its type.Practice ISTEXT
This guide covers #N/A from exact-match VLOOKUP on one sheet. It does not cover #REF!, #VALUE! or #NAME? errors, lookups into closed workbooks, or approximate-match band tables beyond a short note on what to check.
Practice VLOOKUPContinue in a downloadable workbook
Interview spreadsheet practice
Practice a mixed original work sample covering references, conditional totals, exact lookup and a short report.

USD for invented service orders. This is an original practice sample, not any employer's actual test or a qualification.
Bank version 2026-11-02. Includes Instructions, Practice, AnswerKey; 11 live answer formulas. All source records are invented for education.
The download is an additional practice task. Its Instructions sheet identifies the source coordinates; this page’s illustrative example may use different records.
- Working answers use scalar Excel 2007+ functions. No macros, external links or dynamic-array dependency. Native Excel has not been launched for verification.
Further reading
- How to correct a #N/A error Microsoft Support
- VLOOKUP function Microsoft Support
- TRIM function Microsoft Support
- IFNA function Microsoft Support
- XLOOKUP function Microsoft Support