Formulae for summing specific cells

Zongear

New Member
Joined
Mar 24, 2024
Messages
1
Office Version
  1. 2016
Platform
  1. Windows
I have a sheet for recording football data each week - every player's team colour, goals and assists are recorded.

On separate sheets, I am trying to create stats for each player. I would like to count the number of goals each player has scored for each colour team - e.g. Sum the number of goals 'Matt' scored while playing for the 'Red' team.

I have used the MOD function previously the sum just the numbers in the 'Goals' column for each player, but now don't know how to get it to 'check' the colour each week before summing.

Any help greatly appreciated.
 

Attachments

  • Football results.jpg
    Football results.jpg
    185.2 KB · Views: 23

Excel Facts

Wildcard in VLOOKUP
Use =VLOOKUP("Apple*" to find apple, Apple, or applesauce
Welcome to the MrExcel board!

I suggest that you investigate XL2BB for providing sample data to make it easier for helpers by not having to manually type out sample data to test with.

This is smaller & on a single sheet but would this structure help?

24 03 25.xlsm
ABCDEFGHIJ
2TeamGoalsAssistsTeamGoalsAssistsTeamGoalsAssists
3MattRed1Red21Red
4JohnnyRed51Red1Red
5CarlRed1Red3Blue2
6
7
8Goals
9RedBlue
10Matt20
11Johnny50
12Carl32
Count Goals
Cell Formulas
RangeFormula
B10:C12B10=SUMPRODUCT(IFERROR(($A$3:$A$5=$A10)*($B$3:$H$5=B$9)*$C$3:$I$5,0))
 
Upvote 0

Forum statistics

Threads
1,223,885
Messages
6,175,182
Members
452,615
Latest member
bogeys2birdies

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