I have a table that looks like this
B C
43 XS 6
44 S 11
45 M 16
46 L 21
47 XL 26
48 XXL 31
I've written the formula:
`VLOOKUP("S",B43:C48,2)`
It's returning a value of 21. WHY?! It should be returning 11!
update I reproduced this exact error in a different table. VLOOKUP
works when the search value is a number, but consistently fails when I use strings.
VLOOKUP does strange things unless you specify an "exact match" with the fourth argument, like so:
From Excel's help file:
And also:
Also, mismatching format types is causing you problems. (One cell is formatted as containing numbers, and the other is formatted as containing text). See problem/solution #2 on this page:
Solutions to Three Common Problems when Using VLOOKUP()