Dynamic Named Range Formula Question

Chookz

Board Regular
Joined
May 9, 2011
Messages
95
Hey All,
I am new to dynamic named range formulas so i watched a tutorial and got the following formula to fit my data range:

=offset(Sheet2!$A$1,1,0,counta(Sheet2!$A:$A)-1,8)

However it cuts off the 1st row of cells (the headings for my pivot) and not knowing exactly what each part of the formula details, I was wondering if anyone can fix it to include all rows?
Cheers
 

Excel Facts

Copy a format multiple times
Select a formatted range. Double-click the Format Painter (left side of Home tab). You can paste formatting multiple times. Esc to stop
Hey All,
I am new to dynamic named range formulas so i watched a tutorial and got the following formula to fit my data range:

=offset(Sheet2!$A$1,1,0,counta(Sheet2!$A:$A)-1,8)

However it cuts off the 1st row of cells (the headings for my pivot) and not knowing exactly what each part of the formula details, I was wondering if anyone can fix it to include all rows?
Cheers
Do you want the column headers to be included in the range?
 
Upvote 0
Yes thanks, so that the headers are included when i enter this range into a pivot table. Im just not sure what part of the formula needs changing
 
Upvote 0
Yes thanks, so that the headers are included when i enter this range into a pivot table. Im just not sure what part of the formula needs changing
Try this...

=OFFSET(Sheet2!$A$1,0,0,COUNTA(Sheet2!$A:$A),8)

Here's what it means...

OFFSET starting from cell Sheet2!$A$1
By 0 rows
By 0 columns
The height of the range in rows will be the result of the COUNTA function
The width of the range is 8 columns
 
Upvote 0
Just an alternative to offset:
The offset function is volatile, meaning it recalculates everytime the sheet changes, causing the slowdown in calculation.
Not necessarily.

Only if there are MANY volatile functions.

Many can be anywhere from 100's to 1000's. It just depends.

Don't be affraid of volatile functions! ;)
 
Upvote 0
Tried the Jeanie and did not work, so here is the short version :

As an alternative and to minimize usage of volatile offset function:
Use cell reference with combination of INDEX to create a range
=Sheet1!$A$1:INDEX(Sheet1!$A:$A,COUNTA(Sheet1!$A:$A))
and use it as the range name
 
Upvote 0

Forum statistics

Threads
1,224,518
Messages
6,179,258
Members
452,901
Latest member
LisaGo

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