Named Ranges

dcnick

Board Regular
Joined
May 5, 2003
Messages
62
I am wanting to assign a name to a range of data. I have a column of data where the number of rows in the range may change. I use the following:

=OFFSET('Sheet1'!$B2,0,0,COUNTA!'Sheet1'!$B:$B-1)

It works great. However, whenever I exit out of the Name window and come back in to review the named ranges, it changes to the following for no reason:

=OFFSET('Sheet1'!$65356,0,0,COUNTA!'Sheet1'!$B:$B-1)

I have tried deleting the name, reentering, and clicking "add." It works great until I exit out of the window.

Any help is appreciated.
Thanks in advance
 

Excel Facts

What did Pito Salas invent?
Pito Salas, working for Lotus, popularized what would become to be pivot tables. It was released as Lotus Improv in 1989.

dcnick

Board Regular
Joined
May 5, 2003
Messages
62
Yikes...forgive me for the typos. This is what i have:

=OFFSET('Sheet1'!$B2,0,0,COUNTA('Sheet1'!$B:$B)-1)

For some reason, it likes to change B2 to B65356, and that obviuosly doesn't give me the data range I need. So, it changes to below:

=OFFSET('Sheet1'!$B65356,0,0,COUNTA('Sheet1'!$B:$B)-1)
 

dcnick

Board Regular
Joined
May 5, 2003
Messages
62
Bingo! What a dumb error on my part.

Instead of $B2, do $B$2.

Thanks so much!
Cheers
 

Watch MrExcel Video

Forum statistics

Threads
1,129,361
Messages
5,635,812
Members
416,884
Latest member
leeshjay

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