Try the example, then check the result.
Quick answer: For this test, enter ="PR-102"&CHAR(32) in E2 to create one trailing space. If exact-match VLOOKUP returns #N/A, compare LEN(E2) with LEN(TRIM(E2)): 7 versus 6. Then use =VLOOKUP(TRIM(E2),$A$2:$B$4,2,FALSE) to return $8.
Download the fictional material and follow the steps below. The video uses English illustrative diagrams; it does not present a live app recording. Product controls may vary by version.
Check the answer before applying the method to your own data. How we review guides ↗
Watch the complete lesson.
The video uses English illustrative diagrams; it does not present a live app recording. English captions. Product menus may differ in your account.
Quick answer: For this test, enter ="PR-102"&CHAR(32) in E2 to create one trailing space. If exact-match VLOOKUP returns #N/A, compare LEN(E2) with LEN(TRIM(E2)): 7 versus 6. Then use =VLOOKUP(TRIM(E2),$A$2:$B$4,2,FALSE) to return $8.
Diagnose an exact-match VLOOKUP that returns #N/A because a fictional SKU has one trailing space, then verify the corrected price. Download the fictional practice and answer check. The optional CSV source may require separator settings in some locales; the .xlsx workbook is the primary exercise.
Before starting: Use the .xlsx practice workbook so SKU and price columns remain separate across regional settings; the optional comma-separated CSV may need an explicit separator choice. Google Sheets may trim spaces typed or imported into a cell automatically, so the practice creates a repeatable trailing space with ="PR-102"&CHAR(32). TRIM removes ordinary extra spaces, but not every hidden Unicode character or a number-versus-text mismatch. VLOOKUP with FALSE finds exact matches only in the leftmost column of its range. IFNA can hide an error without fixing a dirty key.
2. Write an exact-match lookup
In an empty result cell, enter VLOOKUP with E two, absolute range A two through B four, index two, and FALSE. The exact formula is on screen and in the guide. FALSE is important because omitting the last argument can use approximate matching. The expected first result is number not available; that is useful evidence that the visually similar key is not actually equal.
Checkpoint: =VLOOKUP(E2,$A$2:$B$4,2,FALSE); FALSE means exact; Expected: #N/A.
4. Clean the lookup key
Wrap E two in TRIM inside the VLOOKUP search key: equals VLOOKUP, open parenthesis, TRIM of E two, comma, the same absolute two-column range, comma two, comma FALSE, close parenthesis. The clean key now matches PR one-oh-two in the first column, so the returned price is eight. The source product table is not changed by this formula.
Checkpoint: =VLOOKUP(TRIM(E2),$A$2:$B$4,2,FALSE); Expected: 8; Source table untouched.
5. Do not hide a bad lookup
IFNA can replace the error with a friendly message, but it does not tell you whether a key is wrong or a product is missing. First inspect the range, exact-match argument, and key length. TRIM handles ordinary spaces but not every invisible Unicode character. If the corrected lookup still fails, inspect the exact characters and whether the SKU is text in both locations before changing the business result.
Checkpoint: Diagnose before IFNA; TRIM has limits; Check text types.
Check the finished result
The final answer is not just the absence of an error. PR one-oh-two must map to eight dollars, while the other product prices remain twelve and twenty-five. The length test explains why the original exact match failed. Compare your formulas and results with the answer file; if you get a different product, check the first column and the index rather than accepting an approximate match.
Expected answer: A2:B4 contains PR-101 $12, PR-102 $8, and PR-103 $25. Put ="PR-102"&CHAR(32) in E2; it evaluates to PR-102 plus one trailing ordinary space. LEN(E2) returns 7; LEN(TRIM(E2)) returns 6. =VLOOKUP(E2,$A$2:$B$4,2,FALSE) gives #N/A, while =VLOOKUP(TRIM(E2),$A$2:$B$4,2,FALSE) returns 8. The source SKU in A3 remains unchanged.
If it still fails
If the exact-match lookup still returns #N/A, compare LEN(E2) with LEN(TRIM(E2)), confirm PR-102 is in the first column of A2:B4, and keep FALSE as the final argument. TRIM will not repair every hidden Unicode character.
Official references
Checked 16 October 2026. On-screen explanatory panels are labelled illustrative diagrams; any separately identified actual capture is a genuine English app view.
Practice downloads.
The exercise files contain invented information. Save a local copy before editing.