Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 623
Default Force pivot tables to use same source data

I have 5 pivot tables in a workbook. They all used the same source data (ie,
$a$1:$x$10000), but I decided I wanted a 6th which required a new column in the
data table.

If I create a new pivot table with the same data range as a previous one, Excel
asks me if I want to use the same data range. How do I do the reverse? How do I
update old pivot tables to use the more current range (ie, $a$1:$y$10000)?

--
Regards,
Fred



  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default Force pivot tables to use same source data

I don't think you can force it.

But you could select each pivottable, then open the wizard and go back to where
you specified the range and change it there.

But you may want to consider using a dynamic range that can grow and contract
based on how many rows (and columns) you're using.

Debra Dalgleish shares this:
http://contextures.com/xlNames01.html#Dynamic

If you want the columns to resize, too, you could modify her formula from this:
=OFFSET(Sheet1!$A$1,0,0,COUNTA(Sheet1!$A:$A),1)
to
=OFFSET(Sheet1!$A$1,0,0,COUNTA(Sheet1!$A:$A),COUNT A(Sheet1!$1:$1))

This kind of dynamic range trusts that you don't have any empty cells in column
A or row 1 (except at the bottom and far right of the table)--and nothing under
the table or to the right, too.


Fred Smith wrote:

I have 5 pivot tables in a workbook. They all used the same source data (ie,
$a$1:$x$10000), but I decided I wanted a 6th which required a new column in the
data table.

If I create a new pivot table with the same data range as a previous one, Excel
asks me if I want to use the same data range. How do I do the reverse? How do I
update old pivot tables to use the more current range (ie, $a$1:$y$10000)?

--
Regards,
Fred


--

Dave Peterson
  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 623
Default Force pivot tables to use same source data

Thanks, Dave.

I did use the wizard to go back and change the source range, but it didn't look
to me like it saved any space (although I don't know how to tell for sure).

I'll either live with it, or recreate the pivot tables. I like Deb's dynamic
range idea.

--
Regards,
Fred


"Dave Peterson" wrote in message
...
I don't think you can force it.

But you could select each pivottable, then open the wizard and go back to
where
you specified the range and change it there.

But you may want to consider using a dynamic range that can grow and contract
based on how many rows (and columns) you're using.

Debra Dalgleish shares this:
http://contextures.com/xlNames01.html#Dynamic

If you want the columns to resize, too, you could modify her formula from
this:
=OFFSET(Sheet1!$A$1,0,0,COUNTA(Sheet1!$A:$A),1)
to
=OFFSET(Sheet1!$A$1,0,0,COUNTA(Sheet1!$A:$A),COUNT A(Sheet1!$1:$1))

This kind of dynamic range trusts that you don't have any empty cells in
column
A or row 1 (except at the bottom and far right of the table)--and nothing
under
the table or to the right, too.


Fred Smith wrote:

I have 5 pivot tables in a workbook. They all used the same source data (ie,
$a$1:$x$10000), but I decided I wanted a 6th which required a new column in
the
data table.

If I create a new pivot table with the same data range as a previous one,
Excel
asks me if I want to use the same data range. How do I do the reverse? How do
I
update old pivot tables to use the more current range (ie, $a$1:$y$10000)?

--
Regards,
Fred


--

Dave Peterson



  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,979
Default Force pivot tables to use same source data

And after you set up one pivot table to use a dynamic range as its
source, there's code here that will set all the pivot tables to use the
same cache:

http://www.contextures.com/xlPivot11.html

Fred Smith wrote:
Thanks, Dave.

I did use the wizard to go back and change the source range, but it didn't look
to me like it saved any space (although I don't know how to tell for sure).

I'll either live with it, or recreate the pivot tables. I like Deb's dynamic
range idea.



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

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 623
Default Force pivot tables to use same source data

Thanks Debra. ChangePivotCache was just what I wanted, once I figured out I had
to change Sheets("Pivot") to one of my sheets with a pivot table in it.

It changed my 90Mb file to 30Mb.

--
Regards,
Fred


"Debra Dalgleish" wrote in message
...
And after you set up one pivot table to use a dynamic range as its source,
there's code here that will set all the pivot tables to use the same cache:

http://www.contextures.com/xlPivot11.html

Fred Smith wrote:
Thanks, Dave.

I did use the wizard to go back and change the source range, but it didn't
look to me like it saved any space (although I don't know how to tell for
sure).

I'll either live with it, or recreate the pivot tables. I like Deb's dynamic
range idea.



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





  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,979
Default Force pivot tables to use same source data

You're welcome. Thanks for letting me know that it worked, and that's
quite a reduction in file size!

Fred Smith wrote:
Thanks Debra. ChangePivotCache was just what I wanted, once I figured out I had
to change Sheets("Pivot") to one of my sheets with a pivot table in it.

It changed my 90Mb file to 30Mb.



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

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Source Data in Pivot Tables cqc Excel Worksheet Functions 7 August 2nd 07 01:34 PM
updating pivot tables using dynamic data source dab4211 Excel Discussion (Misc queries) 3 July 24th 06 09:30 PM
Pivot Table data source thunderbirds Excel Worksheet Functions 4 December 22nd 05 04:51 PM
Pivot Table data source "data source contains no visible tables" Jane Excel Worksheet Functions 0 September 29th 05 08:28 PM
Pivot tables share source data "after the fact" Don S Excel Worksheet Functions 4 March 23rd 05 03:44 PM


All times are GMT +1. The time now is 01:54 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"