+ Reply to Thread
Results 1 to 6 of 6

Unique list in alphabetical order of 2 columns

  1. #1
    Forum Contributor
    Join Date
    05-16-2012
    Location
    Latina, ITALY
    MS-Off Ver
    Excel 2010--2016
    Posts
    947

    Unique list in alphabetical order of 2 columns

    Good evening as the title suggests I would combine 2 columns A and D
    and obtain a single unique list in alphabetical order.
    Expected result in column H
    Thank you
    Attached Files Attached Files

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2404 Win 11 Home 64 Bit
    Posts
    23,864

    Re: Unique list in alphabetical order of 2 columns

    Using Power Query. Load both tables to PQ, Append one to the other. Filter for nulls. Click on Remove Rows and select Remove Duplicates. Sort Ascending. Close and Load to Excel. See attached file to review.
    Attached Files Attached Files
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  3. #3
    Forum Contributor
    Join Date
    05-16-2012
    Location
    Latina, ITALY
    MS-Off Ver
    Excel 2010--2016
    Posts
    947

    Re: Unique list in alphabetical order of 2 columns

    Grazie. Cercavo una formula, se possibile

  4. #4
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: Unique list in alphabetical order of 2 columns

    Ciao,

    First, go to Name Manager and make the following definitions:

    Name: Range1
    Refers to: =Foglio1!$A$2:$A$20

    Name: Range2
    Refers to: =Foglio1!$D$2:$D$20

    (Or whatever happen to be the relevant ranges in question. Note, however, that Range1 and Range2 must comprise the same number of rows, as in your example.)

    Name: Range_Join
    Refers to: =CHOOSE({1,2},Range1,Range2)

    Name: Arry1
    Refers to: =ROW(INDIRECT("1:"&2*ROWS(Range1)))

    Name: Row_Arry
    Refers to: =1+INT((Arry1-1)/2)

    Name: Col_Arry
    Refers to: =1+MOD((Arry1-1),2)

    Name: Main_Arry
    Refers to: =INDEX(Range_Join,N(IF(1,Row_Arry)),N(IF(1,Col_Arry)))

    After which, in H2, array formula**:

    =IFERROR(INDEX(Main_Arry,MATCH(LARGE(IF(FREQUENCY(IF(Range_Join<>0,MATCH(Range_Join,Main_Arry,0)),Arry1),MMULT(0+(Main_Arry<=TRANSPOSE(Main_Arry)),Arry1^0)),ROWS(A$2:A2)),IF(FREQUENCY(IF(Range_Join<>0,MATCH(Range_Join,Main_Arry,0)),Arry1),MMULT(0+(Main_Arry<=TRANSPOSE(Main_Arry)),Arry1^0)),0)),"")

    and copied down until you start to get blanks for the results.

    Notes:

    1) The above set-up assumes that zero is not a valid return within the ranges specified.
    2) If you are using an Italian language version of Excel then, as well as translating all formulas, note that the separator within the array constant

    =CHOOSE({1,2},Range1,Range2)

    may well need amending, i.e. from a comma to (I believe) a backslash:

    =SCEGLI({1\2};Range1;Range2)

    Saluti


    **Array formulas are not entered in the same way as 'standard' formulas. Instead of pressing just ENTER, you first hold down CTRL and SHIFT, and only then press ENTER. If you've done it correctly, you'll notice Excel puts curly brackets {} around the formula (though do not attempt to manually insert these yourself).
    Click * below if this answer helped

    Advanced Excel Techniques: http://excelxor.com/

  5. #5
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,577

    Re: Unique list in alphabetical order of 2 columns

    ARRAY formula in F2 then drag down till blank row appears. Pl see file.

    Please Login or Register  to view this content.
    Pl note
    Array formula should be confirmed with Ctrl+Shift+Enter keys together.
    If answere is satisfactory press * to add reputation.

  6. #6
    Forum Contributor
    Join Date
    05-16-2012
    Location
    Latina, ITALY
    MS-Off Ver
    Excel 2010--2016
    Posts
    947

    Re: Unique list in alphabetical order of 2 columns

    Sorry for the delay I had the computer broken.
    Thank you all for your help

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 5
    Last Post: 09-04-2016, 07:09 AM
  2. [SOLVED] Return list of dates by month from a list in alphabetical order
    By jeffreybrown in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-01-2015, 03:21 AM
  3. Replies: 0
    Last Post: 02-15-2014, 10:30 AM
  4. Code to populate combo box with unique entries from column (in alphabetical order)
    By Nitefox in forum For Other Platforms(Mac, Google Docs, Mobile OS etc)
    Replies: 34
    Last Post: 01-26-2014, 03:05 AM
  5. Pull Unique Values from a List and Automatically Sort in Alphabetical Order
    By Aimee S. in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-29-2013, 09:43 AM
  6. Replies: 10
    Last Post: 06-13-2013, 04:12 PM
  7. List in alphabetical order.
    By isameer in forum Excel General
    Replies: 4
    Last Post: 02-13-2013, 07:34 AM

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