SUMIFS with multiple possibilities for one criteria.

EdStockton

New Member
Joined
Aug 6, 2014
Messages
47
Hi All,

I'm wanting to use the sumifs function with one of the criteria having more than one possible correct matches.

I know the normal SUMIFS function would work as follows yielding a total from cells G10 through G100 based on whether a common row in the range contained in columns A, B, and C the requisite criteria specified in cells A5, B5, or C5.

=SUMIFS(G10:G100,A10:A100,A5,B10:B100,B5,C10:C100,C5)

How I would like to modify this is to allow the criteria for Column C to be one of several possibilities. For example, instead of restricting the criteria in Column C to the contents of Cell C5, I would like to have the option of having the contents of Column C be equal to the contents of either cell C3, C4, C5, or C6.

I'm sure there is a way to do that, I just don't know how.

Thank you, Ed
 

Excel Facts

When did Power Query debut in Excel?
Although it was an add-in in Excel 2010 & Excel 2013, Power Query became a part of Excel in 2016, in Data, Get & Transform Data.
Try

=SUMPRODUCT(SUMIFS(G10:G100,A10:A100,A5,B10:B100,B5,C10:C100,C3:C6))

M.
 
Upvote 0
Marcelo Branco,

Thank you for your quick and accurate response. You made that seem so simple.

Thanks, EdStockton
 
Upvote 0

Forum statistics

Threads
1,223,911
Messages
6,175,331
Members
452,636
Latest member
laura12345

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