专题测验3:Lookups: XLOOKUP, VLOOKUP, INDEX/MATCH and IFERROR
第1题,共15题
显示答案
答案: D. Exact match
Exact match (0) is the default for XLOOKUP. If nothing matches, it returns #N/A.
第2题,共15题
显示答案
答案: D. 39
XLOOKUP finds ALM-11 in column A and returns the value from the same row of D2:D7, the price 39.
第3题,共15题
显示答案
答案: C. LCK-05
XLOOKUP can return a value from a column to the left of the lookup column. Smart lock is in row 6, and its code is LCK-05.
第4题,共15题
显示答案
答案: B. 119
VLOOKUP finds LCK-06 in the first column and returns column 4 of the range (Price), which is 119. FALSE asks for an exact match.
第5题,共15题
显示答案
答案: B. #N/A
VLOOKUP only searches the first column of the range (column A, the codes). "Smart lock" is not there, so the exact match fails with #N/A.
第6题,共15题
显示答案
答案: D. #REF!
The range A2:E7 has only 5 columns. When col_index_num is greater than the number of columns, VLOOKUP returns #REF!.
第7题,共15题
显示答案
答案: C. Approximate match
If range_lookup is left out, VLOOKUP uses approximate match (TRUE), which expects the first column to be sorted. Use FALSE for an exact match, such as for codes.
第8题,共15题
显示答案
答案: D. Not listed
CAM-09 is not in column A, so XLOOKUP returns the if_not_found value you supplied, "Not listed".
第9题,共15题
显示答案
答案: C. #N/A
With no match and no if_not_found argument, XLOOKUP returns the #N/A error.
第10题,共15题
显示答案
答案: B. 5
MATCH returns the position of the item in the range, not the value. LCK-05 is the 5th cell in A2:A7 (it sits in row 6 of the sheet).
第11题,共15题
显示答案
答案: B. 24.75
INDEX returns the value at a position in a range. The 3rd cell of D2:D7 is D4, which holds 24.75.
第12题,共15题
显示答案
答案: B. Smart lock
MATCH finds 229 at position 5 of D2:D7. INDEX then returns the 5th item of B2:B7, Smart lock.
第13题,共15题
显示答案
答案: C. 0
ALM-12 is not in the list, so VLOOKUP gives #N/A. IFERROR catches the error and returns 0 instead.
第14题,共15题
显示答案
答案: C. IFNA
IFNA only replaces #N/A. IFERROR also hides #REF!, #VALUE!, #DIV/0! and others, which can hide real mistakes.
第15题,共15题
显示答案
答案: A. 4%
match_mode -1 means "exact match, or else the next smaller item". 32,000 is not listed, so XLOOKUP uses 25,000 and returns 4%.