How to Retrieve the Cell Address of a Match in Excel (3 Methods)

Method 1 – Using a Combination of CELL, INDEX, and MATCH Functions

Steps

  • Select cell E5.
  • Enter the following formula:
=CELL("address",INDEX($B$5:$C$10,MATCH("Alisa",$B$5:$B$10,0),1))
  • Press Enter.

inserting formula in excel to return cell address of match

  • The result will be the cell address of the desired value (Alisa), which is B7.

combining cell, index, and match in excel to return cell address of match

Formula Break Down

  • MATCH(“Alisa”,$B$5:$B$10,0): It looks for an exact match of the value Alisa in the lookup array B5:B10 and finds the value in row number 3.
  • INDEX($B$5:$C$10,MATCH(“Alisa”,$B$5:$B$10,0),1): It returns the cell value at the intersection of row 3 and column 1. These numbers are rows and columns of the corresponding dataset. The output is Alisa.
  • CELL(“address”,INDEX($B$5:$C$10,MATCH(“Alisa”,$B$5:$B$10,0),1)): It returns the address of Alisa, and it is B7.

Method 2 – Applying ADDRESS and MATCH Functions in Combination

Steps

  • Choose cell E5.
  • Enter this formula:
=ADDRESS(MATCH("Alisa",B5:B10,0),2)
  • Press Enter.

typing formula in excel to return cell address of match

  • The result will be the cell address containing the specific value (Alisa), which is $B$3.

combining address and match functions in excel to return cell address of match

Formula Break Down

  • MATCH(“Alisa”, B5:B10,0): It looks for an exact match of the value Alisa in the lookup array B5:B10 and finds the value in row number 3.
  • ADDRESS(MATCH(“Alisa”, B5:B10,0),2): It looks for the cell address of Alisa and it is in column 1, row number 3 of the array. So, the result is $B$3.

Read More: How to Use Cell Address in Excel Formula


Method 3 – Using VBA Code

Steps

  • Select any cell (e.g., C7) to find its address.
  • Go to the Developer tab in the ribbon.
  • Click on the Visual Basic tab.

opening visual basic window in excel to return cell address of match

  • Insert a new module.

  • Enter the below code.

writing code in excel to return cell address of match

Sub cell_address()
Dim cell_address As String
cell_address = ActiveCell.Address
Cells(5, 5).Value = cell_address
End Sub
  • Save the code.
  • Run the code.

  • The cell address will be displayed.

Read More: Excel VBA to Find Cell Address Based on Value


How to Return Cell Address Instead of Value in Excel

Steps

  • In cell E5, enter this formula:
=MATCH("Alisa",$B$5:$B$10,0)
  • Press Enter.

  • This gives the row number of the cell containing the value.

  • For the column number, choose cell E8 and enter:
=MATCH("Alisa",$B$7:$C$7,0)
  • Press Enter.

  • The result will be the column number of the cell.


Download Practice Workbook

You can download the practice workbook from here:


Related Articles


<< Go Back to Excel ADDRESS Function | Excel Functions | Learn Excel

Get FREE Advanced Excel Exercises with Solutions!
Adnan Masruf
Adnan Masruf

Adnan Masruf, holding a BSc in Naval Architecture & Engineering from Bangladesh University of Engineering and Technology, plays a pivotal role as an Excel & VBA Content Developer at ExcelDemy. His deep passion for research and innovation seamlessly aligns with his dedication to Excel. In this capacity, Masruf not only skillfully addresses challenging issues but also exhibits enthusiasm and expertise in gracefully navigating intricate situations, underscoring his steadfast commitment to consistently delivering exceptional content. His interests... Read Full Bio

We will be happy to hear your thoughts

Leave a reply

Advanced Excel Exercises with Solutions PDF

 

 

ExcelDemy
Logo