Equation to compare two pivot tables to find correct one and read data

aldea187

New Member
Joined
Apr 4, 2014
Messages
42
Hello Everyone,

Been banging my head on my desk trying to read a pivot table in one workbook and pull out data depending on a few things.

I need to get the total number by Div then the country and display in the comparison table. These are coming from separate pivot tables and data sources.

Thanks,

Pivot 1
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]Div[/TD]
[TD]A[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Country[/TD]
[TD]Complete[/TD]
[TD]Replace[/TD]
[TD]Upgrade[/TD]
[TD]Total[/TD]
[/TR]
[TR]
[TD]Mexico[/TD]
[TD]5[/TD]
[TD]2[/TD]
[TD]1[/TD]
[TD]8[/TD]
[/TR]
[TR]
[TD]US[/TD]
[TD]6[/TD]
[TD]2[/TD]
[TD]4[/TD]
[TD]12[/TD]
[/TR]
[TR]
[TD]Canada[/TD]
[TD]8[/TD]
[TD]9[/TD]
[TD]2[/TD]
[TD]19[/TD]
[/TR]
</tbody>[/TABLE]


Pivot 2[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]Div[/TD]
[TD]B[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Country[/TD]
[TD]Complete[/TD]
[TD]Replace[/TD]
[TD]Upgrade[/TD]
[TD]Total[/TD]
[/TR]
[TR]
[TD]Mexico[/TD]
[TD]3[/TD]
[TD]5[/TD]
[TD]4[/TD]
[TD]12[/TD]
[/TR]
[TR]
[TD]US[/TD]
[TD]5[/TD]
[TD]1[/TD]
[TD]2[/TD]
[TD]8[/TD]
[/TR]
[TR]
[TD]Canada[/TD]
[TD]7[/TD]
[TD]3[/TD]
[TD]2[/TD]
[TD]12[/TD]
[/TR]
</tbody>[/TABLE]

Comparison
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]Div[/TD]
[TD]Country[/TD]
[TD]Total Devices[/TD]
[/TR]
[TR]
[TD]A[/TD]
[TD]US[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]B[/TD]
[TD]US[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]B[/TD]
[TD]Mexico[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
 

Excel Facts

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.

Forum statistics

Threads
1,223,164
Messages
6,170,444
Members
452,326
Latest member
johnshaji

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