sum product or sum if

GeneJoseph

Board Regular
Joined
Feb 23, 2015
Messages
51
A B C D E
1 $100 Yes Matt 5/10/18
2 $200 1/10/18 Jim 5/10/18


Sum A, IF
B = Yes
C= is blank
If B is "yes" and C is blank/ empty, then
D= Matt
E= Month, May (Month=5)

In this instance, the answer would be $100 since A = $100, B= Yes, C is blank, D is Matt and E occurred in May

I think this would be a SUMPRODUCT but looking for solutions
 

Excel Facts

Links? Where??
If Excel says you have links but you can't find them, go to Formulas, Name Manager. Look for old links to dead workbooks & delete.
Hi,

Yes, Sumproduct would work.

Substitute "Matt" in the formula to a Cell Reference if you want the formula to be flexible for different names:


Book1
ABCDEFG
1Result
2$100YesMatt5/10/2018100
3$2001/10/2018Jim5/10/2018
Sheet52
Cell Formulas
RangeFormula
G2=SUMPRODUCT((B2:B3="Yes")*(C2:C3="")*(D2:D3="Matt")*(MONTH(E2:E3)=5)*A2:A3)
 
Upvote 0
Hi,

Yes, Sumproduct would work.

Substitute "Matt" in the formula to a Cell Reference if you want the formula to be flexible for different names:

ABCDEFG
Result
YesMatt
Jim

<colgroup><col><col><col><col><col><col><col><col></colgroup><thead>
</thead><tbody>
[TD="align: center"]1[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]

[TD="align: center"]2[/TD]
[TD="align: right"]$100 [/TD]

[TD="align: right"][/TD]

[TD="align: right"]5/10/2018[/TD]
[TD="align: right"][/TD]
[TD="align: right"]100[/TD]

[TD="align: center"]3[/TD]
[TD="align: right"]$200 [/TD]
[TD="align: right"][/TD]
[TD="align: right"]1/10/2018[/TD]

[TD="align: right"]5/10/2018[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]

</tbody>
Sheet52

[TABLE="width: 85%"]
<tbody>[TR]
[TD]Worksheet Formulas[TABLE="width: 100%"]
<thead>[TR="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=DAE7F5]#DAE7F5[/URL] "]
[TH="width: 10"]Cell[/TH]
[TH="align: left"]Formula[/TH]
[/TR]
</thead><tbody>[TR]
[TH="width: 10, bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=DAE7F5]#DAE7F5[/URL] "]G2[/TH]
[TD="align: left"]=SUMPRODUCT((B2:B3="Yes")*(C2:C3="")*(D2:D3="Matt")*(MONTH(E2:E3)=5)*A2:A3)[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
</tbody>[/TABLE]
thank you- I will give it a shot!
 
Upvote 0

Forum statistics

Threads
1,223,903
Messages
6,175,287
Members
452,631
Latest member
a_potato

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