I want to sum all values for each Product and its variations YTD
TestLine2.xlsx$B$8 is cell where user puts the current month m/d/yyyy
Q1:AB1 standard first of month data 1/1/2021, 2/1/2021 etc
Currently Act list Products and sometimes there variation, but are counted in summary
Currently Bud does not have variations, but may in the future
sumproduct solution works for Act tab which has either 1 or 2 rows that are summed up in Summary tab. Same logic for Bud tab produces 0 for all lookups
Bud tab has no variation rows and therefore less rows, but may change in the future
Row 2 Product A is not budgeted and is blank, but summary does not change if I change this row to numeric 1s
=SUMPRODUCT(Act!$E$1:$AB$23,(LEFT(Act!$D$1:$D$23,LEN($D17))=$D17)*(Act!$E$1:$AB$1<=$B$8)*(Act!$E$1:$AB$1>=DATE(YEAR($B$8),1,1))) = 57,781
=SUMPRODUCT(Bud!$E$1:$AB$17,(LEFT(Bud!$D$1:$D$17,LEN($D17))=$D17)*(Bud!$E$1:$AB$1<=$B$8)*(Bud!$E$1:$AB$1>=DATE(YEAR($B$8),1,1))) = 0
Instead of 52,117
One cure is to convert row 1 on Bud to dates formatted the way you want. The other is to change the SUMPRODUCT formula. What's your preference?