Return address of first cell in a range

This tutorial shows how to return the address of a first cell in a specific range using an Excel formula or VBA

Example: Return address of first cell in a range

Return address of first cell in a range

METHOD 1. Return address of first cell in a range using Excel formula

EXCEL

=ADDRESS(ROW(B5:C10),COLUMN(B5:C10))
This formula uses the Excel ADDRESS, ROW and COLUMN functions with the range from which you want to return the address of the first cell inserted as the reference in the ROW and COLUMN functions.

METHOD 1. Return address of first cell in a range using VBA

VBA

Sub Address_of_first_cell_in_range()
'declare variables
Dim ws As Worksheet
Dim rng As Range
Set ws = Worksheets("Analysis")
Set rng = ws.Range("B5:C10")
'return the address of the first cell in a specified range
ws.Range("E5") = rng(1).Address

End Sub

Explanation about how to return address of first cell in a range

EXPLANATION

EXPLANATION

This tutorial shows how to return an address of a first cell in a range through the use of an Excel formula or VBA.
The Excel formula uses the ADDRESS, ROW and COLUMN functions to return the address of the first cell in the specified range, whilst the VBA method uses only the Address function.
FORMULA
=ADDRESS(ROW(range),COLUMN(range))
ARGUMENTS
range: The range from which to return the address of the first cell.

RELATED TOPICS

Related Topic Description Related Topic and Description
How to return the address of a specific cell using Excel and VBA
How to return the address of an active cell using Excel and VBA

RELATED FUNCTIONS

Related Functions Description Related Functions and Description
The Excel ADDRESS function returns a cell reference as a string, based on a row and column number
The Excel ROW function returns the first row number of the selected reference
The Excel COLUMN function returns the first column number of the selected reference