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

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.

Oaktree

MrExcel MVP
Joined
Jun 20, 2002
Messages
8,021
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,147,843
Messages
5,743,509
Members
423,800
Latest member
IuneKeiki

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