Excel Formula Dilemma

ItalianPlatinum

Well-known Member
Joined
Mar 23, 2017
Messages
797
Office Version
  1. 365
  2. 2019
Platform
  1. Windows
Please help, finding a solution is driving me NUTS. For starters my data as described.

Column A: Match Start (date started)
Column B: My Team (Always the same value)
Column C: Opposing Team (Many duplicates)
Column D: Match End (date end)
Column E: Win/Loss (value = Win or Loss depending on the result)
*The data is quite larger over 300 rows*

My end result here is I want a standings bracket (how I fair against each team (win, loss, win %). Problem I am having is the duplicates are giving me a headache, and I want it to auto pull. So not having to intervene by creating filters or auto filters. Sample below, in a smaller scale but in theory that is how my spreadsheet is made up:

Start DateTeamOpponentEnd DateWin/Loss
9/15/2016AB9/15/2016Win
9/16/2016AC9/16/2016Win
9/17/2016AD9/17/2016Win
9/18/2019AE9/19/2016Win
9/19/2016AF9/19/2016Win
9/20/2016AG9/21/2016Win
9/21/2016AD9/22/2016Win
9/22/2016AE9/23/2016Win
9/23/2016AB9/24/2016Win
9/24/2016AC9/25/2016Win

<tbody>
</tbody><colgroup><col><col><col><col><col></colgroup>
 

Excel Facts

Remove leading & trailing spaces
Save as CSV to remove all leading and trailing spaces. It is faster than using TRIM().
Re: Excel Formila Dilemma.HELP ME PLEASE

Where are the duplicates in your data ? Each row has a different start date .

Could you post the formula that you are using ? along with the desired ouput for this sample data ?
 
Upvote 0
Re: Excel Formila Dilemma.HELP ME PLEASE

Welcome to the forum.

Maybe:

ABCDEFGHI
1Start DateTeamOpponentEnd DateWin/LossOpponentWinsLosses
29/15/2016AB9/15/2016WinB20
39/16/2016AC9/16/2016WinC20
49/17/2016AD9/17/2016WinD20
59/18/2019AE9/19/2016WinE20
69/19/2016AF9/19/2016WinF10
79/20/2016AG9/21/2016WinG10
89/21/2016AD9/22/2016Win
99/22/2016AE9/23/2016Win
109/23/2016AB9/24/2016Win
119/24/2016AC9/25/2016Win
12
13

<colgroup><col style="width: 25pxpx"><col><col><col><col><col><col><col><col><col></colgroup><thead>
</thead><tbody>
</tbody>
Sheet13

Worksheet Formulas
CellFormula
H2=IF(G2="","",COUNTIFS($C$2:$C$100,G2,$E$2:$E$100,"Win"))
I2=IF(G2="","",COUNTIFS($C$2:$C$100,G2,$E$2:$E$100,"Loss"))

<thead>
</thead><tbody>
</tbody>

<tbody>
</tbody>

Array Formulas
CellFormula
G2{=IF(G1="","",IFERROR(INDEX($C$2:$C$100,SMALL(IF($C$2:$C$100<>"",IF(COUNTIF($G$1:$G1,$C$2:$C$100)=0,ROW($C$2:$C$100)-ROW($C$2)+1)),1)),""))}

<thead>
</thead><tbody>
</tbody>
Entered with Ctrl+Shift+Enter. If entered correctly, Excel will surround with curly braces {}.
Note: Do not try and enter the {} manually yourself

<tbody>
</tbody>
 
Upvote 0
Re: Excel Formila Dilemma.HELP ME PLEASE

Where are the duplicates in your data ? Each row has a different start date .

Could you post the formula that you are using ? along with the desired ouput for this sample data ?

The duplications are in the opponents column
 
Upvote 0
Okay ideally I want to create another tab called standings, so I will have the new tab reference those cells and see how that works. I will let you know how that works, thanks in advance!
 
Upvote 0
Try this in F2 and copy down
=COUNTIFS($E$2:E2,"Win",$C$2:C2,C2)/COUNTIF($C$2:C2,C2)*100
 
Upvote 0
Or, to get Wins, losses, Win %
Excel Workbook
ABCDEFGH
1Start DateTeamOpponentEnd DateWin/LossWinslosseswin %
29/15/2016AB9/15/2016Win10100
39/16/2016AC9/16/2016Win10100
49/17/2016AD9/17/2016Win10100
59/18/2019AE9/19/2016Win10100
69/19/2016AF9/19/2016Win10100
79/20/2016AG9/21/2016Win10100
89/21/2016AD9/22/2016Win20100
99/22/2016AE9/23/2016Loss1150
109/23/2016AB9/24/2016Win20100
119/24/2016AC9/25/2016Win20100
Sheet2
 
Upvote 0
Try this in F2 and copy down
=COUNTIFS($E$2:E2,"Win",$C$2:C2,C2)/COUNTIF($C$2:C2,C2)*100

So the array formula actually worked well. My new head scratcher is trying to find an average column that tells me on average how often do I face my opponent. I figured another array formula but I can't muster a way to get it to work.
 
Upvote 0
So the array formula actually worked well. My new head scratcher is trying to find an average column that tells me on average how often do I face my opponent. I figured another array formula but I can't muster a way to get it to work.

Not sure what you mean by this. Do you mean if you play Team A, Team B, Team A and then Team C you want formula to say you play Team A 50% of the time and team B and C 25%?
 
Upvote 0
Not sure what you mean by this. Do you mean if you play Team A, Team B, Team A and then Team C you want formula to say you play Team A 50% of the time and team B and C 25%?

No more lets just say I play team A on 10/1/16, then play them again on 10/6/16. On average I play team A every 5 days. That but with more occurrences and more variables.
 
Upvote 0

Forum statistics

Threads
1,216,028
Messages
6,128,392
Members
449,445
Latest member
JJFabEngineering

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