amruthubballi

New Member
Joined
Apr 27, 2017
Messages
11
Hi,

I am working on cricket points table, My table goes like this.

Match Schedule
1Home Team(A1)Away Team(B1)Result(C1)
2RPSKKR
3RCBRCB
4KKRKKR

<tbody>
</tbody>


Points Table
1Teams(E1)Games Played(F1)Wins(G1)Points(H1)
2RPS
3KKR
4RCB
5GL

<tbody>
</tbody>

I am making predections and working permutations so that my favourite team can go for playoffs. I need a formula, when I enter the winner in result column(C1) in Match schedule, Points table needs to be updated for those who played the game.

E.g If I enter the winner of 1st match as KKR in Result(C2), team played(RPS & KKR) should be shown indicating as 1 match played in points table i.e 1 in Games Played(F2) and 1 in Games Played(F3), smilarly if I enter the result of 2nd match as RCB then teams played(RCB & RPS) should shown as 1 in Games Played(F4) and 2 in Games Played(F2) (as RPS have played 2nd match in season)

In Games Played(F) column I want to indicate the number of matches played only after I enter results. Hope I have written enough to understand my problem and to resolve, Please someone help me.

Thank You
 

Some videos you may like

Excel Facts

Does the VLOOKUP table have to be sorted?
No! when you are using an exact match, the VLOOKUP table can be in any order. Best-selling items at the top is actually the best.

FormR

MrExcel MVP
Joined
Aug 18, 2011
Messages
6,483
Office Version
  1. 365
Platform
  1. Windows
Hi, welcome to the forum!

Something like this maybe:

<b>Excel 2013</b><table cellpadding="2.5px" rules="all" style=";background-color: #FFFFFF;border: 1px solid;border-collapse: collapse; border-color: #BBB"><colgroup><col width="25px" style="background-color: #DAE7F5" /><col /><col /><col /><col /><col /><col /><col /><col /></colgroup><thead><tr style=" background-color: #DAE7F5;text-align: center;color: #161120"><th></th><th>A</th><th>B</th><th>C</th><th>D</th><th>E</th><th>F</th><th>G</th><th>H</th></tr></thead><tbody><tr ><td style="color: #161120;text-align: center;">1</td><td style="color: #333333;background-color: #FAFAFA;;">Home Team(A1)</td><td style="color: #333333;background-color: #FAFAFA;;">Away Team(B1)</td><td style="color: #333333;background-color: #FAFAFA;;">Result(C1)</td><td style="text-align: right;;"></td><td style="color: #333333;background-color: #FAFAFA;;">Teams(E1)</td><td style="color: #333333;background-color: #FAFAFA;;">Games Played(F1)</td><td style="color: #333333;background-color: #FAFAFA;;">Wins(G1)</td><td style="color: #333333;background-color: #FAFAFA;;">Points(H1)</td></tr><tr ><td style="color: #161120;text-align: center;">2</td><td style="color: #333333;background-color: #FAFAFA;;">RPS</td><td style="color: #333333;background-color: #FAFAFA;;">KKR</td><td style="color: #333333;background-color: #FAFAFA;;">KKR</td><td style="text-align: right;;"></td><td style="color: #333333;background-color: #FAFAFA;;">RPS</td><td style="text-align: right;color: #333333;background-color: #FFFF00;;">2</td><td style="text-align: right;color: #333333;background-color: #FFFF00;;">0</td><td style="text-align: right;color: #333333;background-color: #FAFAFA;;"></td></tr><tr ><td style="color: #161120;text-align: center;">3</td><td style="color: #333333;background-color: #FAFAFA;;">RCB</td><td style="color: #333333;background-color: #FAFAFA;;">RPS</td><td style="color: #333333;background-color: #FAFAFA;;">RCB</td><td style="text-align: right;;"></td><td style="color: #333333;background-color: #FAFAFA;;">KKR</td><td style="text-align: right;color: #333333;background-color: #FAFAFA;;">2</td><td style="text-align: right;color: #333333;background-color: #FAFAFA;;">2</td><td style="text-align: right;color: #333333;background-color: #FAFAFA;;"></td></tr><tr ><td style="color: #161120;text-align: center;">4</td><td style="color: #333333;background-color: #FAFAFA;;">KKR</td><td style="color: #333333;background-color: #FAFAFA;;">AAA</td><td style="background-color: #FAFAFA;;">KKR</td><td style="text-align: right;;"></td><td style="color: #333333;background-color: #FAFAFA;;">RCB</td><td style="text-align: right;color: #333333;background-color: #FAFAFA;;">1</td><td style="text-align: right;color: #333333;background-color: #FAFAFA;;">1</td><td style="text-align: right;color: #333333;background-color: #FAFAFA;;"></td></tr><tr ><td style="color: #161120;text-align: center;">5</td><td style="text-align: right;;"></td><td style="text-align: right;;"></td><td style="text-align: right;;"></td><td style="text-align: right;;"></td><td style="color: #333333;background-color: #FAFAFA;;">GL</td><td style="text-align: right;color: #333333;background-color: #FAFAFA;;">0</td><td style="text-align: right;color: #333333;background-color: #FAFAFA;;">0</td><td style="text-align: right;background-color: #FAFAFA;;"></td></tr></tbody></table><p style="width:3.6em;font-weight:bold;margin:0;padding:0.2em 0.6em 0.2em 0.5em;border: 1px solid #BBB;border-top:none;text-align: center;background-color: #DAE7F5;color: #161120">Sheet1</p><br /><br /><table width="85%" cellpadding="2.5px" rules="all" style=";border: 2px solid black;border-collapse:collapse;padding: 0.4em;background-color: #FFFFFF" ><tr><td style="padding:6px" ><b>Worksheet Formulas</b><table cellpadding="2.5px" width="100%" rules="all" style="border: 1px solid;text-align:center;background-color: #FFFFFF;border-collapse: collapse; border-color: #BBB"><thead><tr style=" background-color: #DAE7F5;color: #161120"><th width="10px">Cell</th><th style="text-align:left;padding-left:5px;">Formula</th></tr></thead><tbody><tr><th width="10px" style=" background-color: #DAE7F5;color: #161120">F2</th><td style="text-align:left">=COUNTIFS(<font color="Blue">A:A,E2,C:C,"<>"</font>)+COUNTIFS(<font color="Blue">B:B,E2,C:C,"<>"</font>)</td></tr><tr><th width="10px" style=" background-color: #DAE7F5;color: #161120">G2</th><td style="text-align:left">=COUNTIFS(<font color="Blue">C:C,E2</font>)</td></tr></tbody></table></td></tr></table><br />
 

steve the fish

Well-known Member
Joined
Oct 20, 2009
Messages
8,387
Office Version
  1. 365
Platform
  1. Windows
You dont seem to have made any provision for if a game is called off and both teams share the 2 points so you could maybe use something like this in G2:

=COUNTIF($C:$C,E2)+COUNTIFS($A:$A,E2,$C:$C,"rain")/2+COUNTIFS($B:$B,E2,$C:$C,"rain")/2

instead of typing the winner in column C you type 'rain' if a game is called off.
 

Watch MrExcel Video

Forum statistics

Threads
1,127,616
Messages
5,625,873
Members
416,141
Latest member
Bartek9q

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
Top