to avoid above step every time you add a new data or rows in source for pivot
we can use a dynamic source and create a pivot using that
Steps to create a dynamic source for pivot
1. right click on source data and choose name a range. you will see a window like below.
here is the formula to make a dynamic range
=OFFSET(Data!$A$1,0,0,COUNTA(Data!$A:$A),4)
Data!$A$1 = is the staring cell of data
0 keep it zero always
0 keep it zero always
COUNTA(Data!$A:$A) = it will count no of rows filled
4 = no of columns in source data
and click on ok
(Data! - is sheet name of source data)
type source( or the name you have given to dynamic source data) in the source data of pivot
Now whenever you will add new data to source you don't need to go again and agian to change pivot source data it will automatically pic it up
This isn't working for me in Excel 2010. I either get an error about the reference data being invalid, or it will allow me to select "OK" and appears to have changed the source...except when I re-open the "Change Source Data," it is the original data field, not my new offset field....help????
ReplyDelete@thebelgers - are you sure. Is it possible to share the sample workbook.
ReplyDeletealso if you want to know more about pivots visit
ReplyDeletehttp://www.contextures.com/xlpivot01.html