跳到主要内容

如何在Excel中使用多个条件vlookup值?

在 Excel 中,我们可以根据您使用 vlookup 功能设置的特定条件快速查找列表中的相应数据。 但是,如果您需要根据以下屏幕截图所示的多个条件查找相对值,您将如何处理?

具有LOOKUP功能的具有多个条件的Vlookup值

具有INDEXT和MATCH函数的具有多个条件的Vlookup值

具有多个条件且具有有用功能的 Vlookup 值


假设我有以下数据范围,我想使用两个标准来返回相对值,例如,我知道产品和颜色需要在同一行返回其对应的销售员:


具有LOOKUP功能的具有多个条件的Vlookup值

LOOKUP 函数可以帮助您解决这个问题,请将此公式输入到指定的单元格中,然后按 输入 以获得正确结果的关键,请参见屏幕截图:

=LOOKUP(2,1/($A$2:$A$12=G2)/($C$2:$C$12=H2),($E$2:$E$12))

备注:在上式中:

  • A2:A12 = G2:表示在A2:A2范围内搜索G12的标准;
  • C2:C12=H2:表示在C2:C2范围内搜索H12的条件;
  • E2:E12:指您要返回相应值的范围。

Tips:如果您有两个以上的标准,您只需要将标准添加到公式中,如下所示: =LOOKUP(2,1/($A$2:$A$12=G2)/($B$2:$B$12=H2)/($C$2:$C$12=I2),($E$2:$E$12)).


具有INDEXT和MATCH函数的具有多个条件的Vlookup值

在Excel中,混合的INDEXT和MATCH函数功能强大,可以让我们基于一个或多个条件来查找值,以了解此公式,请执行以下操作:

在空白单元格中输入以下公式,然后按 Ctrl + Shift + Enter 键,然后您将获得所需的相对值,请参见屏幕截图:

=INDEX($E$2:$E$12,MATCH(1,($A$2:$A$12=G2)*($C$2:$C$12=H2),0))

备注:在上式中:

  • A2:A12 = G2:表示在A2:A2范围内搜索G12的标准;
  • C2:C12=H2:表示在C2:C2范围内搜索H12的条件;
  • E2:E12:指您要返回相应值的范围。

Tips:如果您有两个以上的标准,您只需要将标准添加到公式中,如下所示: =INDEX($E$2:$E$12,MATCH(1,($A$2:$A$12=G2)*($B$2:$B$12=H2)*($C$2:$C$12=I2),0)).


具有多个条件且具有有用功能的 Vlookup 值

如果你有 Kutools for Excel,其 多条件查找 功能,您可以根据需要快速返回基于多个条件的匹配值。

请注意:申请这个 多条件查找,首先,您应该下载 Kutools for Excel,然后快速轻松地应用该功能。

安装后 Kutools for Excel,请这样做:

1。 点击 库工具 > 超级查找 > 多条件查找,请参见屏幕截图:

2。 在 多条件查找 对话框,请执行以下操作:

  • (1.)在 查询值 部分,指定查找值范围或按住 按Ctrl 您想要根据其查找值的键;
  • (2.)在 输出范围 部分,选择要放置匹配结果的输出范围;
  • (3.)在 关键列 部分,请按住 按Ctrl 键;
  • 备注: 中选择的列数 关键列 字段必须等于在 查询值 字段,以及每个选定列的顺序 关键列 字段必须与中的条件列一一对应 查询值 领域。
  • (4.)在 返回列 部分,选择包含您需要的返回值的列。

3。 然后,点击 OK or 使用 按钮,所有基于多个条件的匹配值都被一次性提取出来,见截图:


更多相关文章:

  • 跨多个工作表的Vlookup值
  • 在excel中,我们可以很容易地应用vlookup函数来返回工作表的单个表格中的匹配值。 但是,您是否考虑过如何在多个工作表中查找值? 假设我有以下三个工作表的数据范围,现在,我想根据这三个工作表的条件获取部分相应值,如何在 Excel 中解决此工作?
  • Vlookup 在 Excel 中返​​回空白或特定值而不是 0 或 N/A
  • 通常,当您应用vlookup函数返回相应的值时,如果匹配的单元格为空,则将返回0,如果找不到匹配的值,则会显示错误#N / A值,如下图所示。 而不是显示0或#N / A值,如何使其显示空白单元格或其他特定的文本值?
  • Vlookup并返回两个值之间的匹配数据
  • 在Excel中,我们可以应用常规的Vlookup函数基于给定的数据获取相应的值。 但是,有时,我们想要vlookup并返回两个值之间的匹配值,如下面的屏幕快照所示,您如何在Excel中处理此任务?
  • Vlookup并返回匹配值的整个/整个行
  • 通常,您可以使用Vlookup函数进行vlookup并从一系列数据中返回匹配值,但是,您曾经尝试过根据特定条件查找并返回整行数据,如下面的屏幕快照所示。

最佳办公生产力工具

