Link to home
Start Free TrialLog in
Avatar of Michael Paxton
Michael PaxtonFlag for United States of America

asked on

Sumproduct for Month range with additional criteria problem

I am using the following formula to sum the data by month and where fund type equals "Unrestricted"  I am getting 0 as a value.  Any suggestions?

=SUMPRODUCT(--(MONTH(!$A$2:$A$20)=MONTH(ReportStartDate)),--(YEAR($A$2:$A$20)=YEAR(ReportStartDate)),--$E$2:$E$20,D2:$D$20="Unrestricted")

The formula works until I add in the "Unrestricted" contraint.
Sumproduct-sheet.xlsx
Avatar of nutsch
nutsch
Flag of United States of America image

Try * instead

=SUMPRODUCT((MONTH($A$2:$A$20)=MONTH(ReportStartDate))*(YEAR($A$2:$A$20)=YEAR(ReportStartDate))*(D2:$D$20="Unrestricted"),$E$2:$E$20)

Thomas
Avatar of Michael Paxton

ASKER

Thomas,

This still returns 0 as a solution.

Michael
Avatar of Kevin Cross
Hi.

I think you want SUMIFS().

Kevin
ASKER CERTIFIED SOLUTION
Avatar of nutsch
nutsch
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial