Closed Thread
Results 1 to 22 of 22

Elo Ranking

  1. #1
    Registered User
    Join Date
    03-31-2009
    Location
    Oslo, Norway
    MS-Off Ver
    Excel 2007
    Posts
    10

    Elo Ranking

    Hi!

    This is my first post here!

    I have developed a ranking system based on the ELO system (used e.g. in the Chess world). It works fine, but I have problems how to input my data and to update it.

    What I want is to be able to input all the matches (football, console gaming) and results every now and then; fill in with more and more results after games have being played. I want excel to calculate the NEW RATING of the team after each match. Because the ranking system is based on your CURRENT ranking, it has to update the results in the correct order.

    E.g., if I have entered these results in columns and rows:

    Doncaster 0-2 Ipswich
    Ipswich 0-1 Reading

    Let's say Ipswich have a rating of 1200 points before these matches begin. After the Doncaster match it has 1210 points. Now I want excel to calculate the Reading match with THIS NEW RATING. Since Reading has a rating of e.g. 1320, Ipswich will only lose 7 points in this match, hence the new rating of Ipswich is 1203.

    Is this understandable? I desperately need help with this, thanks!!
    Last edited by Haydn; 05-19-2009 at 07:51 AM. Reason: Annoying people with the term well known.

  2. #2
    Forum Contributor mewingkitty's Avatar
    Join Date
    09-29-2008
    Location
    Fort McMurray, Alberta, Canada
    MS-Off Ver
    Excel 2003
    Posts
    949

    re: Elo Ranking

    the well known ELO system
    It may help to post an example workbook, with some examples included of what would change, and the expected result.

    I personally am quite familiar with mathematics, and some algebra, and some beginner level VBA code, however, I've never heard of the ELO system, nor would I be able to guess what it is if I got ten tries.

    Show me what you need it to do, and I"ll like be able to help you do it though.

    mew!
    =IF(AND(OR(BLONDE,BRUNETTE,REDHEAD),OR(MY PLACE,HER PLACE),ME),BOW-CHICKA-BOW-WOW,ANOTHER NIGHT ON THE INTERNET)

  3. #3
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    re: Elo Ranking

    Heh...well-known...to everyone who's heard of it.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  4. #4
    Registered User
    Join Date
    03-31-2009
    Location
    Oslo, Norway
    MS-Off Ver
    Excel 2007
    Posts
    10

    re: Elo Ranking

    First of all, I'm so sorry I used the term well known, I will edit the post immediately and remove these words.

    Actually I shouldn't have mentioned it, because it's really not important. I will make a new excel file that just cover my problem:

    Example.jpg

    In column B we have the name of 4 boys and to the right of them is how many apples they have at the moment. Now they play many games against each other (column E vs H) and the result in these matches (column F vs G) will determine how many apples they will get.

    I want excel to first look up how many apples E3 and H3 has, then do a calculation (this is NOT important) of the result in F3 and G3 which will determine how many apples E3 and H3 will win or lose (depending on the result in F3 and G3. Then E3 and H3's new amount of apples should change in the C column.

    E.g, Boris had 8 apples from the beginning, but after his match against John he gain 2 new apples. I want C5 to change to 10. John lost 2 apples, so I want C6 to change to 7.

    After this calculation has been made, I want excel to continue with the match in row 4 in the same way as it did in match 3. John now loses over Adam and will lose 3 apples, Adam will gain the same amount. So now I want C6 to change to 7-3=4 and C7 to 5+3=8.

    So it will continue and calculate row after row. One of my problems has been circle reference.

    Please help me with this calculation! Thanks!
    Last edited by Haydn; 05-12-2009 at 05:12 AM. Reason: Changed a word.

  5. #5
    Forum Contributor mubashir aziz's Avatar
    Join Date
    03-18-2009
    Location
    Lahore, Pakistan
    MS-Off Ver
    MS Office 2013
    Posts
    533

    re: Elo Ranking

    Check attached file !!!
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    03-31-2009
    Location
    Oslo, Norway
    MS-Off Ver
    Excel 2007
    Posts
    10

    re: Elo Ranking

    Wow, thanks a lot mubashir aziz!! I will definitely learn something out of this.

    But I did a big mistake when I presented my problem in my last post. I should have attached my real file instead of making a more simple version of it. So here it is:

    Rank Games Project.xlsx

    In column F, H, I and J I want to fill in results from different matches. I want this to be as long as necessary and continue to fill in with time.

    My problem is the updating. Everyone starts at 1200 in rating. After the first match, bla vs nor, nor's new rating is 1209. What I want now is that when Excel calculate the next match, nor vs bar, the rating where it gets the nor's rating (C14) should have changed to 1209. The new rating for nor will then be 1219 and not 1211.

    How is this possible? Excel should calculate the first result (row 2), then it updates the new rating of the teams involved. After this it calculates the next result (row 3) based on these new ratings and updates if after the calculation. And so on...

    Thanks for all possible help!!
    Last edited by Haydn; 05-12-2009 at 08:42 AM. Reason: My bad English...

  7. #7
    Forum Contributor mubashir aziz's Avatar
    Join Date
    03-18-2009
    Location
    Lahore, Pakistan
    MS-Off Ver
    MS Office 2013
    Posts
    533

    Smile re: Elo Ranking

    Hi,

    check this again and I've highlighted some column as i don't think there is any need of these columns......
    Attached Files Attached Files
    If this post helps, Please don't 4get to click the star icon located at the bottom left of my Post.

  8. #8
    Registered User
    Join Date
    03-31-2009
    Location
    Oslo, Norway
    MS-Off Ver
    Excel 2007
    Posts
    10

    re: Elo Ranking

    Hi!

    Thanks a lot! You're probably right, I don't need those columns. But there is one thing, you had changed the reference in the Q-column. Then it will not calculated the right amount of difference in ranking points between the teams.

    When I changed this back, the circle reference gets back...

    Do you know a solution to this?

    Thanks a lot!

    Kopi av Games-Rank-20Games-20Project.xlsx

  9. #9
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    re: Elo Ranking

    See if the attached does more or less what you want. The scores have a formula that makes them random at the moment; press F9 to see different results. You can hide most of the columns if you wish.
    Attached Files Attached Files
    Entia non sunt multiplicanda sine necessitate

  10. #10
    Forum Contributor mubashir aziz's Avatar
    Join Date
    03-18-2009
    Location
    Lahore, Pakistan
    MS-Off Ver
    MS Office 2013
    Posts
    533

    re: Elo Ranking

    Hi,

    I didn't make any change in Q column and i have checked that there is no change in Q column, please confirm in which column you made some changes.

    Also, you should tried shg file which will be definitely helpful for you .....

  11. #11
    Registered User
    Join Date
    03-31-2009
    Location
    Oslo, Norway
    MS-Off Ver
    Excel 2007
    Posts
    10

    re: Elo Ranking

    Mubashir Aziz, it was column Q in my old Excel-file, column S in the one you posted to me. What is shg-file? (Sorry for my incompetence..)

    Thanks shg! I will have a closer look at your file later today.
    Last edited by Haydn; 05-14-2009 at 04:22 AM. Reason: Added text.

  12. #12
    Registered User
    Join Date
    03-31-2009
    Location
    Oslo, Norway
    MS-Off Ver
    Excel 2007
    Posts
    10

    Re: Elo Ranking

    Quote Originally Posted by shg View Post
    See if the attached does more or less what you want. The scores have a formula that makes them random at the moment; press F9 to see different results. You can hide most of the columns if you wish.
    Thanks a lot for this! I understand the idea with the updating and I'm now trying to use this method on my own file. It's very difficult, but so far so good!

  13. #13
    Registered User
    Join Date
    03-31-2009
    Location
    Oslo, Norway
    MS-Off Ver
    Excel 2007
    Posts
    10

    Re: Elo Ranking

    Shg, thanks so much for letting me look at that file, it helped me so incredible much!!!

    No I have one more problem at the moment. In column C I want the latest ranking to be next to the name in column B. So ackba floyd should have 1281 points; the value in V11 should be in C4; value W11 should be in C5 and so on. But if there is a new game played and a new value has been calculated in V12, I want Excel to see this and return V12 to C4; W12 to C5 and so on.

    Can someone help me with this please? Thanks a lot!

    Rank Games Project v6.xlsx
    Last edited by Haydn; 05-17-2009 at 08:48 PM. Reason: Wrong English...

  14. #14
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Elo Ranking

    In column C I want the latest ranking to be next to the name in column B.
    There is nothing in column B or C ...

  15. #15
    Registered User
    Join Date
    03-31-2009
    Location
    Oslo, Norway
    MS-Off Ver
    Excel 2007
    Posts
    10

    Re: Elo Ranking

    Oops, I'm very sorry, must have uploaded the wrong file. Here it comes again:

    Rank Games Project v6.xlsx

    Now there are names in Column B but nothing in C, but that's what I need help to fix.

    Thanks!

  16. #16
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Elo Ranking

    In C3, =MATCH(1E+100,V:V, 1) - ROW(V1) + 1

    In C4 and copy down, =HLOOKUP(B4, $V$1:$BS$50, C$3, FALSE)

  17. #17
    Registered User
    Join Date
    03-31-2009
    Location
    Oslo, Norway
    MS-Off Ver
    Excel 2007
    Posts
    10

    Re: Elo Ranking

    Fantastic! It works perfect! Thanks a lot SHG!!

  18. #18
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Elo Ranking

    You're welcome. Would you please mark the thread as Solved? (See How To ... in menu bar.)

  19. #19
    Registered User
    Join Date
    03-31-2009
    Location
    Oslo, Norway
    MS-Off Ver
    Excel 2007
    Posts
    10

    Re: Elo Ranking

    Ok, I marked it as solved, thanks again! If I have small very easy questions, should a make a new topic in this forum then?
    Last edited by Haydn; 05-19-2009 at 07:52 AM. Reason: Spelling.

  20. #20
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Elo Ranking

    If they are exactly related to your prior question, you can resume here; if not, please start a new thread.

  21. #21
    Registered User
    Join Date
    02-22-2012
    Location
    Kiev
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: Elo Ranking

    Quote Originally Posted by shg View Post
    See if the attached does more or less what you want. The scores have a formula that makes them random at the moment; press F9 to see different results. You can hide most of the columns if you wish.
    Thanks a lot for sharing this, it was exactly what I was looking for. I'm testing it and it works nice.
    We are using it for individual player ranking in our internal lunch-time office championship in fussbal (kicker, table football)

    I have one qestion regarding this file - does goal difference in one game (for example +8 comparing to +5) makes better rating for a player like it works for World Football Elo Ratings?

    The ratings are based on the following formula:
    Rn = Ro + KG(W − We)
    or
    P = KG(W − We)

    Where:
    Rn = The new team rating
    Ro = The old team rating
    K = Weight index regarding the tournament of the match
    G = A number from the index of goal differences
    W = The result of the match
    We = The expected result
    P = Points Change

    Update: sorry, the goal difference doesnt work on raiting unfortunatelly. Can somebody help me with updating the file to formula Rn = Ro + KG(W − We)&
    I'm trying but doesnt work properely as almost beginner in Excel.
    Last edited by zartem; 02-22-2012 at 07:16 AM.

  22. #22
    Forum Expert
    Join Date
    12-23-2006
    Location
    germany
    MS-Off Ver
    XL2003 / 2007 / 2010
    Posts
    6,326

    Re: Elo Ranking

    Welcome to the Forum, unfortunately:

    Your post does not comply with Rule 2 of our Forum RULES. Don't post a question in the thread of another member -- start your own thread. If you feel it's particularly relevant, provide a link to the other thread. It makes sense to have a new thread for your question because a thread with numerous replies can be off putting & difficult to pick out relevant replies.

Closed Thread

Thread Information

Users Browsing this Thread

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

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