SUMIFS with multiple possibilities for 2 criterias

drom

Well-known Member
Joined
Mar 20, 2005
Messages
543
Office Version
  1. 2021
  2. 2019
  3. 2016
  4. 2013
  5. 2011
  6. 2010
  7. 2007
SUMIFS with multiple possibilities for one criteria, can be solved using:

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

According to:
https://www.mrexcel.com/board/index.php?threads/821600/

But If I need to apply SUMIFS with multiple possibilities for 2 criterias
=SUMPRODUCT(SUMIFS(G10:G100,A10:A100,A5,B10:B100,z5:z9,C10:C100,C3:C6))

Is not working in my Book
What am I missing
 

Excel Facts

Why does 9 mean SUM in SUBTOTAL?
It is because Sum is the 9th alphabetically in Average, Count, CountA, Max, Min, Product, StDev.S, StDev.P, Sum, VAR.S, VAR.P.
Try like this. Two is your limit though.

=SUM(SUMIFS(G10:G100,A10:A100,A5,B10:B100,Z5:Z9,C10:C100,TRANSPOSE(C3:C6)))

Enter CTRL-SHIFT-ENTER.
 
Upvote 0
Try to enter either z5:z9 or C3:C6 horizontally. Let's C3:C6 map onto C3:E3. Then we can have:

=SUMPRODUCT(SUMIFS(G10:G100,A10:A100,A5,B10:B100,z5:z9,C10:C100,C3:E3))

Otherwise, try:

=SUMPRODUCT(G10:G100,--(A10:A100=A5),--ISNUMBER(MATCH(B10:B100,Z5:Z9,0)),--ISNUMBER(MATCH(C10:C100,C3:C6,0)))
 
Last edited:
Upvote 0

Forum statistics

Threads
1,223,911
Messages
6,175,337
Members
452,637
Latest member
Ezio2866

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