compare counts from two pivot tables

jwoodsford

New Member
Joined
May 30, 2012
Messages
4
I have two pivot tables with the same headers. The data is a count by site, by month.
I have to compare the two tables and show the differences between the counts, either + or -, in another area in the spreadsheet.
Problem is that table one has a column of sites from 100-206. The second table only show sites that have data in the row so there might be 100-107, 109, 122, etc.
How do i complare the data(counts) from ONLY the sites where the data matches and show the data from table 1 where there is no site in table 2?

ex.table one
site count
101 300
102 200
103 100
104 50
107 450
121 550
155 650
ex. table two
site count
101 250
107 500
121 600
155 700

output from comparison ex.
site count
101 50
102 200
103 100
104 50
107 50
121 50
155 50
 

Excel Facts

Format cells as date
Select range and press Ctrl+Shift+3 to format cells as date. (Shift 3 is the # sign which sort of looks like a small calendar).
Create a single-column table that has all of the sites.
The create relationships from that column to each of the Site columns in the other tables. Then create measures for the counts in each table. Then create a measure that subtracts one from the other. Put the new all-encompassing Site column into the pivot table along with the other measures and you should be good to go.
 
Upvote 0
thanks for the post ruve1k but I will need some elaboration on what you are saying. I understand relationships but do not know how to create relationships between both the tables. You also state "create measures ...." What measures are you talking about.
Can you give examples.

thanks
 
Upvote 0

Forum statistics

Threads
1,223,275
Messages
6,171,123
Members
452,381
Latest member
Nova88

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