Dynamic Named Range - Select only part of the data

Myriad_Rocker

Board Regular
Joined
Dec 1, 2004
Messages
67
So I'm trying to implement some dynamic named ranges in a sheet of data that I have so that I can look up values based on those ranges. Basically, it is sales and quantity data that is divided out by Region, Brand, Pack, and Product. I need to select, for example, only the 'Atlantic' region's data.

I have attached an example spreadsheet of my data.

This is the formula that I was trying to use, but it errors and I'm not sure why.
OFFSET(CELL("address",INDEX('Sheet1'!$A:$A,MATCH("Atlantic",'Sheet1'!$A:$A,0),1)),0,0,COUNTIF('Sheet1'!$A:$A,"Atlantic"),6)

Here is the file: http://www.mediafire.com/file/wetylp1c188ez2x/NamedRange.xls

Sure would appreciate some help on this.

Oh, and IF possible, I'd like for the named range to select only from Brand onward (not include the Region column) because I'll be doing a vlookup on brand using the named range.
 

Excel Facts

Will the fill handle fill 1, 2, 3?
Yes! Type 1 in a cell. Hold down Ctrl while you drag the fill handle.
So I'm trying to implement some dynamic named ranges in a sheet of data that I have so that I can look up values based on those ranges. Basically, it is sales and quantity data that is divided out by Region, Brand, Pack, and Product. I need to select, for example, only the 'Atlantic' region's data.

I have attached an example spreadsheet of my data.

This is the formula that I was trying to use, but it errors and I'm not sure why.
OFFSET(CELL("address",INDEX('Sheet1'!$A:$A,MATCH("Atlantic",'Sheet1'!$A:$A,0),1)),0,0,COUNTIF('Sheet1'!$A:$A,"Atlantic"),6)

Here is the file: http://www.mediafire.com/file/wetylp1c188ez2x/NamedRange.xls

Sure would appreciate some help on this.

Oh, and IF possible, I'd like for the named range to select only from Brand onward (not include the Region column) because I'll be doing a vlookup on brand using the named range.
For the entire Atlantic range (column A to column F):

OFFSET($A$2,MATCH("atlantic",$A$2:$A$65536,0)-1,,COUNTIF($A:$A,"atlantic"),6)

For the Atlantic range from column B to column F:

OFFSET($A$2,MATCH("atlantic",$A$2:$A$65536,0)-1,1,COUNTIF($A:$A,"atlantic"),6)
 
Upvote 0
So I'm trying to implement some dynamic named ranges in a sheet of data that I have so that I can look up values based on those ranges. Basically, it is sales and quantity data that is divided out by Region, Brand, Pack, and Product. I need to select, for example, only the 'Atlantic' region's data.

I have attached an example spreadsheet of my data.

This is the formula that I was trying to use, but it errors and I'm not sure why.
OFFSET(CELL("address",INDEX('Sheet1'!$A:$A,MATCH("Atlantic",'Sheet1'!$A:$A,0),1)),0,0,COUNTIF('Sheet1'!$A:$A,"Atlantic"),6)

Here is the file: http://www.mediafire.com/file/wetylp1c188ez2x/NamedRange.xls

Sure would appreciate some help on this.

Oh, and IF possible, I'd like for the named range to select only from Brand onward (not include the Region column) because I'll be doing a vlookup on brand using the named range.
The following defines Atlantic...

=OFFSET(Sheet1!$B$2,MATCH("Atlantic",Sheet1!$A:$A,0)-MIN(ROW(Sheet1!$A$2)),0,COUNTIF(Sheet1!$A:$A,"Atlantic"),5)

The set up you want requires that the Region data (column A) is always in ascending order.

Follow the same pattern for other regions.
 
Upvote 0
For the Atlantic range from column B to column F:

OFFSET($A$2,MATCH("atlantic",$A$2:$A$65536,0)-1,1,COUNTIF($A:$A,"atlantic"),6)
Slight tweak...

Since we shifted the range over one column to the right we then need to reduce the range width by one column so...

For the Atlantic range from column B to column F:

OFFSET($A$2,MATCH("atlantic",$A$2:$A$65536,0)-1,1,COUNTIF($A:$A,"atlantic"),5)
 
Upvote 0

Forum statistics

Threads
1,224,586
Messages
6,179,730
Members
452,939
Latest member
WCrawford

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