Sum IF A= X or Y or Z

stebrownsword

Board Regular
Joined
Apr 16, 2010
Messages
151
hi guys

long time no speak,I would appreciate some help fine tuning this formula.

I would like the formula, SUM the WTE in Column U - if they are Div 1 stated in ColumnAA and if they are FY1, FY2 or FY3 in Column L

the formula below works to sum FY1 in Div 1 but I'm strugging to get the formula to also count if they are FY2 or FY3

=SUMPRODUCT(--(SIP!AA:AA="Div 1"),--(SIP!L:L="FY1"),SIP!U:U)

basically how to i get the formula to (SIP!L:L="FY1" or "FY2" or "FY3)


thanks in advance
 

Excel Facts

Using Function Arguments with nested formulas
If writing INDEX in Func. Arguments, type MATCH(. Use the mouse to click inside MATCH in the formula bar. Dialog switches to MATCH.
can just add them up

=SUMPRODUCT(--(SIP!AA:AA="Div 1"),--(SIP!L:L={"FY1","FY2","FY3"}),SIP!U:U))
 
Last edited:
Upvote 0
can just add them up

=SUMPRODUCT(--(SIP!AA:AA="Div 1"),--(SIP!L:L={"FY1","FY2","FY3"}),SIP!U:U))

may be this

Code:
=SUMPRODUCT(--(SIP!AA:AA="Div 1"),--((SIP!L:L="FY1")+(SIP!L:L="FY2")+(SIP!L:L="FY3")),SIP!U:U)
 
Upvote 0
This should be more efficient with whole-column references:

=SUM(SUMIFS(SIP!U:U,SIP!AA:AA,"Div 1",SIP!L:L,{"FY1","FY2","FY3"}))
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,181
Members
453,022
Latest member
Mohamed Magdi Tawfiq Emam

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