+ Reply to Thread
Results 1 to 4 of 4

Unique data list covering multiple columns.

  1. #1
    Registered User
    Join Date
    11-25-2018
    Location
    Australia
    MS-Off Ver
    2016
    Posts
    4

    Unique data list covering multiple columns.

    Hi, I hoping someone could help me,
    I am trying to create a unique list from 5 columns, I need it to only list each name once and remove any blanks cells, I have found a formula online which works exactly the way i need it to.

    =IFERROR(IFERROR(IFERROR(INDEX(Fighters!$H$2:$H$250, MATCH(0, COUNTIF($AD$5:AD5, Fighters!$H$2:$H$250)+(Fighters!$H$2:$H$250=""), 0)), INDEX(Fighters!$I$2:$I$250, MATCH(0, COUNTIF($AD$5:AD5, Fighters!$I$2:$I$250)+($B$2:$B$7=""), 0))), INDEX(Fighters!$J$2:$J$250, MATCH(0, COUNTIF($AD$5:AD5, Fighters!$J$2:$J$250)+(Fighters!$J$2:$J$250=""), 0))), "")

    I am able to adjusted the references to and get this to work in my worksheet perfectly BUT what I need to know is how to add additional columns to the formula as you can see this is created for 3 columns. The main part of this that I have names down each row and each name can appear in any of the 5 columns.



    Thanks

  2. #2
    Forum Expert XLent's Avatar
    Join Date
    10-13-2010
    Location
    Northumberland, UK
    MS-Off Ver
    various
    Posts
    2,704

    Re: Unique data list covering multiple columns.

    Attached is one approach to this kind of issue -- easy enough to adapt for range, but it is Volatile given use of INDIRECT... you can use a helper cell to remove the volatililty (or duplicate the INDEX calls) if needed.

    In the example the data range is in A2:F11, with first formula in H2, copied down, to return unique entries (of any type)

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Attached Files Attached Files

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

    Re: Unique data list covering multiple columns.

    Hi,

    Assuming data in A1:E15, this array formula** in G1 (used to count the expected number of returns):

    =SUM(IF(A1:E15<>"",1/COUNTIF(A1:E15,A1:E15)))

    Then this array formula** in G2:

    =IF(ROWS(G$1:G1)>G$1,"",INDIRECT(TEXT(MIN(IF(A$1:E$15<>"",IF(1-ISNUMBER(MATCH(A$1:E$15,G$1:G1,0)),10^5*ROW(A$1:E$15)+COLUMN(A$1:E$15)))),"R0C00000"),0))

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

    The above is volatile, though more flexible than the version you posted, in that it can handle large ranges without the addition of multiple clauses per column referenced.

    If you have an Office 365 subscription then you can also try the shorter, non-volatile array formula** in G2:

    =TRIM(LEFT(TEXTJOIN(REPT(" ",99),1,IF((A$1:E$15<>"")*(1-ISNUMBER(MATCH(A$1:E$15,G$1:G1,0))),A$1:E$15,"")),99))

    though I have personally found TEXTJOIN to be very 'buggy' on my machine, sometimes producing correct results, sometimes not.

    Regards


    **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/

  4. #4
    Registered User
    Join Date
    11-26-2018
    Location
    chicago
    MS-Off Ver
    2007
    Posts
    1

    Re: Unique data list covering multiple columns.

    Select the range of cells, or ensure that the active cell is in a table.
    On the Data tab, click Remove Duplicates (in the Data Tools group).
    Do one or more of the following: ...
    Click OK, and a message will appear to indicate how many duplicate values were removed

    Tell me if this works for you.

+ 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. [SOLVED] Unique List from Multiple Columns
    By AliGW in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-07-2017, 11:44 AM
  2. Unique list - multiple columns
    By pauldaddyadams in forum Excel General
    Replies: 19
    Last Post: 04-20-2015, 05:20 PM
  3. Finding Unique List of Data pulled from multiple columns (Plus sum)
    By emdoak in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 02-09-2015, 10:45 AM
  4. Conditional Formatting for cell range covering multiple rows and columns
    By edp428 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 11-09-2013, 02:02 PM
  5. [SOLVED] Create list returning unique criteria covering several columns using arrays
    By joannelittell in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 05-24-2013, 04:37 PM
  6. [SOLVED] Create list returning unique criteria covering several columns
    By joannelittell in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 05-23-2013, 04:27 PM
  7. [SOLVED] Compare multiple column of data and list out common and unique component in adj columns
    By kuansheng in forum Excel Formulas & Functions
    Replies: 15
    Last Post: 02-01-2006, 06:55 PM

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