+ Reply to Thread
Results 1 to 10 of 10

Attempting to use Goal Difference as a Tie Breaker (possibly using an IF?)

  1. #1
    Forum Contributor
    Join Date
    11-11-2011
    Location
    London England
    MS-Off Ver
    Excel 2011 for Mac
    Posts
    157

    Question Attempting to use Goal Difference as a Tie Breaker (possibly using an IF?)

    Hi,

    Apologies for the title, but it sums up the problem. Basically it is another sports modelling experiment that I have had (I get the day off work and come up with things like this ), where I just had a curiosity to play out the last games for the top 3 teams in the English Premier League (just to see if I could get some percentages).

    The attached, is just the values from one run of my model (I have taken the workings out to reduce the size and for other reasons).

    Basically everything to the left of column K, is the model and I am happy with it (and I know goals have to be integers - this is basic);

    This plays the games out, and feeds the data into the table at M36 (highlighted yellow), which feeds the data tables at M42 (highlighted green), which are counted to get percentages in the tables (highlighted yellow at M6).

    I have put some example output from runs on the second worksheet (so you can see how it works - I like that it suggests Chelsea can win even though it won't be very likely )

    Basically you can probably see the problem in cell O22. The percentage chance of finishing first should equal 100% when totalled (e.g. the sum of Liverpool, Chelsea and Man City finishing first, as it has to be one of them should equal 100%). I tracked this back to the fact that I had no way of splitting teams level on points. As a result I added Goal Difference to the model (crudely - e.g. decimal) and here's the question;

    How would I go about using Goal Difference to break tie's effectively?

    I am thinking I could do some kind of IF function in Q37 (and then have a tie-breaked rank in column R to feed the data tables), on the basis of if anything in N37 to N39 was equal but I am not sure how I would go about applying this.

    Any thoughts, advice, nudges in the right direction would be appreciated.

    Example Values_EPL.xlsx

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,817

    Re: Attempting to use Goal Difference as a Tie Breaker (possibly using an IF?)

    I don't follow your logic. O22 does not appear to be incorrect. It is the sum of the top percentages given in that yellow table, isn't it? Why do you think this should add up to 100%?

    It doesn't help that there are no formulae - it's difficult to understand how you are making your calculations.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Forum Contributor
    Join Date
    11-11-2011
    Location
    London England
    MS-Off Ver
    Excel 2011 for Mac
    Posts
    157

    Re: Attempting to use Goal Difference as a Tie Breaker (possibly using an IF?)

    Quote Originally Posted by AliGW View Post
    I don't follow your logic. O22 does not appear to be incorrect. It is the sum of the top percentages given in that yellow table, isn't it? Why do you think this should add up to 100%?
    Sure I probably didn't make this clear - 3 teams, only one can finish first (effectively I'm counting 4th place down as having 0 chance of winning), when you sim out the last games, one of those teams has to win, when you add the percentage that each team finishes first up it should equal 100% (e.g. as one of those teams has to win) - in the way if you add O22, O23 and O24 you get 300%. I hope this makes a bit more sense. I'm figuring with the chances for finishing 2nd or 3rd being a little less than 100%, it is coming down to the fact that I can't split ties.

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,817

    Re: Attempting to use Goal Difference as a Tie Breaker (possibly using an IF?)

    Surely you need the average of the three first place percentages, don't you?

  5. #5
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,817

    Re: Attempting to use Goal Difference as a Tie Breaker (possibly using an IF?)

    Total 1st 37.00%
    Total 2nd 33.32%
    Total 3rd 29.68%
    Equals: 100.00%

    My partner says that Tottenham is going to make a late run ...

  6. #6
    Forum Contributor
    Join Date
    11-11-2011
    Location
    London England
    MS-Off Ver
    Excel 2011 for Mac
    Posts
    157

    Re: Attempting to use Goal Difference as a Tie Breaker (possibly using an IF?)

    Quote Originally Posted by AliGW View Post
    Surely you need the average of the three first place percentages, don't you?
    No. The data table sims it out (effectively I am playing the games on the sheet to the left, 30,000 times, 10,000 times per team as it gives you a fairly stable number at that point - but I linked the Chelsea and the Liverpool game as they aren't independent), and the data tables feed the table at the top. I like the 99.95% for second in O23 - I can live with that as it is probably just down to a slight inconsistency in the modelling (numbers are fairly stable to within 1% at 10,000 runs typically). I was just intending to then match these against the quoted odds to validate the model (so to speak) - I also hold my hand up and am a Chelsea fan (so I was just curious).

  7. #7
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,817

    Re: Attempting to use Goal Difference as a Tie Breaker (possibly using an IF?)

    OK, José (get it?) - you've lost me. Hopefully someone else will understand what you are doing, but providing a few of your attempted formulae would help us to follow your logic, I think. I hope the season ends well for you!

  8. #8
    Forum Contributor
    Join Date
    11-11-2011
    Location
    London England
    MS-Off Ver
    Excel 2011 for Mac
    Posts
    157

    Re: Attempting to use Goal Difference as a Tie Breaker (possibly using an IF?)

    Quote Originally Posted by AliGW View Post
    OK, José (get it?) - you've lost me. Hopefully someone else will understand what you are doing, but providing a few of your attempted formulae would help us to follow your logic, I think. I hope the season ends well for you!
    Thanks for trying.

  9. #9
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,817

    Re: Attempting to use Goal Difference as a Tie Breaker (possibly using an IF?)

    Quote Originally Posted by mrvp View Post
    Thanks for trying.
    But my partner says that knowing whether or not David Silva will be playing on Monday would be extremely helpful to him ... :-D

  10. #10
    Forum Contributor
    Join Date
    11-11-2011
    Location
    London England
    MS-Off Ver
    Excel 2011 for Mac
    Posts
    157

    Thumbs up Re: Attempting to use Goal Difference as a Tie Breaker (possibly using an IF?)

    Right I think I have this more sorted - found one of the other threads on here (I'll post the link -
    HTML Code: 
    ) took the formula out of the spreadsheet in the other thread, adapted my sheet, and added a "key" column to act as my working/magic column applying the Goal Difference as a tie-breaker (in decimal form to the Points) using this formula into Q37:

    =(N37&"."&TEXT(P37,"0"))

    with N37 being the Points and P37 being the Goal difference. With the Goal Difference not being level this created the tie-breaker.

    As this came up as text though and so couldn't be ranked (I don't think?), I converted it into a value using in R37:

    =VALUE(Q37)

    I then did this for all 3 teams (highlighted in a purple colour), ranked them, fed the ranks into the data tables (instead of column O - so re-did all three data tables) and got numbers more to my liking (is within 1% of 100%, and the predicted odds aren't far away from the bookmakers odds for validation).

    I have attached a spreadsheet like the one I did last night (without the model on it - just containing outputs effectively). I've also pasted some runs on the second sheet - two of which I have highlighted yellow so you can see how this picks this up and sorts it (when teams ended up level on points).

    If anyone can come up with a better/more elegant way of doing this (e.g. for a working/magic column) please feel free to offer suggestions.

    Also I'm not worrying for the time being when teams end up level on points and goal difference - yet.

    Example Values_EPL_RevB.xlsx
    Last edited by mrvp; 04-19-2014 at 02:26 PM. Reason: added the link

  11. #11
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,817

    Re: Attempting to use Goal Difference as a Tie Breaker (possibly using an IF?)

    Thanks for posting this, but it would be more interesting (and useful) to be able to see the formulae used.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 3
    Last Post: 07-27-2012, 01:44 PM
  2. Goal Seek VBA with relative 'Goal' parameter
    By alirulez in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-07-2012, 07:19 PM
  3. Ranking with 3-way tie breaker
    By BuzzT in forum Excel General
    Replies: 4
    Last Post: 10-30-2011, 11:56 AM
  4. Tie Breaker
    By allnet000 in forum Excel General
    Replies: 6
    Last Post: 02-11-2010, 04:10 PM
  5. sorts on goal difference
    By rfc5141 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-19-2007, 08:09 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1