SUMIFS with "OR" Condition

hahdawg

Board Regular
Joined
Sep 1, 2011
Messages
51
Hi

I understand that if I want to do sumifs with an "or" condition, I do something like

=SUM(SUMIFS(A:A,B:B, {"Condition1", Condition2"}))

I have a lot of conditions, so I'm wondering whether there's any way I can read the the conditions from cells on a worksheet, so I don't have to type them in manually. In other words, I'd like to have the things inside the "{ }" be cell refrences.
 

Excel Facts

Excel Joke
Why can't spreadsheets drive cars? They crash too often!
Try something like:

=SUMPRODUCT(SUMIFS(A:A,B:B,$K$2:$K$9))

where K2:K9 contains the list of conditions.
 
Upvote 0
If they're all mutually exlcusive 'or' conditions in the same column then I think you can do it with SUMIF.

=SUMPRODUCT(SUMIF(B:B,$K$2:$K$9,A:A))
 
Upvote 0

Forum statistics

Threads
1,215,388
Messages
6,124,652
Members
449,177
Latest member
Sousanna Aristiadou

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