"P102" exactly using VLOOKUP. Which formula will return the correct price?A1:B5 P101 10 P102 15 P103 20 P104 25 P105 30
VLOOKUP with FALSE as the last argument looks for an exact match. Using TRUE or omitting it causes approximate match, which may return wrong results if data is not sorted.
A1:B5 50 F 65 D 75 C 85 B 95 A
With approximate match (TRUE), VLOOKUP finds the largest value less than or equal to the lookup value. Here, 75 is the largest score ≤ 78, so grade C is returned.
MATCH with 1 finds the largest value less than or equal to the lookup value in ascending sorted data. 0 requires exact match, -1 is for descending sorted data.
"P103" in an unsorted list:=VLOOKUP("P103", A1:B5, 2, TRUE)What is the likely result?
Using approximate match (TRUE) on unsorted data can return wrong or unexpected results because VLOOKUP assumes data is sorted ascending.
A1:B6
10 Low
20 Medium
30 High
40 Very High
50 Extreme
What is the output of these formulas?
1)
=VLOOKUP(35, A1:B6, 2, TRUE)2)
=VLOOKUP(35, A1:B6, 2, FALSE)For approximate match, 35 is between 30 and 40, so it returns the label for 30 which is High. For exact match, 35 is not found, so it returns #N/A.