help with sumproductd & date conditions

rmtaylor

Board Regular
Joined
Feb 17, 2002
Messages
155
Can anyone tell why this formula does not work
I am attempting to have a sumproducts formula count a sheet with 4 conditions ( that part is working fine) In addition I would very much like it to count when the four conditions are matched plus 3 month date conditions to be matched say April May & June (allowing me to get results over 4 quarters when it is fully operational

=SUMPRODUCT((((((SHEET1!$A$2:$A$2000="SOUTH")*(SHEET1!$J$2:$J$2000=1)*(SHEET1!$K$2:$K$2000="AVAILABLE")*(SHEET1!$I$2:$I$2000="PAID")*(MONTH(SHEET1!$H$2:$H$2000)=4)+(MONTH(SHEET1!$H$2:$H$2000)=5)+(MONTH(SHEET1!$H$2:$H$2000)=6))))))

Thanks for any replies
Robert
 

Excel Facts

Format cells as time
Select range and press Ctrl+Shift+2 to format cells as time. (Shift 2 is the @ sign).

Ian Mac

MrExcel MVP
Joined
Feb 20, 2002
Messages
1,174
On 2002-10-29 02:24, rmtaylor wrote:
Can anyone tell why this formula does not work
I am attempting to have a sumproducts formula count a sheet with 4 conditions ( that part is working fine) In addition I would very much like it to count when the four conditions are matched plus 3 month date conditions to be matched say April May & June (allowing me to get results over 4 quarters when it is fully operational

=SUMPRODUCT((((((SHEET1!$A$2:$A$2000="SOUTH")*(SHEET1!$J$2:$J$2000=1)*(SHEET1!$K$2:$K$2000="AVAILABLE")*(SHEET1!$I$2:$I$2000="PAID")*(MONTH(SHEET1!$H$2:$H$2000)=4)+(MONTH(SHEET1!$H$2:$H$2000)=5)+(MONTH(SHEET1!$H$2:$H$2000)=6))))))

Thanks for any replies
Robert

Your formula work fine for me, although can be shortened to:

=SUMPRODUCT((((((Sheet1!$A$2:$A$2000="SOUTH")*(Sheet1!$J$2:$J$2000=1)*(Sheet1!$K$2:$K$2000="AVAILABLE")*(Sheet1!$I$2:$I$2000="PAID")*(MONTH(Sheet1!$H$2:$H$2000)={4,5,6}))))))

could you tell us what errors you are getting.

here's what I set up from your eg:
Book1
ABCDEFG
2south04/05/2002paid1available14
3south05/05/2002paid1available
4south06/05/2002paid1available
5south07/05/2002paid1available
6south08/06/2002paid1available
7south09/06/2002paid1available
8south10/06/2002paid1available
9south11/06/2002paid1available
10south12/06/2002paid1available
11south13/05/2002paid1available
12south14/05/2002paid1available
13south15/05/2002paid1available
14south16/05/2002paid1available
15south17/05/2002paid1available
Sheet1
 

Forum statistics

Threads
1,143,640
Messages
5,719,985
Members
422,256
Latest member
downeybm

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Top