Skip to content
xlsoffice. All Rights Reserved
  • Home
  • Excel For Beginners
  • Excel Intermediate
  • Advanced Excel For Experts

Lookup and Reference Examples

  • How to get last row in numeric data in Excel
  • Extract all partial matches in Excel
  • Two-column Lookup in Excel
  • How to use Excel FORMULATEXT function
  • Perform case-sensitive Lookup in Excel

Data Analysis Examples

  • How to create Checklist in Excel
  • How To Insert and Customize Sparklines in Excel
  • Understanding Pivot Tables in Excel
  • Use Data Form to input, edit and delete records in Excel
  • How to Create Column Chart in Excel

Data Validation Examples

  • Excel Data validation must not contain
  • Excel Data validation date in next 30 days
  • Excel Data validation no punctuation
  • Excel Data validation specific characters only
  • Prevent invalid data entering in specific cells

How to get address of last cell in range in Excel

by

To get the address of the first cell in a named range, you can use the ADDRESS function together with ROW and COLUMN functions.

Formula

=ADDRESS(ROW(range)+ROWS(range)-1,COLUMN(range)+COLUMNS(range)-1)

Explanation

In the example shown, the formula in G6 is:

=ADDRESS(ROW(data)+ROWS(data)-1,COLUMN(data)+COLUMNS(data)-1)

How this formula works

The ADDRESS function builds an address based on a row and column number.

Working from the inside out, we use the ROW function to generate a list of row numbers, which are then shifted by adding ROWS(data)-1,  so that the first item in the array is the last row number:

ROW(data)+ROWS(data)-1

Then we do the same thing with COLUMN and COLUMNS:

COLUMN(data)+COLUMNS(data)-1

The ADDRESS function then assembles and returns an array of addresses. When entered in a single cell, just the item from the array is displayed, which is the address corresponding to the last cell in a range.

Worked Example:   Count rows that contain specific values in Excel

CELL function alternative

You can also use the CELL function to get the address of the last cell in a range with this formula:

=CELL("address",INDEX(data,ROWS(data),COLUMNS(data)))

In this case, we use INDEX to get a reference to the last cell in the range, which we determine by passing total rows and total columns into INDEX. The reference returned by INDEX is then handled by the CELL function, using “address”, to return the address.

Worked Example:   How to use Excel ROW Function

Note that the the CELL function can be volatile. If you add it to a worksheet, you’ll notice that you are prompted to save even when you’ve made no changes.

Worked Example:   Hide and Unhide Columns or Rows in Excel

Post navigation

Previous Post:

How to get address of named range in Excel

Next Post:

How to test for all values in a range are at least in Excel

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Learn Basic Excel

Ribbon
Workbook
Worksheets
Format Cells
Find & Select
Sort & Filter
Templates
Print
Share
Protect
Keyboard Shortcuts

Categories

  • Charts
  • Data Analysis
  • Data Validation
  • Excel Functions
    • Cube Functions
    • Database Functions
    • Date and Time Functions
    • Engineering Functions
    • Financial Functions
    • Information Functions
    • Logical Functions
    • Lookup and Reference Functions
    • Math and Trig Functions
    • Statistical Functions
    • Text Functions
    • Web Functions
  • Excel VBA
  • Excel Video Tutorials
  • Formatting
  • Grouping
  • Others
  • Remove leading and trailing spaces from text in one or more cells in Excel
  • How to check if cell contains number in Excel
  • RIGHT, RIGHTB functions: Description, Usage, Syntax, Examples and Explanation
  • Remove unwanted characters in Excel
  • Extract word that begins with specific character in Excel
  • How to calculate workdays per month in Excel
  • Calculate total hours that fall between two times in Excel
  • Sum through n months in Excel
  • Add business days to date in Excel
  • Add months to date in Excel
  • SLN function: Description, Usage, Syntax, Examples and Explanation
  • Calculate payment periods for loan in Excel
  • How to Calculate Tax Rates in Excel
  • Calculate loan interest in given year in Excel
  • How to calculate principal for given period in Excel
© 2022 xlsoffice . All Right Reserved. | Teal Smiles