+ Reply to Thread
Results 1 to 17 of 17

League rank

  1. #1
    Registered User
    Join Date
    09-05-2010
    Location
    Liverpool, England
    MS-Off Ver
    Excel 2010
    Posts
    11

    League rank

    Can someone help me please? I would like these players ranked first on points, then game difference then won. The reason there are all zeros is I would like to put in the formula once and drag and the rank to update itself when I change the values in cells C4 to H11. I would also like the formula to take ties into account and correctly rank positive and negative numbers.
    Attached Files Attached Files

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

    Re: Excel league rank

    Please update your sample workbook. The data portion columns C:J should have a complete set of sample data, then manually mockup the results in column A based on the sample data.

    The sample sbould fully demonstrate all the hurdles you need to overcome regarding scoring and breaking ties.

    Once your sample chart is complete and full of data, we have a goal in front of us for automating a formula for column A.
    _________________
    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!)

  3. #3
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,168

    Re: Excel league rank

    Also - how do you determine tie breakers?

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

    Re: Excel league rank

    That's the question we have to ask YOU.

    Excel by default assumes ties are just fine. If you rank two people in 3rd places with the same score, Excel simply excludes 4th place so 5th would be next. That's perfectly reasonable and often used.

    If you do not allow ties, then you have to determine the criteria for breaking the tie.

    1) Easiest solution is positional. The list of players is in some sort of seniority so that people near the top of the list always place above others below in the list in the case of ties.

    2) Secondary column of values used to break ties. If the secondary column also ties, then a third?

    You have have to determine the logic, we'll help turn that into a formula or three. That's why we need you to mockup a complete set of data demonstrating all of the issues you face and the result you want based on that data when you manually calculate the rankings.

  5. #5
    Registered User
    Join Date
    09-05-2010
    Location
    Liverpool, England
    MS-Off Ver
    Excel 2010
    Posts
    11

    Re: League rank

    This is the new spreadsheet in reply to the above replies.
    Attached Files Attached Files

  6. #6
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675

    Re: League rank

    If you use this formula in A4 copied down it should rank the way you asked

    =RANK(J4,J$4:J$11)+SUMPRODUCT((J4=J$4:J$11)*(I4<I$4:I$11))+SUMPRODUCT((J4=J$4:J$11)*(I4=I$4:I$11)*(G4<G$4:G$11))

    If all three are the same - points, game difference and won - then the rank will be the same
    Audere est facere

  7. #7
    Registered User
    Join Date
    09-05-2010
    Location
    Liverpool, England
    MS-Off Ver
    Excel 2010
    Posts
    11

    Re: League rank

    This solves my problem but what can I do to stop ranking negative numbers wrongly e.g. if I update the formula myself two players may be on the same points but game difference when one player has -20 and the other player has -6 then -20 will be ranked higher.

  8. #8
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675

    Re: League rank

    I think that the suggested formula works OK with negative numbers - it will rank -6 higher than -20, isn't that what you expect? If you still think there's a problem can you post a workbook with the incorrect ranking?

  9. #9
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,168

    Re: League rank

    Hi okopo -
    Have you ever seen Auto Filters work?

    Put your cursor anywhere in your table, like in B5, click on the Data Tab and then click "Filter".

    Little dropdown arrows appear on your red row. Click on anyone of these and it will give you choices to sort or filter by that columns data.

    If you click on the "Points" arrow and sort Largest to smallest you it will sort your league without needing to rank them. If you sort by Game Differences followed by Points it will effectively be what you want.

    Try It... You might like this better than your ranking formula.

  10. #10
    Registered User
    Join Date
    09-05-2010
    Location
    Liverpool, England
    MS-Off Ver
    Excel 2010
    Posts
    11

    Re: League rank

    Thank you all for the help that I received. I have now solved my problem.

  11. #11
    Registered User
    Join Date
    09-05-2010
    Location
    Liverpool, England
    MS-Off Ver
    Excel 2010
    Posts
    11

    Re: League rank

    How to I put a solved thread on my posts?

  12. #12
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,168

    Re: League rank

    Click on Forum Rules (above) and read Rule #9.

  13. #13
    Registered User
    Join Date
    09-05-2010
    Location
    Liverpool, England
    MS-Off Ver
    Excel 2010
    Posts
    11

    Re: League rank

    I used this formula =RANK(J4,J$4:J$11)+SUMPRODUCT((J4=J$4:J$11)*(I4<I$4:I$11))+SUMPRODUCT((J4=J$4:J$11)*(I4=I$4:I$11)*(G 4<G$4:G$11)) to rank the players in my second attachment but I would like continuous ranks e.g. 1,2,3,4,5 all help will be appreciated.

  14. #14
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675

    Re: League rank

    Can you show an example where that formula doesn't give you the results you want - and also show the results you do want? Thanks

  15. #15
    Registered User
    Join Date
    09-05-2010
    Location
    Liverpool, England
    MS-Off Ver
    Excel 2010
    Posts
    11

    Re: League rank

    Can someone help me please? I would like these players ranked first on points, then game difference then won. The reason there are all zeros is I would like to put in the formula once and drag and the rank to update itself when I change the values in cells C4 to H11. I would also like the formula to take ties into account and correctly rank positive and negative numbers. I would like continuous ranks e.g. 1,2,3,4,5. I used the formula

    =RANK(J4,J$4:J$11)+SUMPRODUCT((J4=J$4:J$11)*(I4<I$4:I$11))+SUMPRODUCT((J4=J$4:J$11)*(I4=I$4:I$11)*(G 4<G$4:G$11))

    but most of the ranks are the same,
    Attached Files Attached Files

  16. #16
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675

    Re: League rank

    I'm not sure what the issue is. If you use the suggested formula with that data all the ranks are different.

    Please give an example where that formula doesn't give you the results you want - and then show the results that you do want

  17. #17
    Registered User
    Join Date
    09-05-2010
    Location
    Liverpool, England
    MS-Off Ver
    Excel 2010
    Posts
    11

    Re: League rank

    I want to start the league from scratch and then update it.

+ Reply to 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