+ Reply to Thread
Results 1 to 5 of 5

Automatic Records Table Sort?

  1. #1
    Registered User
    Join Date
    01-16-2011
    Location
    new york
    MS-Off Ver
    Excel 2003
    Posts
    10

    Automatic Records Table Sort?

    How can I have the records table at the top left automatically sort by points? Example: Benny would be in 4th place because of the amount of points he has related to others.
    Attached Files Attached Files
    Last edited by ojstimpy; 02-03-2011 at 06:07 PM.

  2. #2
    Valued Forum Contributor
    Join Date
    10-13-2010
    Location
    Sunderland, England
    MS-Off Ver
    Excel 2007 (Home) / 2003 (Work)
    Posts
    740

    Re: Automatic Records Table Sort?

    It's not super elegant, but it'll do the job.

    This will sort the table by points, then (if a tie) win %, then goal difference, then goals scored. Note the original table has been moved to rows 81-88 (and is probably best hidden), then a new table added which uses VLOOKUPs to pull the data back from the original with the help of a new column (A).

    I hope this helps.
    Attached Files Attached Files

  3. #3
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Automatic Records Table Sort?

    BrokenBiscuit's solution is good but will break down if there is a tie with the points.

    Using BB's spreadsheet, in AK82 dragged down
    =RANK(N82,$N$82:$Q$88)+COUNTIF($N$82:N82,N82)-1
    This gives a unique ranked number to each individual. In case of a tie, the first person gets the higher number.

    Then in C15 dragged down
    =INDEX($C$82:$C$88,MATCH(ROW(A1),$AK$82:$AK$88,0))
    works like VLOOKUP but less restrictive (no longer need the values BB put into A82:A88.

    Then replace the formulas in N15 dragged down
    =VLOOKUP($C15,$C$82:$AI$88,COLUMN()-2,FALSE)
    Does that work for you?
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  4. #4
    Registered User
    Join Date
    01-16-2011
    Location
    new york
    MS-Off Ver
    Excel 2003
    Posts
    10

    Re: Automatic Records Table Sort?

    Thank you so very much both you guys. Question, any way to preserve the individual colors of the names?

  5. #5
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Automatic Records Table Sort?

    No easy way. It would require some VBA programming.

+ 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