Count All values in every 3rd column

ZivilynBane64

New Member
Joined
Dec 10, 2023
Messages
3
Hello! I'm trying to figure out the formula that would count all specific values in every third column.
Basically every 3rd column, I have a list of names. This goes on for hundreds of columns. Think of these as Win/Loss columns, so I can't just count all columns. It's every 3rd column. I need to be able to count how many times one persons name appears in the win columns in total, and how many times their name appears in the loss column in total. Data starts at K5:K. So I need to count the number of times the name appears in K5:K + N5:N + Q5:Q + T5:T ......
Please help :)
 

Excel Facts

When they said...
When they said you are going to "Excel at life", they meant you "will be doing Excel your whole life".
This might be more clear context: I'm essentially trying to avoid having to type this formula because the dataset is very large (it goes all the way to ZX currently and will get bigger):

=COUNTIF(K5:K,D5)+COUNTIF(N5:N,D5)+COUNTIF(Q5:Q,D5)......

Need it to count all instances of whatever is in D5 for every third column starting with K.
 
Upvote 0
I suggest that you update your Account details (or click your user name at the top right of the forum) so helpers always know what Excel version(s) & platform(s) you are using as the best solution often varies by version. (Don’t forget to scroll down & ‘Save’)

Guessing a bit about what your data is like but see if something like this might help.

23 12 10.xlsm
DEFGHIJKLMNOPQRSTU
1NameWinsLossesRound 1WinLossRound 2WinLossRound 3WinLossRound 4WinLoss
2Name 121Name 1Name 10Name 2Name 18Name 12Name 7Name 15Name 21
3Name 231Name 3Name 19Name 23Name 19Name 17Name 23Name 24Name 8
4Name 322Name 14Name 16Name 25Name 3Name 22Name 25Name 6Name 2
5Name 421Name 6Name 13Name 17Name 25Name 24Name 24Name 6Name 23
6Name 513Name 3Name 14Name 6Name 6Name 9Name 4Name 16Name 16
7Name 652Name 4Name 23Name 15Name 3Name 15Name 19Name 8Name 17
8Name 701Name 16Name 25Name 1Name 5Name 2Name 22Name 14Name 1
9Name 811Name 2Name 6Name 14Name 22Name 12Name 23Name 21Name 16
10Name 920Name 9Name 10Name 4Name 5Name 11Name 21Name 5Name 23
11Name 1003Name 6Name 22Name 19Name 10Name 24Name 23Name 23Name 5
12Name 1110
13Name 1220
14Name 1301
15Name 1431
16Name 1530
17Name 1623
18Name 1721
19Name 1801
20Name 1913
21Name 2000
22Name 2112
23Name 2213
24Name 2326
25Name 2431
26Name 2513
Count
Cell Formulas
RangeFormula
E2:E26E2=SUMPRODUCT((K$1:U$1="Win")*(K$2:U$11=D2))
F2:F26F2=SUMPRODUCT((K$1:U$1="Loss")*(K$2:U$11=D2))
 
Upvote 0
Thank you Peter that worked perfectly! I didn't think about labelling the top of the rows win/loss to ensure it was counting from the correct columns. You are awesome sir!
 
Upvote 0
You're welcome. Thanks for the follow-up. :)

I had assumed headings something like I used would have already been there otherwise it could be a tricky worksheet for anybody reading it. :eek:
 
Upvote 0

Forum statistics

Threads
1,215,079
Messages
6,123,000
Members
449,092
Latest member
masterms

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