+ Reply to Thread
Results 1 to 6 of 6

Problematic Auto-sort

Hybrid View

  1. #1
    Registered User
    Join Date
    12-14-2012
    Location
    Dallas, Tx
    MS-Off Ver
    Excel 2010
    Posts
    15

    Problematic Auto-sort

    Thanks for the help. I'm trying to auto-sort based on a data table.

    In the attached sheet I've got a row of names (G1:AE1) and they have various types (AA, BB, CC, DD) and I'd like them sorted by the values in row 29, and for that to appear in (AA)A2:A12, (BB)B2:B12. The type is static, so if you help with the formula I can fix it for type (if I understand it).

    I'd also like it to auto sort, so I don't have to sort each time the data repopulates.

    Is this possible?

    Thanks,

    uttuck
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    01-15-2007
    Location
    Brisbane, Australia
    MS-Off Ver
    2007
    Posts
    6,591

    Re: Problematic Auto-sort

    Hi

    A2: =IFERROR(SMALL(IF(RIGHT($G$1:$AE$1,2)=A$1,$G$29:$AE$29,""),ROW()-1),""). This formula is array entered (ctrl, shift, enter).

    Copy down / across as required.

    rylo

  3. #3
    Registered User
    Join Date
    12-14-2012
    Location
    Dallas, Tx
    MS-Off Ver
    Excel 2010
    Posts
    15

    Re: Problematic Auto-sort

    Rylo,

    Thanks, so close. Everything is right, except this displays their score, and not their name. Is there a way to display the name (from cells G1) instead of the score (from G29) while keeping everything else the same?

    Thanks again, that is a really impressive formula.

    uttuck

  4. #4
    Registered User
    Join Date
    12-14-2012
    Location
    Dallas, Tx
    MS-Off Ver
    Excel 2010
    Posts
    15

    Re: Problematic Auto-sort

    And is it possible to sort from Big to Small, not small to big? Thanks so much.

    uttuck

  5. #5
    Forum Expert
    Join Date
    01-15-2007
    Location
    Brisbane, Australia
    MS-Off Ver
    2007
    Posts
    6,591

    Re: Problematic Auto-sort

    Hi

    Sorting from big to small is easy. Change the SMALL to LARGE.

    Try this (array entered) to get the name.

    =IFERROR(INDEX($1:$1,SUMPRODUCT(--($G$29:$AE$29=LARGE(IF(RIGHT($G$1:$AE$1,2)=A$1,$G$29:$AE$29,""),ROW()-1)),--(RIGHT($G$1:$AE$1,2)=A$1),COLUMN($G$1:$AE$1))),"")
    rylo

  6. #6
    Registered User
    Join Date
    12-14-2012
    Location
    Dallas, Tx
    MS-Off Ver
    Excel 2010
    Posts
    15

    Re: Problematic Auto-sort

    Thanks so much rylo. Worked like a charm. I really appreciate it. You totally saved me.

    uttuck

+ 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