ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Comparing 2 pivot tables data using VBA (https://www.excelbanter.com/excel-worksheet-functions/74815-comparing-2-pivot-tables-data-using-vba.html)

[email protected]

Comparing 2 pivot tables data using VBA
 
Hi,

I have a summary data and detail data which I uses 2 pivot tables to
summarize the data in the same format like below

<Page field = Value1

Account Dept Ccy Amount
A1 D1 USD 1000
D3 CHF 2000
D4 SGD 3000
A2 D4 USD 4000
A3 D1 USD 5000

As the amount may differ when summarized using the format abovev, I
would like to loop through from one of the pivot table PivotTable1
(source is the summary data) and compare the other pivot table
PivotTable2 (the detail data), using each of the columns combination.

i.e. check amount of A1, D1, USD in PivotTable1 and compare to amount
of A1, D1, USD in PivotTable2

Cheers,
Eric



All times are GMT +1. The time now is 04:34 PM.

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