跳到主要内容

如何使用vlookup从Excel表返回多列?

在Excel工作表中,您可以应用Vlookup函数从一列中返回匹配值。 但是,有时,您可能需要从多个列中提取匹配的值,如下图所示。 如何使用Vlookup函数从多个列中同时获取相应的值?

doc vlookup多列1

Vlookup使用数组公式从多个列返回匹配值


Vlookup使用数组公式从多个列返回匹配值

在这里,我将介绍Vlookup函数以从多个列返回匹配的值,请按照以下步骤操作:

1。 从多个列中选择要在其中放置匹配值的单元格,请参见屏幕截图:

doc vlookup多列2

2。 然后输入以下公式: =VLOOKUP(G2,A1:E13,{2,4,5},FALSE) 进入编辑栏,然后按 Ctrl + Shift + Enter 键在一起,并且一次提取了多个列的匹配值,请参见屏幕截图:

doc vlookup多列3

备注:在以上公式中, G2 是您要基于其返回值的条件, A1:E13 是您要从中查找表的范围,即数字 2, 4, 5 是您要从中返回值的列号。

最佳办公生产力工具

🤖 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 (15)
No ratings yet. Be the first to rate!
This comment was minimized by the moderator on the site
how can i search for multiple lookup value?for eg: these two arrays shows diff freq coumn,gain,veritcal BW,tolerance etc.I want to get an average values gain and 3db BW..how can i enter the formula
y1    1800    7.5dBi +/- 2.9    22.1° +/- 6.8        7.5
y1    1900    7.6dBi +/- 3.0    18.9° +/- 3.6        7.6
y1    2100    6.7dBi +/- 2.6    17.7° +/- 3.6        6.7
y1    AWS    7.2dBi +/- 2.8    20.4° +/- 9.4        7.2
y1    2300    8.3dBi +/- 3.6    15.8° +/- 1.6        8.3
y1    2600    7.9dBi +/- 2.4    17.1° +/- 1.7        7.9
y2    1800    6.9dBi +/- 1.4    27.1° +/- 10.8        6.9
y2    1900    6.9dBi +/- 1.5    23.0° +/- 12.5        6.9
y2    2100    7.6dBi +/- 2.3    21.7° +/- 19.6        7.6
y2    AWS    8.0dBi +/- 2.5    23.3° +/- 13.8        8
y2    2300    7.7dBi +/- 1.6    15.9° +/- 5.9        7.7
y2    2600    6.5dBi +/- 2.3    14.5° +/- 3.9        6.5
This comment was minimized by the moderator on the site
I have many rows with same value but need to get multiple value after look up, I need to get two different EO ref , how can U##TRX EO
HXPRE-MQ1371 AB0024822
HXPRE-MQ1371 AB0024822
This comment was minimized by the moderator on the site
Thank you!! The { } of the columns is what I was missing. Appreciate this page!
This comment was minimized by the moderator on the site
Thanks! Super helpful, when other online options weren't
This comment was minimized by the moderator on the site
What if you need to have multiple rows as well? Ex. find all the FF-1006-18 rows while still only bringing back column B, D, and E.
This comment was minimized by the moderator on the site
Hello, Shelly,
Maybe there is not a direct formula for helping you, but, you can apply the below array fromula to get all matching values from the entire row, and then delete or hide the unwanted column as you need.
=INDEX($A$2:$E$10, SMALL(IF($G$2=$A$2:$A$10, ROW($A$2:$A$10)-MIN(ROW($A$2:$A$10))+1, ""), ROW(B1)),COLUMN(B1))
Then press Ctrl + Shift + Enter keys to get the first cell and then drag the fill handle to right and then drga down to get all corresponding values.

Please try, hope it can help you!
This comment was minimized by the moderator on the site
Thanks! This was really Helpful!
This comment was minimized by the moderator on the site
This method does not work. Even if it did, it is not the proper method.
Example of correct method is:
VLOOKUP($A2:$A1093, '[Workbook1.xlsx]Sheet2'!$A$2:$D$111,COLUMN(G2),FALSE)

Make sure you add $ before the column letter of your lookup reference to make sure it remains static, once done, using the filler button on the selected target cell, drag right to the corresponding number of columns.
This comment was minimized by the moderator on the site
This comment is exactly what I needed
This comment was minimized by the moderator on the site
How can I do this using 2 different spread sheets?
This comment was minimized by the moderator on the site
Hello, Lana,
The above formula in this article also can help you to get the results in another worksheet, you just need to change the cell reference as follows:
=VLOOKUP(A1,Sheet1!A1:E13,{2,4,5},FALSE)
Please remember to press Ctrl + Shift + Enter keys together to get the correct results.
This comment was minimized by the moderator on the site
NOT GETTING MULTIPLE COLUMN I'M GETTING ONLY ONE COLUMN VALUE
This comment was minimized by the moderator on the site
Hi, HARI,
To apply this formula, first, you should select the multiple cells where you want to output the results, and then copy the formula into the formula bar, then press Ctrl + Shift + Enter keys together to get the results.
Please try, hope it can help you!
This comment was minimized by the moderator on the site
This is great. How do I carry this formula down if I have 10,000 rows? I've tried a few ways but of course it's changing the formula on me.
This comment was minimized by the moderator on the site
Hi, Scully,
To apply this formula to multiple rows, you just need to change the relative cell reference to absolute reference, as this: =VLOOKUP(A1,Sheet1!$A$1:$E$13,{2,4,5},FALSE).
Please try this, hope it can help you!
There are no comments posted here yet
Please leave your comments in English
Posting as Guest
×
Rate this post:
0   Characters
Suggested Locations