跳到主要內容

如何在Excel中查找值並返回上方或下方的單元格?

在Excel中,我們使用VLOOKUP函數從範圍數據中查找特定值,但是您知道如何查找值,然後返回其上限值或下限值嗎? 實際上,您可以使用INDEX函數來處理它。

查找值並返回上方或下方的單元格


箭頭藍色右氣泡 查找值並返回上方或下方的單元格

查找值並返回上方的單元格

選擇要放置返回值的空白單元格,然後鍵入此公式 =INDEX(A1:A8,MATCH(D1,A1:A8,0)-1,1), 按 Enter 返回值的鍵。 看截圖:
doc看起來返回單元格高於1

查找值並在下面返回單元格

選擇要放置返回值的空白單元格,然後鍵入此公式 =INDEX(A1:A8,MATCH(D1,A1:A8,0)+1,1), 按 Enter 獲得結果的關鍵。 看截圖:
doc看起來返回單元格高於2

備註:在公式中,第一個A1:A8是您要查找值的範圍,第二個A1:A8是您要查找條件的範圍,D1是您要查找的值,1表示您要返回的列號。

如果您要查找一個值並在參考的右邊和下方返回3個單元格,則可以應用此公式 =INDEX(F1:H8,MATCH(K1,F1:F8,0)+1,3).
doc看起來返回單元格高於3

小費。如果您想快速查找一個值並返回另一列,請嘗試使用Kutools for Excel的 在列表中查找值 如以下屏幕截圖所示。 它在60天內無限制地提供完整功能, 請下載並立即免費試用。
doc看起來返回單元格高於4

最佳辦公生產力工具

🤖 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 (34)
No ratings yet. Be the first to rate!
This comment was minimized by the moderator on the site
Hi, I need help with this excel formula. I want to the display largest values with their corresponding names, i have 3 names with the same name value but my formula returns only 1 name for all the 3 values. =INDEX(Client,MATCH(L6,Month,0)).
This comment was minimized by the moderator on the site
Hi there... what formula can I use to say .. if the sum of a formula in a cell is greater than a number then return the amount greater than 48 in the cell below?
This comment was minimized by the moderator on the site
Hi, Cindy, I do not know how your data display. Here I have a formula =INDEX(G1:G6,MATCH(IF(I1>100,MIN(IF(G1:G6>K1,G1:G6))),G1:G6,0)+1,1) which use for this example:
In G1:G6, it lists some products and prices, in I1 is the sum of a formula, in K1 type 48 into it. Then suppose that if the sum is greater than 100, it will show the cell contents below the value that greater than 48 of list G1:G6. See screenshot:
https://www.extendoffice.com/images/stories/comments/sun-comment/doc-formula-2.png
If you just want to return the number which is greater than 48 when the sum is greater than 100, use formula =IF(I1>100,MIN(IF(G1:G6>K1,G1:G6)))
This comment was minimized by the moderator on the site
Hi,
Using MS-Excel I want a separate list of numbers from each column which are coming after 22.


22 54 49 94
34 88 18 22
92 48 22 86
22 63 83 31
89 15 76 5
71 89 33 84
86 77 79 22
1 22 88 12
71 68 22 75
7 74 36 59
74 39 98 63
52 66 22 58
22 31 26 0
67 16 60 13
14 33 16 77
37 37 25 1

Pls help.
Thankyou.
This comment was minimized by the moderator on the site
Hi, I do not understand your question. May you describe your quetion with more details, or give me a before and after comparison.
This comment was minimized by the moderator on the site
Hi, I am wanting to pick a state then pick how many kgs and then it references the Price per weight listed as it changes from point to point
0-500 501-1000 1001-5000 50001-1000 10001-2200 22000+
TBRI 0.476 0.282 0.219 0.197 0.177 0.159
TCNS 0.26 0.154 0.114 0.106 0.099 0.085
TGLD 0.246 0.146 0.108 0.097 0.087 0.059
TGOL 0.605 0.485 0.387 0.287 0.213 0.197
TMCK 0.1 0.077 0.006 0.048 0.04 0.029
PPP 0.246 0.146 0.108 0.097 0.087 0.059
TRTN 0.187 0.111 0.082 0.074 0.066 0.055
TTSV 0.187 0.111 0.082 0.074 0.066 0.245
TSYD 0.562 0.376 0.342 0.308 0.277 0.259
TNTL 0.427 0.286 0.26 0.299 0.278 0.259
TWLG 0.834 0.523 0.444 0.399 0.359 0.31
This comment was minimized by the moderator on the site
Hi, i´m having the following issue, i m using the MIN function to retrieve the smallest value of a row but i m not able to retrieve the value of the cell next to the smallest

0,82 € 690 0,92 € 721 0,61 € 2446 0,71 € 2443 114 2212

each of these values are in a cell and what i need is for ex: smallest value is 0.61 so i want to retrieve the cell right next to it 2443. im using Office 2010. thanks a lot
This comment was minimized by the moderator on the site
Hi, Paulo, if all your data is in a row, and each of them in a single cell, you can try this formula: =INDIRECT(CELL("address",INDEX(A1:J1,MATCH(MIN(A1:J1),A1:J1,0)+1))), if your data is in to columns, such as:
0,82 690
0,92 721
0,61,2446
0,71 2443
114 2212
you can visit this tutorial How To VLOOKUP The Lowest Value And Return Adjacent Cell In Excel?, it will hel you.
This comment was minimized by the moderator on the site
I can only get this formula to perform by putting the MATCH clause in additional parentheses so as to carry out the arithmetic function. Otherwise it returns a #VALUE error.

Original: =INDEX(A1:A8,MATCH(D1,A1:A8,0)-1,1)
Corrected: =INDEX(A1:A8,(MATCH(D1,A1:A8,0))-1,1)
This comment was minimized by the moderator on the site
I'm trying to figure out a way to bring a customer number (text field) by looking up the invoice number. See below. I want to go to another sheet and if cell equals 6491 then return customer number 007517 (text field), and if cell equals 6487 return 009897

6491 007517
6491 007517
6486 007517
6481 009897
6487 009897
6481 009897
6480 009897

Any help would be appreciated.

Thank you!!
This comment was minimized by the moderator on the site
Hi, Brad Grimes, Excel VLOOKUP function can help you to quickly solve the job. Pleae visit this tutorial LOOKUP Values from Another Worksheet or Workbook, it provides examples to explain how to use the VLOOOKUP function.
This comment was minimized by the moderator on the site
Anyone able to answer John Chapman's question from four years ago? I have similar challenge. My current formula is =COUNTIFS(G2:G16482,"<2",I2:I16482,F16490)
but I want to count the occurence of the value in cell F16490 in the row above for the range I2:I16482.
This comment was minimized by the moderator on the site
Hello, This is useful for the row above or below but I would like to alternate the lookup sometimes +1 to +3 or - 1 to -3. Can I make one formula that uses an input cell reference so I can type in an offset?
This comment was minimized by the moderator on the site
I have multiple rows with "Name" in the row just above the cell with a person's name in it. The formula works great for just one name but I have a few thousand names. How do I convert the formula so it will find each name and bring them into a separate column?
There are no comments posted here yet
Load More
Please leave your comments in English
Posting as Guest
×
Rate this post:
0   Characters
Suggested Locations