Excel reverse match

Excel's vlookup should be one of the most frequently used functions in our daily office. Through vlookup we can quickly check data, and quickly import data between multiple tables and other functions.

But the vlookup function has a disadvantage, that is, the matching column must be after the query column . If the matching column is before the query column, we need to move the query column to after the matching column before using vlookup.

Here is a way for you to implement reverse query without changing the original table structure: index+match function

There is the following form. Now we need to match the customer's registration place and economic nature through the customer name.

Registration client's name Economic nature
Yu Bei District Chongqing Yufu Holding Group Co., Ltd. State-owned
Shapingba District Inventec (Chongqing) Co., Ltd. Private
Jiangbei District Chongqing Zhifei Biological Products Co., Ltd. Private
Jiangbei District Chongqing Jiajie Chuangyue Marketing Settlement Co., Ltd. Private
Yuzhong District Chongqing Pharmaceutical Peace Medical Equipment Co., Ltd. State-owned
South Bank area Chongqing Shenghuaxi Pharmaceutical Co., Ltd. Private
Jiulongpo District Chongqing Zhien Pharmaceutical Co., Ltd. Private
Jiulongpo District Chongqing Hailang Technology Industry (Group) Co., Ltd. Private
Jiangbei District Chongqing Yufu Expressway Co., Ltd. State-owned
Yu Bei District Chongqing Expressway Group Co., Ltd. State-owned
Yuzhong District Chongqing Rail Transit (Group) Co., Ltd. State-owned
Jiulongpo District Chongqing Siyuan Film Co., Ltd. Private
Jiangbei District Chongqing Youmi Film Co., Ltd. Private

 

Query economic properties formula: =VLOOKUP(H2,B:C,2,0);

Query registration formula: =INDEX(A:B,MATCH(H2,B:B,0),1), where H2 is the matching cell;

 

Guess you like

Origin blog.csdn.net/lz_peter/article/details/104834125