跳到主要內容

如何在Excel中使用下拉列表進行VLOOKUP?

doc-vlookup-下拉列表-1
在Excel中,VLOOKUP和下拉列表是兩個有用的功能。 但是,您是否嘗試過使用下拉列表進行VLOOKUP? 例如,您在一個範圍內有一個下拉列表,並且當您從下拉列表中選擇一種水果時,相對價格將顯示在相鄰的單元格中,如下圖所示。 現在,本教程將通過下拉列表告訴您VLOOKUP。
帶下拉列表的VLOOKUP

箭頭藍色右氣泡 帶下拉列表的VLOOKUP

實際上,當查找值在下拉列表中時,VLOOKUP函數也可以工作。

例如,您有一系列數據,如下圖所示:

doc-vlookup-下拉列表-2

然後根據上述數據創建一個下拉列表。 見下面的截圖:

doc-vlookup-下拉列表-3

現在,您想使用VLOOKUP來獲取所選水果的相對價格。

1.從下拉列表中選擇一個值,鍵入以下公式 = VLOOKUP(E2,$ A $ 2:$ B $ 6,2,FALSE) 放入與下拉列表相鄰的單元格。 看截圖:

doc-vlookup-下拉列表-4

2。 然後點擊 Enter 鍵,並顯示相對價格。 看截圖:

doc-vlookup-下拉列表-5

小提示:

在上面的公式中,E2是下拉列表中的查找值,A2:B6是原始數據的數據范圍,2表示此公式將返回原始數據第二列中的值。


在Excel中輕鬆創建動態的2級或多級依賴下拉列表

在Excel中,創建2級或多級下拉列表很複雜。 在這裡 動態下拉列表 的效用 Excel的Kutools 可以幫你一個忙。 您唯一要做的就是按示例所示對數據進行排序,然後選擇數據范圍和輸出範圍,然後將其留給實用程序。  點擊免費試用30天!
doc高級合併行
 
Kutools for Excel:擁有300多個便捷的Excel加載項,可以在30天內免費試用。

最佳辦公生產力工具

🤖 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 (4)
No ratings yet. Be the first to rate!
This comment was minimized by the moderator on the site
I have a drop list in sheet-2 so it is in this format500 usd / 37500 inr. so i want to use VLOOKUP in an other cell so it only represents the value in inr like - 37500 inr . so what should i do
This comment was minimized by the moderator on the site
Hello,

I want to extend this question:
I have a table with Vlookup, which is used to create a Dropdown list depended on another selection of a first dropdown list.
Now if I Change the selection on the first Dropdown list, the table gets changed and the second Dropdown list is altered. However,only the entries/items in the second Dropdown list Change, but not the already choosen entries/items of this list in one cell (e.g. Keeper: ("B2")). How can I update also already choosen items?

Thanks for your hints!

Example:

Team | BVB | SVW | Table for Dropdown 1 | Table for Dropdown 2
Keeper | Mister 1 | Mister 11 | BVB | =VLookup...
Libero | Mister 2 | Mister 22 | SVW | =Vlookup...
Libero2 | Mister 3 | Mister 33 | =Vlookup...

ColA Col B
Row1 Team: Choose Dropdown 1 with team
Row2 Keeper: Selected Dropdown 2 with player
Row3 Libero: Selected Dropdown 2 with player
This comment was minimized by the moderator on the site
Sorry, I have no idea about this problem. maybe someone can help you if you carry on the problem in our forum https://www.extendoffice.com/forum.html
This comment was minimized by the moderator on the site
Based on this, I have two tables in a sheet. The first table looks has following format - Name Email Position John Left Silver Right James Center Entries in the 3rd column position are selected from a drop down list. The second table is where I want names to populate i.e. it has following format - Left is a blank cell where I want name (John) to appear when I select Left from dropdown in position column. I am using VLOOKUP with following formula - VLOOKUP(cell with value 'left' in second table, range from John to Center, 1, FALSE). I am getting #N/A error. Anyone facing similar problem or has solution to this? Thanks in advance.
There are no comments posted here yet
Please leave your comments in English
Posting as Guest
×
Rate this post:
0   Characters
Suggested Locations