Loop through Pivot table to copy cell values to another sheet

Ganeshan

New Member
Joined
Dec 15, 2021
Messages
6
Office Version
  1. 365
Platform
  1. Windows
  2. MacOS
I am trying to loop through my pivot table to copy the sum values to another sheet. The issue I am facing is, the row variables are dynamic and change when there is a data change, so when there is no variable D or S my loop does not run.
Can anyone help me with how to make this work? The attachment shows what I am trying to implement.
 

Attachments

  • Screen Shot 2021-12-28 at 3.42.28 PM.png
    Screen Shot 2021-12-28 at 3.42.28 PM.png
    132.8 KB · Views: 11
  • Screen Shot 2021-12-28 at 3.43.48 PM.png
    Screen Shot 2021-12-28 at 3.43.48 PM.png
    160.5 KB · Views: 11

Excel Facts

Excel Joke
Why can't spreadsheets drive cars? They crash too often!

Forum statistics

Threads
1,214,581
Messages
6,120,372
Members
448,957
Latest member
BatCoder

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