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

What did Pito Salas invent?
Pito Salas, working for Lotus, popularized what would become to be pivot tables. It was released as Lotus Improv in 1989.
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
1Result
2$100 YesMatt5/10/2018100
3$200 1/10/2018Jim5/10/2018

<colgroup><col><col><col><col><col><col><col><col></colgroup><thead>
</thead><tbody>
</tbody>
Sheet52

Worksheet Formulas
CellFormula
G2=SUMPRODUCT((B2:B3="Yes")*(C2:C3="")*(D2:D3="Matt")*(MONTH(E2:E3)=5)*A2:A3)

<thead>
</thead><tbody>
</tbody>

<tbody>
</tbody>
thank you- I will give it a shot!
 
Upvote 0

Forum statistics

Threads
1,214,901
Messages
6,122,157
Members
449,068
Latest member
shiz11713

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