Excel: Sumifs - Multiple Criteria


I have the attached spreadsheet with a Sumifs formula:


I would like the formula to work for the multiple criteria portion 'B5:B9'. Is this possible?


Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Wayne Taylor (webtubbs)Commented:
The criteria expects a single value. Try this formula in cell C5...


If you want a total for all purple cells, use a simple SUM below the individual sums.


you can put in cell: C4


Open in new window

Saqib Husain, SyedEngineerCommented:

Introduction to R

R is considered the predominant language for data scientist and statisticians. Learn how to use R for your own data science projects.

here is a sample with the formula, if this is what you are looking for.
dabug80Author Commented:

Unfortunately none of these solutions work (Jean, note my original date range - you have changed this to a daily range).

I need to tally results for all the purple code variations.
Wayne Taylor (webtubbs)Commented:
Mine would work, but none of the dates in column F are within the range specified in cells C4:D4, so it will return 0.
dabug80Author Commented:
Sorry - I should clarify that I wish for all the purple cells to be tallied in each formula - not just the purple cells in the respective rows.

Doing some further Google searches I came across this formula syntax that may work:

E.g from: Stackoverflow

Re-purposing the above formula, I get:


But I can't enter this. Any ideas?
dabug80Author Commented:
Ok. I have figured out the answer. It's:


Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
dabug80Author Commented:
I've requested that this question be closed as follows:

Accepted answer: 0 points for dabug80's comment #a40674927

for the following reason:

This works
Rory ArchibaldCommented:
(not for points)

Doesn't need to be quite that messy:

array entered. ;)
Rob HensonFinance AnalystCommented:

In column I, enter formula:

Result will be 0 or a number between 1 & 5, depending on position of H value with B5:B9 range.

Then SUMIFS amend to:

Rob H
dabug80Author Commented:
Thanks for the alternatives
Hakan YılmazProject EngineerCommented:
Sum(Sumifs()) is not an array formula normally. Please see attachment.
Rory ArchibaldCommented:
It is if you use a range as criteria, as in this case, rather than an array constant, as in your example.
dabug80Author Commented:
OK. I'm quite grey on the concepts here. All I know is that my solution worked, so I was happy to use it. But I accept that it may not adhere to standards.
Martin LissOlder than dirtCommented:
This question has been classified as abandoned and is closed as part of the Cleanup Program. See the recommendation for more details.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Excel

From novice to tech pro — start learning today.