VBA extract values from pivot table

MissingLink

New Member
Joined
Mar 19, 2018
Messages
1
Hi everyone,

I'm trying to work with a macro for extracting values from a pivot table to another sheet ("Sheet2").
The sheet with pivot table is as followed (blue is Data Source list and red is Pivot Table):
[TABLE="width: 500"]
<tbody>[TR]
[TD]A[/TD]
[TD]B[/TD]
[TD]C[/TD]
[TD]D[/TD]
[TD]E[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Liste des ingrédients[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD]X[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Y[/TD]
[TD][/TD]
[TD]Row Labels[/TD]
[TD]Count of Liste des ingrédients[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Z[/TD]
[TD][/TD]
[TD]X[/TD]
[TD]2[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]X[/TD]
[TD][/TD]
[TD]Y[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]YY[/TD]
[TD][/TD]
[TD]Z[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]etc[/TD]
[TD][/TD]
[TD]etc[/TD]
[TD]1[/TD]
[/TR]
</tbody>[/TABLE]

I would like to extract the data from "Count of Liste des ingrédients" in column A of Sheet2 and the data from "Row Labels" in column B of Sheet2, without the Grand Total and its related value.

Let me know if you are missing some information, I tried to be as precise as possible. :-)
 

Excel Facts

Did you know Excel offers Filter by Selection?
Add the AutoFilter icon to the Quick Access Toolbar. Select a cell containing Apple, click AutoFilter, and you will get all rows with Apple

Forum statistics

Threads
1,223,894
Messages
6,175,252
Members
452,623
Latest member
Techenthusiast

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