Dynamic Range Names Using IF?

jayb3369

New Member
Joined
Apr 30, 2010
Messages
3
I want to create a dynamic range name for a single column. The column will contain dates. The number of rows will change every month when the data is cleared and new data is pasted in. I want to refer to the entire column by a dynamic range name, but I want to end the range before the year 2011. I don't want to include any dates past 2010 in the range.

The column will be sorted in ascending order.

I have no idea how to do this. Any ideas?

Thanks

Jayb3369
 

Excel Facts

VLOOKUP to Left?
Use =VLOOKUP(A2,CHOOSE({1,2},$Z$1:$Z$99,$Y$1:$Y$99),2,False) to lookup Y values to left of Z values.
jayb3369

You need to create a dynamic range name.

So you need to define a new Name and enter
= OFFSET(SheetName!$A$1,0,0,COUNTA(SheetName!$A:$A),COUNTA(SheetName!$1:$1))

As the data increases the range will resize.

HTH
Jon
 
Upvote 0
Thanks, but that's not quite what I want to do. I don't want to include all the data in the range. Every month, the amount of data (a column of dates) will be different. But I want the dynamic range to include only those dates in 2010. The dates will be sorted in ascending order.
 
Upvote 0

Forum statistics

Threads
1,215,633
Messages
6,125,922
Members
449,274
Latest member
mrcsbenson

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