Sumproduct?

bdbilotta

New Member
Joined
Jun 20, 2017
Messages
4
I am trying to dynamically fill in C3:J3 on the first sheet by referencing the sum of AD21:AL5000 where each column on the second sheet (SG01_024080140324) corresponds to the headers in row 2 of the first sheet (4ContTtls), and where the date show column AB of the second sheet is less than or equal to the date shown in B3 of the first sheet..

There will be many sheets added and taken away from this project. I will be using INDIRECT to dynamically point to additional sheets once I figure out (or you all figure out :) ) how fill this in. I am assuming it is SUMPRODUCT, but I can't seem to get there. I keep getting #NA, or #VALUE.
Im posting a mini sheet of Sheet 1, and an image of sheet 2.
Any help would be welcome.
Thank you,
BB
RangeSystem.xlsx
ABCDEFGHIJ
2SG01_04,20,10,-3Date75100125150175200300400
3SG01_0240801403249/8/2023#N/A
4ContTtls
Cell Formulas
RangeFormula
C3C3=SUMPRODUCT((SG01_024080140324!AB21:SG01_024080140324!AB23<='4ContTtls'!B3)*(SG01_024080140324!AD21:SG01_024080140324!AL20='4ContTtls'!C2)*SG01_024080140324!AD21:SG01_024080140324!AL23)
 

Attachments

  • Sheet 2.png
    Sheet 2.png
    66.1 KB · Views: 5

Excel Facts

Links? Where??
If Excel says you have links but you can't find them, go to Formulas, Name Manager. Look for old links to dead workbooks & delete.
I am trying to dynamically fill in C3:J3 on the first sheet by referencing the sum of AD21:AL5000 where each column on the second sheet (SG01_024080140324) corresponds to the headers in row 2 of the first sheet (4ContTtls), and where the date show column AB of the second sheet is less than or equal to the date shown in B3 of the first sheet..

There will be many sheets added and taken away from this project. I will be using INDIRECT to dynamically point to additional sheets once I figure out (or you all figure out :) ) how fill this in. I am assuming it is SUMPRODUCT, but I can't seem to get there. I keep getting #NA, or #VALUE.
Im posting a mini sheet of Sheet 1, and an image of sheet 2.
Any help would be welcome.
Thank you,
BB
RangeSystem.xlsx
ABCDEFGHIJ
2SG01_04,20,10,-3Date75100125150175200300400
3SG01_0240801403249/8/2023#N/A
4ContTtls
Cell Formulas
RangeFormula
C3C3=SUMPRODUCT((SG01_024080140324!AB21:SG01_024080140324!AB23<='4ContTtls'!B3)*(SG01_024080140324!AD21:SG01_024080140324!AL20='4ContTtls'!C2)*SG01_024080140324!AD21:SG01_024080140324!AL23)
After posting I discovered one of my problems that does not appear in the image of Sheet 2 I posted and that is that in some cells I'm using "" to achieve blanks. This was done to get correct counts later, which can be done by filtering out the 0.00 results in those cells.
 
Upvote 0

Forum statistics

Threads
1,215,069
Messages
6,122,951
Members
449,095
Latest member
nmaske

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