Results 1 to 6 of 6

Thread: Create a sorted list of uniques based on 2 columns

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Junior Member
    Join Date
    Jun 2015
    Posts
    9
    Rep Power
    0

    Create a sorted list of uniques based on 2 columns

    Hi all,

    I have managed to come up with a formula which extracts a list of uniques values(text), which is the following formula (where CommData[Driver] is List1 and PaxData[Driver] is List2):

    Code:
    =IFERROR(IFERROR(INDEX(CommData[Driver],MATCH(0,COUNTIF($B$4:B4,CommData[Driver]),0)),INDEX(PaxData[Driver],MATCH(0,COUNTIF($B$4:B4,PaxData[Driver]),0))),"")
    Now this formula just returns the unique values but I'd like them to be returned in a sorted(A-Z) list.

    All ideas are welcome!

    Thanks
    Auckland, NZ

  2. #2
    Junior Member
    Join Date
    Jun 2015
    Posts
    9
    Rep Power
    0
    Anyone?
    Auckland, NZ

  3. #3
    Administrator Admin's Avatar
    Join Date
    Mar 2011
    Posts
    1,123
    Rep Power
    10
    Cheers !

    Excel Range to BBCode Table
    Use Social Networking Tools If You Like the Answers !

    Message to Cross Posters

    @ Home - Office 2010/2013/2016 on Win 10 (64 bit); @ Work - Office 2016 on Win 10 (64 bit)

  4. #4
    Junior Member
    Join Date
    Jun 2015
    Posts
    9
    Rep Power
    0
    Hi Admin,

    Thanks for your reply,
    I came across this article, but I couldn't quite figure out how to use this one for 2 lists. Frankly, I don't completely understand the formula in the article and don't see where the formula actually sorts. Also, the formula in the article sorts the complete list, instead of returning unique values.

    Any help would be highly appreciated!

    Thanks,
    Auckland, NZ

  5. #5
    Administrator Admin's Avatar
    Join Date
    Mar 2011
    Posts
    1,123
    Rep Power
    10
    I haven't go through the formula yet. I guess this is a very expensive formula, so my question why don't you sort your source range, so that your original formula will return in sorted order?
    Cheers !

    Excel Range to BBCode Table
    Use Social Networking Tools If You Like the Answers !

    Message to Cross Posters

    @ Home - Office 2010/2013/2016 on Win 10 (64 bit); @ Work - Office 2016 on Win 10 (64 bit)

  6. #6
    Junior Member
    Join Date
    Jun 2015
    Posts
    9
    Rep Power
    0
    That is indeed correct,

    I could sort the source, but since the source is in 2 ranges, it will not return completely sorted. I will look like this:

    AA (List 1 Data)
    BB
    CC
    FF
    GG
    KK
    OO
    ZZ
    AA (where data from list 2 starts being returned)
    BB
    CC
    DD
    XX

    Anyways, I'm not really in need anymore, since I found a work around. See, the INDEX list created with above formula is returned for the purpose of selecting what I want to analyze in a table, where I use a formula quite like the one in the article you mentioned, which uses the INDEX function to return a sorted list to another location.



    But would be nice if I know how to get this to work, I'm pretty curious if it is possible.

    Cheers,
    Auckland, NZ

Similar Threads

  1. Replies: 3
    Last Post: 11-16-2013, 02:05 AM
  2. Replies: 14
    Last Post: 10-23-2013, 01:24 PM
  3. Compare two columns to sheet3 based on condition
    By vengal in forum Excel Help
    Replies: 2
    Last Post: 09-14-2013, 11:15 AM
  4. Replies: 5
    Last Post: 12-05-2012, 03:01 AM
  5. Create list with arrays
    By PcMax in forum Excel Help
    Replies: 2
    Last Post: 04-10-2012, 11:05 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •