Using a cell reference name to define the end of a column

fla5hbak

New Member
Joined
Jan 18, 2005
Messages
12
Hi again


How would I use the define name function to specify a range from E2 to the end of the column, without being explicit in the cell reference?
The reason I ask is for a spreadsheet which is updated from an access database. Therefore, it is growing and the end point of the spreadsheet is moving.

Thanks

Tref
 

Excel Facts

Move date out one month or year
Use =EDATE(A2,1) for one month later. Use EDATE(A2,12) for one year later.

Oaktree

MrExcel MVP
Joined
Jun 20, 2002
Messages
8,105
Office Version
  1. 365
Are there blank cells in column E?

If not, try defining MyRange =E2:OFFSET(E2,COUNTA(E:E)-1,0)
 

OdinsDream

Well-known Member
Joined
May 19, 2002
Messages
541
Re: Using a cell reference name to define the end of a colum

You can do this with the OFFSET function. This thread touches on it, but it's buried in details.

Here's a simple example of a range that includes everything from A1 down, as long as there's contiguous data:

=OFFSET(Sheet1!A1,0,0,COUNT(Sheet1!A:A),1)
 

Forum statistics

Threads
1,181,811
Messages
5,932,190
Members
436,822
Latest member
Junes786

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Top