troubleshooting Question

# Excel Sumif #Value May need Sumproduct Part 2

Microsoft OfficeMicrosoft Excel
I want to sum all values for each Product and its variations YTDTestLine2.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
Join the community to see this answer!
###### Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.