跳到主要內容

如何在Excel中查找值並返回單元格地址?

通常,使用公式在Excel中查找值時,將獲得單元格值。 但是在這裡,我將介紹一些公式來查找值並返回相對單元格地址。

查找值並使用公式返回單元格地址


箭頭藍色右氣泡 查找值並使用公式返回單元格地址

若要在Excel中查找值並返回相應的單元格地址而不是單元格值,可以使用以下公式。

公式1返回單元格的絕對參考

例如,您有一系列數據,如下面的屏幕快照所示,並且您想要查找產品AA並返回相對像元絕對引用。
doc-vlookup-返回單元格地址-1

1.選擇一個單元格並在其中鍵入AA,這裡我在單元格A26中鍵入AA。 看截圖:
doc-vlookup-返回單元格地址-2

2.然後鍵入此公式 =CELL("address",INDEX($A$18:$A$24,MATCH(A26,$A$18:$A$24,1))) 在與單元格A26(您鍵入AA的單元格)相鄰的單元格中,然後按 Shift + Ctrl + 輸入 鍵,您將獲得相對單元格引用。 看截圖:
doc-vlookup-返回單元格地址-3

小提示:

1.在上面的公式中,A18:A24是您的查找值所在的列範圍,A26是查找值。

2.此公式只能找到與查找值匹配的第一個相對單元地址。

公式2返回表中單元格值的行號

例如,您具有下面顯示的屏幕截圖所示的數據,您想要查找產品BB並返回表中其所有單元格地址。
doc-vlookup-返回單元格地址-4

1.在單元格中鍵入BB,在這裡我在單元格A10中鍵入BB。 看截圖:
doc-vlookup-返回單元格地址-5

2.在與單元格A10(您鍵入BB的單元格)相鄰的單元格中,鍵入此公式 =SMALL(IF($A$10=$A$2:$A$8, ROW($A$2:$A$8)-ROW($A$2)+1), ROW(1:1)),然後按 Shift + Ctrl + 輸入 鍵,然後向下拖動自動填充手柄以應用此公式,直到出現 #NUM!。 看截圖:
doc-vlookup-返回單元格地址-6

3.然後,您可以刪除#NUM!。 看截圖:
doc-vlookup-返回單元格地址-7

提示:

1.在此公式中,A10表示查找值,而A2:A8是查找值所在的列範圍。

2.使用此公式,您只能獲取表中除表頭之外的相關單元格的行號。

將公式引用批量轉換為絕對,相對,列絕對或行絕對

有時,您可能希望將公式引用轉換為絕對引用,但是在Excel中,快捷方式只能將引用一一轉換,這可能會浪費時間,而有數百個公式。 的 轉換參考 Kutools for Excel可以根據需要將選定單元格中的引用批量轉換為相對絕對值。   點選取得全功能 30 天免費試用!
doc kutools轉換參考1
 
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 (26)
No ratings yet. Be the first to rate!
This comment was minimized by the moderator on the site
HI. In sheet 1, I need a certain value present in sheet 2 to be returned. Therefore, in column A of sheet 2, first of all I have to look for a cell containing a specific text (all the cells in column A contain a different text) . From this cell I have to go two rows down and 33 columns to the right of this specific text cell. This is the sheet 2 cell containing my value to import into sheet 1. How can I do this? Could you please help me ? Thank you very much
This comment was minimized by the moderator on the site
Die Formel =CELL("address",INDEX($A$18:$A$24,MATCH(A26,$A$18:$A$24,1))) ist genau das, was ich suche!!!

Tipp 2. "Diese Formel kann nur die erste relative Zellenadresse finden, die dem Suchwert entspricht." beschreibt genau mein Problem: ich benötige die letzte relative Zellenadresse, die dem Suchwert entspricht. Ist das machbar?

Danke und Gruß
Micha
This comment was minimized by the moderator on the site
Hi, Damich, below formula will lookup value from bottom, and return the relative cell address:
=CELL("address",INDEX($A$1:$A$7,MATCH(2,1/($A$1:$A$7=A10),1)))
This comment was minimized by the moderator on the site
If my data is in any sheet of the workbook whether in sheet 1, or sheet 2, or sheet 3, how can I find the cell address of this data with the help of formula.

pls advise.....
This comment was minimized by the moderator on the site
Hi, you can add the sheet name in the formula: =CELL("address",INDEX(Sheet1!$A$18:$A$24,MATCH(A26,Sheet1!$A$18:$A$24,1))), Sheet1 is the sheet name that contains your data.
This comment was minimized by the moderator on the site
감사합니다.

다만
=CELL("address",INDEX($A$18:$A$24,MATCH(A26,$A$18:$A$24,1)))
->
=CELL("address",INDEX($A$18:$A$24,MATCH(A26,$A$18:$A$24,0)))
MATCH함수 마지막에 1이 아닌 0을 기입해야
AA가 아닌 BB의 위치도 반환이 되는 것 같아요.

훌륭한 설명 감사합니다.

큰 도움이 됬어요.
This comment was minimized by the moderator on the site
Is there any formula for this case below to summarize following Alphabet of results? For example: which numbers belong to A/B/..
A=1; E=42; D=64; C=32; B=20; D=9; A=10; B=22; D=45; C=21; E=30; E=59; A=33; D=23; C=11; B=25; B=49; D=6; D=99; E=89; A=70; D=27; B=4; C=47; D=68; E=62; A=57; A=86; B=91; D=93; C=18; D=12; A=55; D=50; ect.
==> expect for result: A=1;10;33;70;57;86;55
My email: thanks so much
This comment was minimized by the moderator on the site
Can we modify the formula =CELL("address",INDEX($A$18:$A$24,MATCH(A26,$A$18:$A$24,1))) to get all the cell addresses which contains a specific text string like an array formula
This comment was minimized by the moderator on the site
Can we modify the formula =CELL("address",INDEX($A$18:$A$24,MATCH(A26,$A$18:$A$24,1))) to get all the cell addresses which contains a specific text string
This comment was minimized by the moderator on the site
Have no idea.
This comment was minimized by the moderator on the site
=CELL("address",INDEX($A$18:$A$24,MATCH(A26,$A$18:$A$24,1))) excellent this function for me but i want cell reference address across multiple sheets.
This comment was minimized by the moderator on the site
Try to add the sheet name in the formula like =CELL("address",INDEX(Sheet1!$A$18:$A$24,MATCH(Sheet2!A26,Sheet1!$A$18:$A$24,1))).
This comment was minimized by the moderator on the site
I would like to lookup the address of the max value in column.
This comment was minimized by the moderator on the site
Hi, sorry to repy so late, if you also need the answer, this tutorial will help you: How To Find Address Of Cell With Max Or Min Value In Excel?
This comment was minimized by the moderator on the site
Hi Master,

What formula for search "value" belong to which sheet , address in excel file with 100 worksheet tab
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