blossomthe2nd
Active Member
- Joined
- Oct 11, 2010
- Messages
- 450
Hi Guys
Im puling data from another spreadsheet that have the below columns
Date Area Type Product
I have a sumproduct that basically counts when the month of the date is equal to "Jan" and Area is equal to "Clothing" and Type is equal to "Summer" it looks a bit like the following
It works fine
But now I have to count when area is equal to either "Clothing" or "Groceries" or "Hardware"
I have amended formula to
And although this works fine I anticipate my Boss adding more and more criteria and eventually I will get the "Formula too long error" -
Is it possible to have an OR Criteria as part of the sumproduct ??
Any suggestions greatly appreciated
Thanks
A
Im puling data from another spreadsheet that have the below columns
Date Area Type Product
I have a sumproduct that basically counts when the month of the date is equal to "Jan" and Area is equal to "Clothing" and Type is equal to "Summer" it looks a bit like the following
HTML:
=SUMPRODUCT(--(MONTH('[Customer 2012.xls]Customer'!$A$7:$A$31)=1),--('[Customer 2012.xls]Customer'!$B$7:$B$31="Clothing"),--('[Customer 2012.xls]Customer'!$C$7:$C$31="Summer"))
It works fine
But now I have to count when area is equal to either "Clothing" or "Groceries" or "Hardware"
I have amended formula to
HTML:
=sum((SUMPRODUCT(--(MONTH('[Customer 2012.xls]Customer'!$A$7:$A$31)=1),--('[Customer 2012.xls]Customer'!$B$7:$B$31="Clothing"),--('[Customer 2012.xls]Customer'!$C$7:$C$31="Summer"))),(SUMPRODUCT(--(MONTH('[Customer 2012.xls]Customer'!$A$7:$A$31)=1),--('[Customer 2012.xls]Customer'!$B$7:$B$31="Groceries"),--('[Customer 2012.xls]Customer'!$C$7:$C$31="Summer"))),(SUMPRODUCT(--(MONTH('[Customer 2012.xls]Customer'!$A$7:$A$31)=1),--('[Customer 2012.xls]Customer'!$B$7:$B$31="Hardware"),--('[Customer 2012.xls]Customer'!$C$7:$C$31="Summer")))
And although this works fine I anticipate my Boss adding more and more criteria and eventually I will get the "Formula too long error" -
Is it possible to have an OR Criteria as part of the sumproduct ??
Any suggestions greatly appreciated
Thanks
A
Last edited: