ForLoop

dennisli

Well-known Member
Joined
Feb 20, 2004
Messages
1,070
Good morning,
I am looking a 100 loop to perform the following calculation:
Formula =SUMPRODUCT(--(Data!A$2:A$5000=A$26),--(Data!C$2:C$5000=A39),Data!D$2:D$5000) which is located in Sheet2!A39:A43.
Next block is from 23 rows down, A62:A66 using the same Sumproduct formula. But the first criteria becomes A$49, 23 rows down from A$26.
There are 100 blocks repeating at 23 rows step.
Any help would be appreciated.
Dennis
 

Excel Facts

Control Word Wrap
Press Alt+Enter to move to a new row in a cell. Lets you control where the words wrap.
Sorry not so clear about the second criteria in the Sumproduct formula:
cell A39 is A39, cell a40 is A40, Cell A41 is A41, Cell A42 is A42, Cell A43 is A43.
 
Upvote 0

Forum statistics

Threads
1,224,594
Messages
6,179,794
Members
452,943
Latest member
Newbie4296

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