VBA loop Pivot tables calculate and store value

lowej

New Member
Joined
Jun 30, 2018
Messages
8
Hello,

I am new with VBA and i would like the following. There a 2 pivot tables each on different sheets(Sheet 2 is the database).
In Sheet 1 loop through the pivot table Column 1 and find a match in the database Column 1. When there is a match select the value of the same row only Column 5 in the database.
Now here is the tricky part when the value is selected do a calculation, lets say divide by 100 and multiple with the number in Sheet 1 Column 5 and store the value in the loop and summarize it to cell F26. Can anyone please help me.


I added a file as a example http://www.mediafire.com/file/ceg2ymj0b6tfsx6/test.xlsx/file
 

Excel Facts

Best way to learn Power Query?
Read M is for (Data) Monkey book by Ken Puls and Miguel Escobar. It is the complete guide to Power Query.

Forum statistics

Threads
1,223,911
Messages
6,175,326
Members
452,635
Latest member
laura12345

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