- Picture and text skills
When using the VLOOKUP function, the first parameter "lookup value" must be the first column of the selected area in the queried table to take effect, otherwise an error will occur.
For example, in this table, I want to query the quantity of the corresponding product through "product name", but the first column in the queried table is "quantity";
Using =VLOOKUP(F2,$A$1:$C$6,1,0) directly in G2 will cause the "VLOOKUP" query to fail.
How to change the original structure without adjusting the column order in the table? The following introduces the "VLOOKUP" reverse search method, which involves IF
Function, we all know how to write the IF function =IF (test condition, true value, false value), the same way =IF({1,0},B:B,A:A), we get The result is the content of column B
The content is changed to the front of column A;
In cell G2, change the second item in the vlookup function to be queried to "IF({1,0},B:B,A:A)", and the third item "column sequence number" "Changed to "2",
Press Enter and the number corresponding to "table" will be obtained;
Move the mouse to the lower right corner of the cell, and when it forms a + shape, drag the cell downward to copy the formula, and the quantities corresponding to other product names are also obtained.
Articles are uploaded by users and are for non-commercial browsing only. Posted by: Lomu, please indicate the source: https://www.daogebangong.com/en/articles/detail/VLOOKUP-ke-yi-ni-xiang-cha-zhao-ma.html
评论列表(196条)
测试