跳到主要內容

如何在Excel中相鄰或下一個單元格中的vlookup返回值?

我們如何查找一個值,但要在相鄰或下一個單元格中查找該值? 在本文中,我們將指導您如何在Excel中相鄰或下一個單元格中查找值並返回值。

在Excel中具有公式的相鄰單元格中的Vlookup返回值
使用Kutools for Excel輕鬆在相鄰單元格中的vlookup返回值
Vlookup在Excel中的下一個單元格中返回值


在Excel中相鄰單元格中的Vlookup返回值

例如,您有兩列,如以下屏幕截圖所示。 要在A列中查找最大權重並返回B列的相鄰像元值,請執行以下操作。

1.選擇一個空白單元格(此處選擇單元格C3),在其中輸入以下公式,然後按 Enter 鍵。 

=VLOOKUP(MAX(A2:A11), A2:B11, 2, FALSE)

然後,在所選單元格中填充列A中權重最大的相鄰單元格值。

此外,您可以基於單元格引用vlookup並獲取相鄰的單元格值。

例如,引用的單元格是C2,它定位值365,以便對該值進行vlookup並在相鄰單元格中返回該值。 您只需要將上面的公式更改為下面的公式,然後按 Enter 鍵。 看截圖:

=VLOOKUP(C2, A2:B11, 2, FALSE)

此索引功能也可以使用: = INDEX($ B $ 1:$ B $ 7,SMALL(IF(ISNUMBER(SEARCH($ C $ 2,$ A $ 1:$ A $ 7)),MATCH(ROW($ A $ 1:$ A $ 7),ROW($ A $ 1:$ A $ 7))),ROW(A1))) + 按Ctrl + 轉移 + Enter.


Vlookup在Excel中的下一個單元格中返回值

除了在相鄰單元格中返回值外,您還可以在Excel中vlookup並在相鄰單元格的下一個單元格中返回值。 看截圖:

1.選擇一個空白單元格,在其中輸入以下公式,然後按 Enter 鍵。 

=INDEX(B2:B7,MATCH(680,A2:A7,0)+1)

然後,您可以看到下一個單元格中的值已填充到所選單元格中。

備註:公式中的680是本例中vlookup的值,您可以根據需要更改它。


使用Kutools for Excel輕鬆在相鄰單元格中的vlookup返回值

隨著 在列表中查找值 的效用 Excel的Kutools,您可以在不使用公式的情況下vlookup並在相鄰單元格中返回值。

申請前 Excel的Kutools首先下載並安裝.

1.選擇一個空白單元格以查找相鄰的單元格值。 然後點擊 庫工具 > 公式助手 > 公式助手.

3。 在裡面 公式助手 對話框,請進行如下配置:

  • 3.1在 選擇一個公式 框,找到並選擇 在列表中查找值;
    保養竅門:您可以檢查 篩選 框,在文本框中輸入特定單詞以快速過濾公式。
  • 3.2在 表格數組 框, 選擇範圍包含vlookup值和您將返回的相鄰值(在這種情況下,我們選擇範圍A2:C10);
  • 3.2在 查找值 框, 選擇您要基於其返回值的單元格(在這種情況下,我們選擇單元格E2);
  • 3.3在 框,指定您要從中返回匹配值的列。 或者,您可以根據需要直接在文本框中輸入列號。
  • 3.4點擊 OK 按鈕。 看截圖:

然後,您將獲得單元格A8的相鄰單元格值。

  如果您想免費試用(30天)此實用程序, 請點擊下載,然後按照上述步驟進行操作。


使用Kutools for Excel輕鬆在相鄰單元格中的vlookup返回值

最佳辦公生產力工具

🤖 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 (7)
No ratings yet. Be the first to rate!
This comment was minimized by the moderator on the site
Hi,

Can anyone help me with the below please?
Currently, the formula I created picks up the second value next to the highest value in the first cell (4 and 2) but I need to amend it so it pick up the highest one with 2nd highest value (so it should ick up 4 and 3)

I L
4 2
4 3
2 3
3 3

thank you
This comment was minimized by the moderator on the site
Hi Zu,
Sorry I don't quite understand your question. Can you explain it more clearly?
This comment was minimized by the moderator on the site
Pants video because nowhere do you write the full formula for us to see. When I pause the screen covers with suggested videos. Whomever made this video has never actually taught. SHAME ON YOU
This comment was minimized by the moderator on the site
VLOOKUP(E2,A2:C10,COLUMN(B2:B10)-COLUMN(A2:C10)+1,1)
This comment was minimized by the moderator on the site
Hi,The video in this post only displays the usage of Kutools. At the end of the video, you can see there is a formula created, which is provided by Kutools. If you have installed Kutools, apply the corresponding feature will create the formula automatically to get the result. Or you can directly apply the formulas provided in the post to deal with the problem.
This comment was minimized by the moderator on the site
How can you add if there are multiple items on the list
This comment was minimized by the moderator on the site
Hi Niel,
The method in this article can do you a favor https://www.extendoffice.com/documents/excel/2623-excel-vlookup-return-multiple-values-horizontally.html.
Thank you for your comment.
There are no comments posted here yet
Please leave your comments in English
Posting as Guest
×
Rate this post:
0   Characters
Suggested Locations