+ Reply to Thread
Results 1 to 6 of 6
  1. #1
    Registered User
    Join Date
    08-14-2009
    Location
    Birmingham, England
    MS-Off Ver
    Excel 2007
    Posts
    22

    Sorting table of data into order

    I am having trouble with the attached. I need to sort the data in table on the right based on the total column into the blank table on the left. Im sure INDEX and VLOOKUP is what I should be using, however can't seem to get the right formular nor find the answer in the forum. Any ideas?

    Thanks in advance
    Attached Files Attached Files

  2. #2
    Forum Moderator DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Suffolk, UK
    MS-Off Ver
    2002, 2007 & 2010
    Posts
    21,379

    Re: Sorting table of data into order

    What (if anything) determines who should appear first in the case of duplicate points - eg Ronald & Mildred - given these are tied is the order then determined by other point values ?

  3. #3
    Registered User
    Join Date
    08-14-2009
    Location
    Birmingham, England
    MS-Off Ver
    Excel 2007
    Posts
    22

    Re: Sorting table of data into order

    My appologies, I neglected to mention this. In the event of total scores being equal, thier place should be determined by alphabetical order of names.

  4. #4
    Forum Moderator DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Suffolk, UK
    MS-Off Ver
    2002, 2007 & 2010
    Posts
    21,379

    Re: Sorting table of data into order

    Hmm... alphabetical actually makes things a little messy...

    What you could do - based on your sample file and assuming XL2007:

    Code:
    V3: =1+COUNTIFS($O$3:O$9,$O3,$N$3:$N$9,"<"&$N3)
    copied down
    then for your left table

    Code:
    C3: =INDEX($N$3:$N$9,MATCH(1,INDEX(($O$3:$O$9=$D3)*($V$3:$V$9=COUNTIF($D$3:$D3,$D3)),0),0))
    copied down to C9
    
    D3:
    =LARGE($O$3:$O$9,$B3)
    copied down to D9
    
    E3:
    =INDEX(P$3:P$9,MATCH($C3,$N$3:$N$9,0))
    copied across to J3
    copied down to E9:J9
    Does that help ?

    (there will be better methods I'm sure...)

  5. #5
    Forum Moderator DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Suffolk, UK
    MS-Off Ver
    2002, 2007 & 2010
    Posts
    21,379

    Re: Sorting table of data into order

    Actually, in hindsight, if you opt to use helper formulae in column V you could just use:

    Code:
    V3:
    =1+COUNTIF($O$3:$O$9,">"&$O3)+COUNTIFS($O$3:$O$9,$O3,$N$3:$N$9,"<"&$N3)
    copied down to V9
    Then

    Code:
    C3: 
    =INDEX(N$3:N$9,MATCH($B3,$V$3:$V$9,0))
    applied to entire matrix C3:J9

  6. #6
    Registered User
    Join Date
    08-14-2009
    Location
    Birmingham, England
    MS-Off Ver
    Excel 2007
    Posts
    22

    Re: Sorting table of data into order

    This works a treat! thank you for your help

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.2.0