Skip to content
Free Excel Tutorials
  • Home
  • Excel For Beginners
  • Excel Intermediate
  • Advanced Excel For Experts

Data Analysis

  • How to Create Column Chart in Excel
  • How to count table columns in Excel
  • Managing Conditional Formatting Rules in Excel
  • Conditional Formatting Rules in Excel
  • How to count table rows in Excel

References

  • Merge tables with VLOOKUP in Excel
  • INDEX function: Description, Usage, Syntax, Examples and Explanation
  • Count unique text values with criteria
  • How to use Excel ROW Function
  • How to use Excel INDIRECT Function

Data Validations

  • Excel Data validation unique values only
  • Excel Data validation exists in list
  • Excel Data validation must not contain
  • Excel Data validation specific characters only
  • Excel Data validation require unique number

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:   How To Skip Blanks Using Paste 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 Insert, Edit Show or Hide Comments

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:   Merge tables with VLOOKUP in Excel

Post navigation

Previous Post:

How to generate random date between two dates in Excel

Next Post:

Popularly Used Excel Functions and their examples

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

Logical Functions

  • How to use Excel FALSE Function
  • NOT function: Description, Usage, Syntax, Examples and Explanation
  • IFNA function: Description, Usage, Syntax, Examples and Explanation
  • Return blank if in Excel
  • How to use Excel OR Function

Date Time

  • Excel Date & Time Functions Example
  • MINUTE function: Description, Usage, Syntax, Examples and Explanation
  • Get project midpoint in Excel
  • DAYS360 function: Description, Usage, Syntax, Examples and Explanation
  • How to get number of days, weeks, months or years between two dates in Excel

Grouping

  • Map inputs to arbitrary values in Excel
  • How to randomly assign people to groups in Excel
  • Categorize text with keywords in Excel
  • Group times into 3 hour buckets in Excel
  • Group arbitrary text values in Excel

General

  • Excel Autofill Cell Ranges, Copy, Paste
  • AutoRecover file that was never saved in Excel
  • Currency vs Accounting Format in Excel
  • How to calculate profit margin percentage in Excel
  • How to get random value from list or table in Excel
© 2023 xlsoffice . All Right Reserved. | Teal Smiles | Abbreviations And Their Meaning