+ Reply to Thread
Results 1 to 9 of 9

Olympic Medal Table Ranking Formula

  1. #1
    Registered User
    Join Date
    07-30-2012
    Location
    Sri Lanka
    MS-Off Ver
    Excel 2010
    Posts
    3

    Unhappy Olympic Medal Table Ranking Formula

    Hi guys, I want to create an Olympic medal table with the rankings. For that I need a formula to rank countries. U may know the conditions in ranking.For those who are not familiar I'll describe. First the rankings are done according to the number of GOLD medals, if there are ties number of SILVER medals are taken into account. If they tie too, BRONZE medals are involved in rankings. If all the medals are equal then the rank is a tie too. I'll give an example.

    RANK COUNTRY GOLD SILVER BRONZE

    1 Country A 10 5 3
    2 Country B 7 8 4
    3 Country C 7 3 9
    4 Country D 5 4 6
    5 Country E 5 4 3
    6 Country F 3 4 0
    6 Country G 3 4 0
    8 Country H 0 3 2

    Guys please help me..

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,598

    Re: Olympic Medal Table Ranking Formula

    Why don't you introduce a helper column with a pseudo-points value of 1000*gold + silver + bronze/1000, and use that to sort your table?

    Hope this helps.

    Pete

  3. #3
    Forum Expert Bob Phillips's Avatar
    Join Date
    09-03-2005
    Location
    Wessex
    MS-Off Ver
    Office 2003, 2010, 2013, 2016, 365
    Posts
    3,284

    Re: Olympic Medal Table Ranking Formula

    Try

    =SUMPRODUCT(--($C$2:$C$9*10000+$D$2:$D$9*100+$E$2:$E$9>=C2*10000+D2*100+E2))

  4. #4
    Registered User
    Join Date
    07-30-2012
    Location
    Sri Lanka
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: Olympic Medal Table Ranking Formula

    @ Pete_UK

    Oh.. thanx a lot.. Ya dat works well.. But if there's any way of doing it without using an extra column please tell me... I'm wondering a way using IF(), RANK(), SUMPRODUCT() & etc..

    Anyways, thanx a lot 4 da quick help !

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

    Re: Olympic Medal Table Ranking Formula

    I used this formula for ranking, see attached

    =COUNTIF(C:C,">"&C3)+COUNTIFS(C:C,C3,D:D,">"&D3)+COUNTIFS(C:C,C3,D:D,D3,E:E,">"&E3)+1
    Attached Files Attached Files
    Last edited by daddylonglegs; 07-31-2012 at 06:08 AM.
    Audere est facere

  6. #6
    Registered User
    Join Date
    07-30-2012
    Location
    Sri Lanka
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: Olympic Medal Table Ranking Formula

    Thanx a lot.. ya dat works too... I was searching for this sort of formula.. Thanx !!

  7. #7
    Forum Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,451

    Re: Olympic Medal Table Ranking Formula

    @ JChamz

    Based on your last post it seems that you are satisfied with the solution(s) you've received but you haven't marked your thread as SOLVED. I'll do that for you now but please keep in mind for your future threads that Rule #9 requires you to do that yourself. If your problem has not been solved you can use Thread Tools (located above your first post) and choose "Mark this thread as unsolved".
    Thanks.

    Also, as a new member of the forum, you may not be aware that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of those who helped.

  8. #8
    Registered User
    Join Date
    07-10-2014
    Location
    Sarawak
    MS-Off Ver
    2010
    Posts
    1

    Re: Olympic Medal Table Ranking Formula

    Daddylonglegs!

    Thanks!
    It is what I have been searching for. Can you or anyone explain the formula please?

  9. #9
    Registered User
    Join Date
    12-21-2017
    Location
    Kathmandu
    MS-Off Ver
    2013
    Posts
    1

    Arrow Re: Olympic Medal Table Ranking Formula

    this formula too helped me. Thanks Man.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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