ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Dynamic range in Pivot table (https://www.excelbanter.com/excel-discussion-misc-queries/148717-dynamic-range-pivot-table.html)

Wanna Learn

Dynamic range in Pivot table
 
Hello I have a named ranged and in the refer to is this formula
=OFFSET(Pivot!$A$1,0,0,COUNTA(Pivot!$A:$A),COUNTA( Pivot!$1:$1))
the problem is that it stops at rows 487 so everything ater row 487 is not
included in the pivot table ? what's wrong with the formula?

Debra Dalgleish

Dynamic range in Pivot table
 
Is there a value in every cell in the used range in column A?
If there are only 487 entries in that column, that's how many rows the
dynamic range will have.

Wanna Learn wrote:
Hello I have a named ranged and in the refer to is this formula
=OFFSET(Pivot!$A$1,0,0,COUNTA(Pivot!$A:$A),COUNTA( Pivot!$1:$1))
the problem is that it stops at rows 487 so everything ater row 487 is not
included in the pivot table ? what's wrong with the formula?



--
Debra Dalgleish
Contextures
http://www.contextures.com/tiptech.html


Toppers

Dynamic range in Pivot table
 
Are there any empty cells in the range which will "corrupt" the COUNTA count?

"Wanna Learn" wrote:

Hello I have a named ranged and in the refer to is this formula
=OFFSET(Pivot!$A$1,0,0,COUNTA(Pivot!$A:$A),COUNTA( Pivot!$1:$1))
the problem is that it stops at rows 487 so everything ater row 487 is not
included in the pivot table ? what's wrong with the formula?


Wanna Learn

Dynamic range in Pivot table
 
Toppers

yes in column A there are some scattered empty cells

"Toppers" wrote:

Are there any empty cells in the range which will "corrupt" the COUNTA count?

"Wanna Learn" wrote:

Hello I have a named ranged and in the refer to is this formula
=OFFSET(Pivot!$A$1,0,0,COUNTA(Pivot!$A:$A),COUNTA( Pivot!$1:$1))
the problem is that it stops at rows 487 so everything ater row 487 is not
included in the pivot table ? what's wrong with the formula?


Toppers

Dynamic range in Pivot table
 
..... that's your problem!

Try replacing the first COUNTA with:

=MATCH(LOOKUP(10^10,$A:$A),$A:$A,0)

This will ONLY work if data is numeric.

"Wanna Learn" wrote:

Toppers

yes in column A there are some scattered empty cells

"Toppers" wrote:

Are there any empty cells in the range which will "corrupt" the COUNTA count?

"Wanna Learn" wrote:

Hello I have a named ranged and in the refer to is this formula
=OFFSET(Pivot!$A$1,0,0,COUNTA(Pivot!$A:$A),COUNTA( Pivot!$1:$1))
the problem is that it stops at rows 487 so everything ater row 487 is not
included in the pivot table ? what's wrong with the formula?



All times are GMT +1. The time now is 12:22 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com