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]
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]