Solved

Dynamic Pivot table source data

Posted on 2015-01-20
4
79 Views
Last Modified: 2015-01-20
Hi,

I want to use a dynamic named range for a pivot table so that when I update the data I will not have to update the range.  
The current data range is 'Worksheet'!$A$1:$AC$74338, but this could of course change as more data is added or removed.

I appreciate the help,
Montrof
0
Comment
Question by:montrof
  • 2
  • 2
4 Comments
 
LVL 7

Expert Comment

by:slubek
Comment Utility
Create your range as a table and base your pivot on that table. Every change (insert/delete) in table rows will cause pivot recalculation.
0
 
LVL 1

Author Comment

by:montrof
Comment Utility
would it not be better to use a dynamic range because on the data tabs there is some other stuff that could get affected if I make it a table
0
 
LVL 7

Accepted Solution

by:
slubek earned 500 total points
Comment Utility
If the table is a problem, create dynamic named range, for example referring to something like
=OFFSET($A$1,0,0,COUNTA($AC:$AC),1)

Open in new window

and use that dnr as a source of your pivot.

I suggested table because it worked for me, and I've never tried to use dnr as a pivot's source. I'm not sure, but if calculations of COUNTA() are done every time you use that dnr, then (with so many rows that you have) it could lead to performance issues. You have to test it.
0
 
LVL 1

Author Closing Comment

by:montrof
Comment Utility
Thanks I will play with both options.
0

Featured Post

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

A2 = A1 That kind of cell reference is relative.  If you copy it from A2 to B2, then B2 will get this: B2 = B1 That's all fine and good, but if you then insert a new row above row 2, you'll find: A3 = A1 B3 = B1 This is intentional. …
This article descibes how to create a connection between Excel and SAP and how to move data from Excel to SAP or the other way around.
The viewer will learn how to simulate a series of coin tosses with the rand() function and learn how to make these “tosses” depend on a predetermined probability. Flipping Coins in Excel: Enter =RAND() into cell A2: Recalculate the random variable…
The viewer will learn how to use a discrete random variable to simulate the return on an investment over a period of years, create a Monte Carlo simulation using the discrete random variable, and create a graph to represent the possible returns over…

763 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now