referencing pivot table in another workbook

ajm

Well-known Member
Joined
Feb 5, 2003
Messages
2,065
Office Version
  1. 365
Platform
  1. Windows
Hi all, I have a pivot table measuring our top suppliers spend by Category in Book 1. There are multiple Categories per supplier. Subtotals are listed at the top of each group. this pivot has 100 suppliers and is 430 rows. Please forgive the black crossouts in these images. Image 1 is the original pivot table based on source transactional data.

1736912794667.png


In Book 2, I need the total spend for each supplier listed. (only 100 rows)

Currently, I have linked Book 2 to Book1 using basic formulas:

"='[Book1.xlsb]Top 100 by Branch BU FY24'!A10" where 'A10' is the first supplier name in the pivot table in Book 1. This links to the entire pivot table.
Image 2 is in Book 2 and links each cell to the corresponding cell in the pivot table in Book 1.
1736912924941.png


As i am only after the totals per supplier (not the underlying categories), I then use autofilter to select only the rows holding data. This gives the same result in Book 2 as if the Supplier filed was collapsed in the original pivot table.

How can I achieve the same result of showing only the Supplier totals but in subsequent rows? That is, in Book 2, Supplier 1 will be in Line 3, Supplier 2 in Line 4, Supplier 3 in Line 5, etc
Image 3 is the desired result. Only the subtotalled Supplier spend shown.
1736913537030.png


I am trying to avoid using pivot table in Book 2 where the source data is in Book1. Turns out my users like to sort the data their own way and everytime they do, the formulas return crazy (their word) answers. Have tried explaining that its unwise to sort/shuffle data off a collapsed pivot table but the blank stares were mildly alarming.
 

Attachments

  • 1736912745393.png
    1736912745393.png
    32.1 KB · Views: 3

Excel Facts

Quick Sum
Select a range of cells. The total appears in bottom right of Excel screen. Right-click total to add Max, Min, Count, Average.

Forum statistics

Threads
1,226,453
Messages
6,191,136
Members
453,642
Latest member
jefals

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