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

Which came first: VisiCalc or Lotus 1-2-3?
Dan Bricklin and Bob Frankston debuted VisiCalc in 1979 as a Visible Calculator. Lotus 1-2-3 debuted in the early 1980's, from Mitch Kapor.
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,215,077
Messages
6,122,995
Members
449,094
Latest member
masterms

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