🤖 Kutools 人工智能助手:基于以下内容彻底改变数据分析: 智能执行   |  生成代码  |  创建自定义公式  |  分析数据并生成图表  |  调用 Kutools 函数...
热门特色: 查找、突出显示或识别重复项   |  删除空白行   |  合并列或单元格而不丢失数据   |   不使用公式进行四舍五入 ...
超级查询: 多条件VLookup    多值VLookup  |   跨多个工作表的 VLookup   |   模糊查询 ....
高级下拉列表: 快速创建下拉列表   |  依赖下拉列表   |  多选下拉列表 ....
列管理器: 添加特定数量的列  |  移动列  |  切换隐藏列的可见性状态  |  比较范围和列 ...
特色功能: 网格焦点   |  设计图   |   大方程式酒吧    工作簿和工作表管理器   |  资源库 (自动文本)   |  日期选择器   |  合并工作表   |  加密/解密单元格    按列表发送电子邮件   |  超级筛选   |   特殊过滤器 (过滤粗体/斜体/删除线...)...
前 15 个工具集12 文本 工具 (添加文本, 删除字符,...)   |   50+ 图表 类型 (甘特图,...)   |   40+ 实用 公式 (根据生日计算年龄,...)   |   19 插入 工具 (插入二维码, 从路径插入图片,...)   |   12 转化 工具 (小写金额转大写, 货币兑换,...)   |   7 合并与拆分 工具 (高级组合行, 分裂细胞,...)   |   ... 和更多

使用 Kutools for Excel 增强您的 Excel 技能,体验前所未有的效率。 Kutools for Excel 提供了 300 多种高级功能来提高生产力并节省时间。  单击此处获取您最需要的功能...

产品描述


Office Tab 为 Office 带来选项卡式界面,让您的工作更加轻松

  • 在Word,Excel,PowerPoint中启用选项卡式编辑和阅读,发布者,Access,Visio和Project。
  • 在同一窗口的新选项卡中而不是在新窗口中打开并创建多个文档。
  • 每天将您的工作效率提高50%,并减少数百次鼠标单击!
Comments (11)
No ratings yet. Be the first to rate!
This comment was minimized by the moderator on the site
2,1 itu fungsinya apa yah?
This comment was minimized by the moderator on the site
I have sheet where 2 values should be verify from table available in another file in which 2 values from sheet are common and after matching both the criteria e.g Size and type from table it should capture price
This comment was minimized by the moderator on the site
Hello excelmaster,
How are you? You can lookup values in another file. Let me show you two ways. 
Solution 1:
In photo 1,  sheet1 has the original data of the product details. In photo 2, we need to know the price of some items. We can use the help of the new Excel XLOOKUP function to do the trick.The syntax is =XLOOKUP(lookup_value, lookup_array, return_array, [if_not_found], [match_mode], [search_mode]).Omitting the optional arguments, =XLOOKUP(lookup_value, lookup_array, return_array)In cell E2 of sheet2, please input the formula: =XLOOKUP(A2&B2&C2,Sheet1!A2:A12&Sheet1!B2:B12&Sheet1!C2:C12,Sheet1!D2:D12)Then you get the price of the item in E2. To get the rest of the result, we need to keep the arrays in E2 formula absolute.Then the formula becomes:=XLOOKUP(A2&B2&C2,Sheet1!$A$2:$A$12&Sheet1!$B$2:$B$12&Sheet1!$C$2:$C$12,Sheet1!$D$2:$D$12)
Then drag the autofill handle down to get the rest of the results.
Solution 2:Use the Multi-condition Lookup feature in Kutools for Excel. All results will be returned at the same time.Please see photo 3, set the values in Multi-condition Lookup dialog box. Click the OK button to get the results.Please see photo 4, results in sheet2 are returned based on the data in sheet1.
Hope my two solutions can help you. Have a nice day.
Sincerely,Mandy 
This comment was minimized by the moderator on the site
How do i do this
100 100100 ABC100101 DEF101102103 HIJ103
Results i want
100 ABC
100 ABC
100 ABC
100 ABC
101 DEF
101 DEF
102
103 HIJ
103 HIJ

what formula should i be using?
Thanks
This comment was minimized by the moderator on the site
The lookup will not work if there is a formula in the cell, what is the remedy ??
This comment was minimized by the moderator on the site
you are too genius, you solve my issue.
This comment was minimized by the moderator on the site
This is an elegant formula, also easily expansible to more criteria. The one donwside of INDEX+MATCH formulas is that it's really slow in larger datasets.
This comment was minimized by the moderator on the site
Index match should be faster in my personal opinion. It has been tested as well by many. If uses index match in an array, definitely it will be slower since it will become like a volatile formula. The above formula uses index match in array for multiple criteria condition which actually can be change to non-array type as well ;)
This comment was minimized by the moderator on the site
Thanks for this tutorial; :-) I have a question. What formula should I used? I have a series of data in a row like A1:M1, I'd like a result that if there is/are data that is/are < or > in specific number, it will result to "Disqualified" if it's true or " " (space) if false.
This comment was minimized by the moderator on the site
Hello, Thanks for this tutorial, it's very helpful. The following formula works great. =LOOKUP(2,1/(B:B=H97)/(I:I=H98),E:E). I have a simple question. What I want is, the cell should get the value if (H98 = open) If "open" is not there in (I:I) match (H99 = Under observation) from (I:I) and get the value, If possible get the row. I want to keep the formula as lite as possible. As I will be copying this formula in lots of cells. Also kindly suggest which of the above formula (LOOKUP/SUMPRODUCT/INDEX) is less processor intensive.
This comment was minimized by the moderator on the site
=LOOKUP(2,1/(A2:A10=G2)/(B2:B10=G3),(D2:D10)) what does the 2 mean?
There are no comments posted here yet
Please leave your comments in English
Posting as Guest
×
Rate this post:
0   Characters
Suggested Locations