跳到主要內容

如何使用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選項卡為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