Naming Range - can't find an easy solution

Sal_Gxer

New Member
Joined
Jun 17, 2004
Messages
11
I've looked through the "Search" option but can't find my answer.
I am creating a column chart where the source data number of rows changes monthly. How can I write it so it chooses the necessary data (only 2 columns).

TIA.

Sal
 

Excel Facts

Excel Joke
Why can't spreadsheets drive cars? They crash too often!
Sal_Gxer said:
I've looked through the "Search" option but can't find my answer.
I am creating a column chart where the source data number of rows changes monthly. How can I write it so it chooses the necessary data (only 2 columns).

TIA.

Sal

Let A:B house on Sheet1 the data with headers in A2:B2 where column B is numeric.

Define...

Name: Drange

Refers to:

=Sheet1!$A$2:INDEX(Sheet1!$B$2:$B$65536,MATCH(9.99999999999999E+307,Sheet1!$B$2:$B$65536))
 
Upvote 0
I'm still a novice at this VBA. I tried lookin garound for hoe to define and all that but still a little confused - could you give me the whole code?
I'll learn this soon, thank you

Sal
 
Upvote 0

Forum statistics

Threads
1,214,387
Messages
6,119,222
Members
448,877
Latest member
gb24

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
Back
Top