SUMIFS Statement with multiple OR functions

DanielPratt

New Member
Joined
Aug 20, 2017
Messages
1
Hey all,

First time poster and hoping to get a bit of help. I've got a set of data that I need to sum up with 2 conditions however one of the conditions has got multiple (roughly 70) or statements.

I can get this working with the below function:

=SUM(SUMIFS('QLD Data'!H:H,'QLD Data'!B:B,Summary!A3,'QLD Data'!D:D,{9010101,9010102}))

However this is only using 2 of the 70 conditions in the OR statement. If I've got a list of the conditions in another column can i use this data rather than rewriting all 70 conditions in the formula? These conditions will be changing, hence why they are listed in another section of the spreadsheet so they can be easy removed and added.

I've tried the below formula however have had no luck getting this to work... (this returned 0)

=SUM(SUMIFS('QLD Data'!H:H,'QLD Data'!B:B,Summary!A3,'QLD Data'!D:D,'Condition List'!B:B))

If I change the above formula to just select a specific condition this also works however I don't want to be repeating the below 70 times to get the total:

=SUMIFS('QLD Data'!H:H,'QLD Data'!B:B,Summary!A3,'QLD Data'!D:D,'Condition List'!B3)

Any help is muchly appreciated!
 

Excel Facts

What is the shortcut key for Format Selection?
Ctrl+1 (the number one) will open the Format dialog for whatever is selected.
Have you considered using a helper column to ID the cells to include? It should be much simpler to use something like MATCH to text the codes against a list, and then, in the SUMIFS(), include only those rows/cells that return TRUE?
 
Upvote 0
Welcome to the MrExcel board!

I would try to avoid whole column references.
Try changing to SUMPRODUCT and see if this works for you. Just make sure the ranges are larger than you are ever likely to need.
I've guessed 1000 rows on 'QLD Data' and 200 rows on 'Condition List'

=SUMPRODUCT(--('QLD Data'!B1:B1000=Summary!A3),--ISNUMBER(MATCH('QLD Data'!D1:D1000,'Condition List'!B1:B200,0)),'QLD Data'!H1:H1000)
 
Last edited:
Upvote 0

Forum statistics

Threads
1,223,911
Messages
6,175,325
Members
452,635
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