+ Reply to Thread
Results 1 to 19 of 19

[SOLVED] Number Ranking Issue

  1. #1
    Registered User
    Join Date
    02-25-2010
    Location
    Moncton, NB Canada
    MS-Off Ver
    Excel 2003
    Posts
    10

    [SOLVED] Number Ranking Issue

    Hey Gang,
    I am using Excel 2003 and I created a sports pool spreadsheet. I am trying to associate the top two points in a range of 20 numbers with a corresponding range of 20 names.
    Example

    Cell A10:A29 is where the names are listed.
    Cells AT10:AT29 have the total points

    Example:
    A AT
    10 Todd 50
    11 Sherry 80
    12 Ashley 92
    13 Trent 9
    14 Kayla 4


    This is what Im looking for:
    1st formula answer = Ashley
    2nd formula answer = Sherry

    Ive been messing with the match function with no luck.
    Any help would be appreciated.

    Hoping someone can help a newbie out!
    Last edited by TMelanson; 02-26-2010 at 10:03 AM. Reason: Policy

  2. #2
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: Need help with a UFC Pool Spreadsheet

    Your post does not comply with Rule 1 of our Forum RULES. Your post title should accurately and concisely describe your problem, not your anticipated solution. Use terms appropriate to a Google search. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will be addressed according to the OP's experience in the forum: If you have less than 10 posts, expect (and respond to) a request to change your thread title. If you have 10 or more posts, expect your post to be locked, so you can start a new thread with an appropriate title.
    To change a Title on your post, click EDIT then Go Advanced and change your title, if 2 days have passed ask a moderator to do it for you.
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

  3. #3
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Need help with a UFC Pool Spreadsheet

    Assuming you might have people with the same highest points..then it is not just a simple single formula solution....

    In a new column, say AU10, enter:

    =RANK($AT10,$AT$10:$AT$29)+COUNTIF($AT$10:$AT10,$AT10)-1

    and copy down.

    This lists the rankings in order without duplicating rank number


    then use this formula:

    =INDEX($A$10:$A$29,MATCH(ROWS($A$1:$A1),$AU$10:$AU$29,0)) to get first top rank, and copy down to next row to get next top rank, whether it is of the same score or next highest.
    Last edited by NBVC; 02-25-2010 at 04:57 PM.
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  4. #4
    Registered User
    Join Date
    02-25-2010
    Location
    Moncton, NB Canada
    MS-Off Ver
    Excel 2003
    Posts
    10

    Re: Number Ranking Issue

    NBVC,
    It worked perfectly!
    Thank you so much for your quick resolution!

  5. #5
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Number Ranking Issue

    You are welcome and thanks for taking the time to read and comply with the rules.

  6. #6
    Registered User
    Join Date
    02-25-2010
    Location
    Moncton, NB Canada
    MS-Off Ver
    Excel 2003
    Posts
    10

    Re: Number Ranking Issue

    NBVC,
    The calculation worked initially, but if I change some of the data that changes the points, I am getting #REF! as a result

  7. #7
    Registered User
    Join Date
    02-25-2010
    Location
    Moncton, NB Canada
    MS-Off Ver
    Excel 2003
    Posts
    10

    Re: Number Ranking Issue

    Let me be more specific, the RANK formula is working fine. Its the INDEX formula throwing the #REF!

  8. #8
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Number Ranking Issue

    What data did you change exactly...

    What is the formula you are using?

    Perhaps attach sample workbook.

  9. #9
    Registered User
    Join Date
    02-25-2010
    Location
    Moncton, NB Canada
    MS-Off Ver
    Excel 2003
    Posts
    10

    Re: Number Ranking Issue

    My internet connection here at work is pretty bad... The window for adding attachments will not open for me. Just times out. Ill try it again when I get home.
    Thanks

  10. #10
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Number Ranking Issue

    In this formula:

    =INDEX($A$10:$A$29,MATCH(ROWS($A$1:$A1),$AU$10:$AU$29,0))

    the A10:A29 is the range containing the names...

    The AU10:AU29 is the corresponding Rank Formula range...

    The Rows($A$1:$A1) returns 1 and as you drag down it returns 2, 3, etcc...

    Make sure the first formula has that Rows() function as written above...

    Reference error means you are referencing something incorrectly or it doesn't exist...

    Just check the formula again..

  11. #11
    Registered User
    Join Date
    02-25-2010
    Location
    Moncton, NB Canada
    MS-Off Ver
    Excel 2003
    Posts
    10

    Re: Number Ranking Issue

    "The Rows($A$1:$A1) returns 1 and as you drag down it returns 2, 3, etcc...

    Do both of the 1's here change per cell?
    Ive attached the spreadsheet.

  12. #12
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Number Ranking Issue

    only the 2nd "1" changes. Note it doesn't have the $ in front, which is used to "freeze" a row or column, so when you drag down the formula you reference the same location all the time.. without the $ you reference the relative location...

    BTW... no attachment....

  13. #13
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Number Ranking Issue

    Okay.. saw that you put the attachment in your original post...

    Maybe my fault, but the ranges in the Index and Match functions weren't of the same size:

    Try:

    =INDEX($A$10:$A$29,MATCH(ROWS($A$1:$A1),$AU$10:$AU$29,0))

    and to not sure 0's when no name in column A... change to:

    =IF(A10="","",INDEX($A$10:$A$29,MATCH(ROWS($A$1:$A1),$AU$10:$AU$29,0)))

    and copy down.

  14. #14
    Registered User
    Join Date
    02-25-2010
    Location
    Moncton, NB Canada
    MS-Off Ver
    Excel 2003
    Posts
    10

    Re: Number Ranking Issue

    Thats great, Thank You! I'm going to be hiding those columns anyway.
    One last question, with the possibility of more than one person getting the same score, is there a check that can be done to see if more than one person has a same high score?

  15. #15
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Number Ranking Issue

    Something like this in the next column:

    =COUNTIF($AT$10:$AT$29,AT10)

    copied down will tell you how many repeats of the same score as the one in that same row there are. Is that what you meant?

  16. #16
    Registered User
    Join Date
    02-25-2010
    Location
    Moncton, NB Canada
    MS-Off Ver
    Excel 2003
    Posts
    10

    Re: Number Ranking Issue

    Yes but just for the high score duplicates.
    Would it be easier to somehow add the points to the end of the persons name?

  17. #17
    Registered User
    Join Date
    02-25-2010
    Location
    Moncton, NB Canada
    MS-Off Ver
    Excel 2003
    Posts
    10

    Re: Number Ranking Issue

    Sorry, maybe this may be easier..
    Cell B34 and B35 have the winner and runner up.
    Is there a way to add the score to the end of the name at this location?
    This way I can visually see the tie and adjust accordingly

  18. #18
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Number Ranking Issue

    You mean in B34?:

    =AV10&" "&VLOOKUP(AV10,$A$10:$AT$29,46,0)

    copied down...

    You can also separate that Vlookup into next cell if you want separate cells for name and score.
    Last edited by NBVC; 02-25-2010 at 06:00 PM.

  19. #19
    Registered User
    Join Date
    02-25-2010
    Location
    Moncton, NB Canada
    MS-Off Ver
    Excel 2003
    Posts
    10

    Re: Number Ranking Issue

    YES!!!!
    Thats it!

    Thank you so much for your help and time.
    I truly appreciate 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