Hello everyone,
I am having an issue using the SUMPRODUCT function in the attached scenario (Cell F2) to SUM a set of numbers in range (D5:D32) based off a date range criteria. The criteria range dates are in cells A5:A32, and the conditions are referencing two dates (A2 & B2).
I've tried the formula =SUMPRODUCT((D5:D32)*(A5:A32>=A2)*(A5:A32<=B2)) however I am getting the #VALUE! error, and I'm not sure why. I've used the SUMPRODUCT function successfully as a SUMIFS function in previous scenarios, however I can't make it seem to work on this one.
I am already using the SUMPRODUCT function successfully in cell G2 to get the count based off the necessary conditions; but I need the sum to calculate an average.
Any help guys on whay I am doing wrong? Or what I should do to get the sum of D5:D32 based off the dates in A5:A32 using the 2 dates in A2 & B2 as criteria?
Workbook attached.
I appreciate it
Bookmarks