COUNTIFS Query to Sum values

craigs85

New Member
Joined
Jan 14, 2017
Messages
26
Office Version
  1. 2016
Platform
  1. Windows
Hi All,
I think what I am trying to do should be doable, but i'm struggling so hoping someone might be able to help.

I have a set of columns like this:

Book1
ABCDEFG
1Season21-2221-2222-2322-2323-2423-24
2Match TypeFriendlyFriendlyLeagueLeagueLeagueLeague
3GoalsPlayer 1Player 1Player 3Player 3Player 3Player 3
4Player 1Player 2Player 1Player 1
5Player 1Player 3
6Player 1Player 1
7Player 2Player 1
8Player 2Player 1
9Player 3Player 4
10Player 4Player 5
11Player 5Player 5
12Payer 5
Sheet1


I then want to be able to count the number of times each Player appears under each one, and group by Season.

So player one would have 5 for 21-22, 4 for 22-23 and 1 for 23-24.

Notes that the columns will increase indefinitely so I need to factor that in as well.

I tried a COUNTIFS like this: =COUNTIFS('Tab1'!3:12,B1="21/22")

But it doesn't work. Can anyone help?
 

Excel Facts

Convert text numbers to real numbers
Select a column containing text numbers. Press Alt+D E F to quickly convert text to numbers. Faster than "Convert to Number"
How about
Excel Formula:
=SUMPRODUCT((B3:AB14="Player 1")*(B1:AB1="21-22"))
 
Upvote 1
Solution
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,215,326
Messages
6,124,272
Members
449,149
Latest member
mwdbActuary

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