Do I use SUM IFS or SUMPRODUCT?

TxMimi

New Member
Joined
Jul 24, 2014
Messages
7
column AN is the total$$$ amount
Column S is the complexity - I want to total $$ if complexity is M and S

with the following other conditions
Column G is status - Approved
Column AF - Date Range

This works if I only have one condition
=SUMIFS(RFSLog!$AN$3:$AN$1004, RFSLog!$S$3:$S$1004, "m", RFSLog!$G$3:$G$1004, "Approved", RFSLog!$AF$3:$AF$1004, ">=01/01/2014", RFSLog!$AF$3:$AF$1004, "<=01/31/2014" )

But how do I adjust
RFSLog!$S$3:$S$1004, "m",

if I want a M and S?

Thanks
 

Excel Facts

Did you know Excel offers Filter by Selection?
Add the AutoFilter icon to the Quick Access Toolbar. Select a cell containing Apple, click AutoFilter, and you will get all rows with Apple
Code:
[COLOR=#333333]=SUMIFS(RFSLog!$AN$3:$AN$1004, RFSLog!$S$3:$S$1004, "m", RFSLog!$G$3:$G$1004, "Approved", RFSLog!$AF$3:$AF$1004, ">=01/01/2014", RFSLog!$AF$3:$AF$1004, "<=01/31/2014" ) + [/COLOR][COLOR=#333333]SUMIFS(RFSLog!$AN$3:$AN$1004, RFSLog!$S$3:$S$1004, "s", RFSLog!$G$3:$G$1004, "Approved", RFSLog!$AF$3:$AF$1004, ">=01/01/2014", RFSLog!$AF$3:$AF$1004, "<=01/31/2014" )[/COLOR]
 
Upvote 0
Do you man M OR S ?
No single cell can be Both M AND S, it can only be one or the other..

Try
Code:
=SUM(SUMIFS(RFSLog!$AN$3:$AN$1004, RFSLog!$S$3:$S$1004, {"m","s"}, RFSLog!$G$3:$G$1004, "Approved", RFSLog!$AF$3:$AF$1004, ">=01/01/2014", RFSLog!$AF$3:$AF$1004, "<=01/31/2014" ))
 
Upvote 0
@Jonmo1 I should have mentioned that I have a defined list for that column we would either select S,M, or C - technically you are correct I wouldn't be able to choose 2 answers in one cell :)

BTW, both suggestions yielded the exact same answer. Thank you for your quick responses.
 
Upvote 0
@Jonmo1 - yes both example formulas resolved my question.

When I said I had a defined list - I meant that I have a defined name range for a list in data validation
 
Upvote 0

Forum statistics

Threads
1,223,246
Messages
6,170,988
Members
452,373
Latest member
TimReeks

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