How can i make sumifs and countifs count mutiple criteria?

tonywatsonhelp

Well-known Member
Joined
Feb 24, 2014
Messages
3,194
Office Version
  1. 365
  2. 2019
  3. 2016
Platform
  1. Windows
Hi Everyone,

I use sumifs and countifs a lot, one of the things i'd like to do is include a sumifs and a countifs that includes mutiple critieria, let me explain

So Column J is a persons name
and Column F is the areas he works in.

So If i want to see how James has done in Essex I would put
=Sumifs(B:B,J:J,"James",F:F,"Essex")

But how can i do this for both Essex and Sussex (for example)

please help if you can
Thanks
Tony
 

Excel Facts

Best way to learn Power Query?
Read M is for (Data) Monkey book by Ken Puls and Miguel Escobar. It is the complete guide to Power Query.
How about
Excel Formula:
=sumproduct(Sumifs(B:B,J:J,"James",F:F,{"Essex","Sussex"})
 
Upvote 0
Thanks Fluff,
just one problem totally my fault I assumed i could just change this but "Essex" and "Sussex" need to be cell references so i can change them so its actually A1 and C1
i tried
=sumproduct(Sumifs(B:B,J:J,"James",F:F,{A1,C1}) but it doesn't work, have i missed something?
sorry i should have said this before just assumed it would work the same?

Thanks

Tony
 
Upvote 0
You would be better of putting the the values in contiguous cells, otherwise you might get incorrect results. Are you happy to do that?
 
Upvote 0
Maybe...

=SUMPRODUCT(SUMIFS(B:B,J:J,"James",F:F,CHOOSE({1,2},A1,C1)))

M.
 
Upvote 0
In that case how about
Excel Formula:
=sumproduct(Sumifs(B:B,J:J,"James",F:F,A1:A2)
although it would be better to limit the ranges, rather than using whole columns.
 
Upvote 0
Solution
Glad we could help & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,214,827
Messages
6,121,823
Members
449,049
Latest member
cybersurfer5000

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