Sumif question

bionicle

Board Regular
Joined
Apr 23, 2009
Messages
186
Office Version
  1. 365
Platform
  1. Windows
Hi All,

have a question for you, if I have a list of dates in the format of 05/01/2016 but want to return a sum value against all the dates listed as January how do I do it?
 
=SUMPRODUCT((MONTH(A1:A100)=1)*((Q1:Q100)="WON")*B1:B100)

tried this and all I get is #VALUE! back?
 
Upvote 0

Excel Facts

Format cells as time
Select range and press Ctrl+Shift+2 to format cells as time. (Shift 2 is the @ sign).
worked out what the issue is, I have a few empty cells in my date column and a few question marks etc, the formula works fine when the data is all there..
 
Upvote 0
=SUMPRODUCT((MONTH(A1:A100)=1)*((Q1:Q100)="WON")*B1:B100)

tried this and all I get is #VALUE! back?
Hmmm, this is what I see in my test document (I'm only using 10 rows instead of 100):


Excel 2010
ABCDE
101/01/201610WON=SUMPRODUCT((MONTH(A1:A10)=1)*((C1:C10)="WON")*B1:B10) --->40
202/01/201610
303/01/201610
404/01/201510WON
505/01/201610
606/01/201610
707/01/201410WON
808/01/201610
909/01/201610
1010/01/201610WON
Sheet1
 
Upvote 0
worked out what the issue is, I have a few empty cells in my date column and a few question marks etc, the formula works fine when the data is all there..

=SUMPRODUCT(B1:B100,--(TEXT(A1:A100),"mmm")=R1),--(Q1:Q100="WON"))

where R1 = jan.
 
Upvote 0

Forum statistics

Threads
1,213,536
Messages
6,114,207
Members
448,554
Latest member
Gleisner2

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
Back
Top