简体   繁体   English

Excel VlookUp函数,条件为“或”

[英]Excel VlookUp function with conditon ''or''

I Have two excel files: 我有两个Excel文件:

First file : 第一个档案:

Store name   ID distributor 1    ID distributor 2     ID distributor 3
 Apple         ID10               ID200               ID5000
 Nokia         ID30               ID400               ID6000

Second File is a list of mix ID from different distributors 第二个文件是来自不同分销商的混合ID的列表

Distributor ID code      Strore Name
1- ID10                      ?
2- ID400                     ?
3- ID5000                    ?

Is it possible to make a VLOOKUP function which will try to find a match in ID distributor 1 and IF no match, look up in ID distributor 2 and IF no match, look up in ID distributor 3 . 是否可以使VLOOKUP函数尝试在ID分配器1和IF不匹配中查找匹配项,在ID分配器2和IF不匹配中查找,在ID分配器3中查找匹配项。 I have about 7 columns of different IDs for the same store name. 对于相同的商店名称,我大约有7列不同的ID。

For each ID then, it will return the store name in my column 'Store Name' in sheet 2. 然后,对于每个ID,它将在工作表2的“商店名称”列中返回商店名称。

Use Index/Aggregate: 使用索引/汇总:

=IFERROR(INDEX(Sheet1!A:A,AGGREGATE(15,7,ROW(Sheet1!$B$1:$D$100)/(Sheet1!$B$1:$D$100=A1),1)),"")

在此处输入图片说明

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM