VLOOKUP not working? 9 causes and how to fix each one
VLOOKUP returning #N/A even though the values match, the wrong value, or breaking when you drag it down? The 9 usual causes and the exact fix for each.
Tidy names typed with extra spaces and odd capitals.
TRIM removes the extra spaces and PROPER fixes the capitals. Put one inside the other.
Clean up each name in B2:B7: no extra spaces, and a capital at the start of each name. Write one formula in B2 and copy it down.
Typing formulas is easiest on a computer with a keyboard.
| A | B | C | |
|---|---|---|---|
| 1 | Name as typed | Clean name | |
| 2 | tARIQ li | ||
| 3 | NADIA pATEL | ||
| 4 | daniel fISCHER | ||
| 5 | quinn EVANS | ||
| 6 | jamal nOVAK | ||
| 7 | isla kowalski | ||
| 8 | |||
| 9 | |||
| 10 | |||
| 11 | |||
| 12 |
Lists typed by people, or copied from other systems, are often messy. Messy spaces are also the most common reason a lookup can't find something that looks identical.
TRIM and PROPER do?TRIM removes spaces at the start and the end, and turns double spaces in the middle into single ones.PROPER gives each word a capital first letter and makes the rest lower case.Yes, put one function inside another. Excel works from the inside out: =PROPER(TRIM(A2)) trims first, then fixes the capitals.
UPPER and LOWER?UPPER makes every letter a capital and LOWER makes them all lower case.
VLOOKUP returning #N/A even though the values match, the wrong value, or breaking when you drag it down? The 9 usual causes and the exact fix for each.
Know someone fighting with a spreadsheet? Send them this page.