+ Reply to Thread
Results 1 to 5 of 5

Rank formula needed

  1. #1
    Registered User
    Join Date
    12-16-2017
    Location
    Somerset, England
    MS-Off Ver
    Microsoft Excel 2010
    Posts
    60

    Rank formula needed

    Evening again guys,

    Unfortunetely, this is my second question in two days as my latest project has me visiting some formulas that I'm not particularly familiar with.

    I need to rank a team based upon its score in one column and if this is the same score as another team, then the deciding factor is then what each team scored in another column. I am aware that there are a few ways to do this, however, I also need the same formula to ignore blank cells so that a team that did not enter does not receive any points.

    Hopefully the attached spreadsheet shows what I mean.

    Thanks again for the help.

    TJ
    Attached Files Attached Files

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

    Re: Rank formula needed

    Try this formula in I2 copied down

    =IF(H2=0,"",RANK(H2,H$2:H$7)+COUNTIFS(H$2:H$7,H2,E$2:E$7,">"&E2))
    Audere est facere

  3. #3
    Registered User
    Join Date
    12-16-2017
    Location
    Somerset, England
    MS-Off Ver
    Microsoft Excel 2010
    Posts
    60

    Re: Rank formula needed

    Fantastic! Solves the problem fantastically!

    Have to same I'm loving the help on this forum!

    Thanks

    TJ

  4. #4
    Registered User
    Join Date
    12-16-2017
    Location
    Somerset, England
    MS-Off Ver
    Microsoft Excel 2010
    Posts
    60

    Re: Rank formula needed

    Morning all,

    I have just been doing final testing and realised that although the above formula works perfectly, it inadvertently means that another formula doesn't work as when two scores are exactly the same in both columns meaning that they are both ranked as 1st (which is fine), the next team is ranked as 3rd and not second.

    When two teams score the same number of points there position is then decided on the number of goals that they score which the above formula does perfectly, i still need this to work, however, if two teams score the same number of points AND score the same number of goals, they would rightfully both be awarded 1st place which is what i would want, however, the next highest scoring team should then be placed as 2nd and not as 3rd

    I hope that makes sense.


    TJ

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

    Re: Rank formula needed

    That complicates the calculation a little but you can use this "array formula" in I2

    =IF(H2=0,"",SUM(IF(FREQUENCY(IF(H$2:H$7*1000+E$2:E$7>H2*1000+E2,H$2:H$7*1000+E$2:E$7),H$2:H$7*1000+E$2:E$7),1))+1)

    confirm with CTRL+SHIFT+ENTER

+ 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. Help Needed Percentile rank based off of an array
    By drcline87 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 05-12-2017, 01:36 PM
  2. Replies: 3
    Last Post: 02-08-2016, 06:55 PM
  3. Replies: 1
    Last Post: 01-11-2016, 02:31 PM
  4. Replies: 0
    Last Post: 01-01-2016, 05:06 PM
  5. [SOLVED] forcing a rank on 1 through 5 (no dups) using the rank formula in Excel
    By denver1717 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 04-22-2015, 08:28 AM
  6. [SOLVED] RANK formula cannot rank duplicates
    By unpluggedmusic in forum Excel General
    Replies: 5
    Last Post: 10-13-2012, 12:59 PM
  7. Formula to Rank and populate values base don Rank
    By Excel Dumbo in forum Excel General
    Replies: 3
    Last Post: 10-09-2012, 02:02 AM

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