COUNTIFS with Multiple Fields

Excel09876

New Member
Joined
Oct 27, 2021
Messages
8
Office Version
  1. 365
Platform
  1. Windows
I am currently writing up a spreadsheet for my football team to count each players games played, goals, assists, clean sheets and MOTM. I am doing this for each game and have a separate columns for each games goals, etc, as you can see in the screenshot. I am trying to do a countifs formula on another tab to count each of these individual stats for each player. Please can you give me any feedback on the easiest way to do this as I seem to have gone blank.

1635345380731.png

1635345398245.png
 

Excel Facts

Add Bullets to Range
Select range. Press Ctrl+1. On Number tab, choose Custom. Type Alt+7 then space then @ sign (using 7 on numeric keypad)
Hi & welcome to MrExcel.
Maybe like
Excel Formula:
=SUMPRODUCT((Sheet1!$A$6:$A$100=A2)*(Sheet1!$B$5:$P$5="Selection")*(Sheet1!$B$6:$P$100="Yes"))
and
Excel Formula:
=SUMPRODUCT((Sheet1!$A$6:$A$100=A2)*(Sheet1!$B$5:$P$5="Goals")*(Sheet1!$B$6:$P$100))
 
Upvote 0
Hi, Thank you for the feedback. I used the following formulas and got an output of #VALUE! so looks like there is something I am missing. Any other formula tips on this?

=SUMPRODUCT((Availability!Availability!$A$6:$A$24='Squad List'!A2)*(Availability!$B$5:$EA$5="Selection")*(Availability!$B$6:$EA$6))

=SUMPRODUCT((Availability!A6:A24='Squad List'!A2)*(Availability!B5:EA5="Goals")*(Availability!B6:EA6))
 
Upvote 0
Try
Excel Formula:
=SUMPRODUCT((Availability!$A$6:$A$24=A2)*(Availability!$B$5:$EA$5="Selection")*(Availability!$B$6:$EA$24))
and
Excel Formula:
=SUMPRODUCT((Availability!A6:A24=A2)*(Availability!B5:EA5="Goals")*(Availability!B6:EA24))
 
Upvote 0
In that case can you post some sample data from both sheets, that shows the problem.

MrExcel has a tool called “XL2BB” that lets you post samples of your data that will allow us to copy/paste it to our Excel spreadsheets, so we can work with the same copy of data that you are. Instructions on using this tool can be found here: XL2BB Add-in

Note that there is also a "Test Here” forum on this board. This is a place where you can test using this tool (or any other posting techniques that you want to test) before trying to use those tools in your actual posts.
 
Upvote 0
Sorry to be a pain but everytime I try to run the mini sheet add in my Excel crashes. Is there anywhere to upload the actual test file as an attachment?
 
Upvote 0
You can upload to a share site, such as OneDrive, Google Drive, Dropbox. Then mark for sharing & post the share link to the thread.
 
Upvote 0
Thanks for that. For C2 use
Excel Formula:
=SUMPRODUCT((Availability!$A$6:$A$9=A2)*(Availability!$B$5:$EA$5="Selection")*(Availability!$B$6:$EA$9="Yes"))
and for D2
Excel Formula:
=SUMPRODUCT((Availability!A6:A9=A2)*(Availability!B5:EA5="Goals"),Availability!B6:EA9)
 
Upvote 0

Forum statistics

Threads
1,215,523
Messages
6,125,318
Members
449,218
Latest member
Excel Master

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