Formula to Count number of wins between two players

sankaman

New Member
Joined
Apr 4, 2024
Messages
4
Office Version
  1. 365
Platform
  1. MacOS
I have a table in which I want to count the number of matches a certain player has won and loss. This is what I have:
1712270572230.png

What I want is a formula that returns the number of times Alex has won and lost against all other players and so on with every player.

I was thinking of COUNTIF but I can seem to get it to work.
 
What about this then?

24 04 06.xlsm
ABCDEFGHIJKLMNOPQRSTUVWXYZ
1
2WLWLWLWLWLWLWLWLWLWLWLPts
3Alex32320442312143130463-2
WL
Cell Formulas
RangeFormula
X3X3=SUMPRODUCT((B3:T3>C3:U3)*(B$2:T$2="W"))
Y3Y3=COUNT(B3:U3)/2-X3
Z3Z3=SUMIF(B$2:U$2,"W",B3:U3)-SUMIF(B$2:U$2,"L",B3:U3)
Thank you, that did the trick.
 
Upvote 0

Excel Facts

Save Often
If you start asking yourself if now is a good time to save your Excel workbook, the answer is Yes
You're welcome. Thanks for the follow-up. :)
 
Upvote 0

Forum statistics

Threads
1,215,267
Messages
6,123,964
Members
449,137
Latest member
yeti1016

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