+ Reply to Thread
Results 1 to 6 of 6

Unique entries formula from 2 lists

  1. #1
    Valued Forum Contributor
    Join Date
    04-21-2005
    Location
    Southern England
    MS-Off Ver
    Excel for Office 365
    Posts
    1,702

    Unique entries formula from 2 lists

    Hi,

    I have two lists and I would like a formula which only returns unique values – similar to an advanced formula. Is this possible?

    In the attached example my data is in columns C and D and I would like a formula in column E if possible. I need it to ignore the capitals. E.g. BLACKBURN and Blackburn appears in each list but I would only want one instance pulled through in column E.

    Currently in column E I have the desired result.
    Attached Files Attached Files

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

    Re: Unique entries formula from 2 lists

    Hi,

    And you're also wanting the returned list to be in alphabetical order?

    Regards
    Click * below if this answer helped

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

  3. #3
    Valued Forum Contributor
    Join Date
    04-21-2005
    Location
    Southern England
    MS-Off Ver
    Excel for Office 365
    Posts
    1,702

    Re: Unique entries formula from 2 lists

    Hi,

    No this wouldnt have to be, just a nice to have

  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 entries formula from 2 lists

    This set-up will return a unique, alphabetically-sorted list from any number of columns, not just two.

    First go to Name Manager (Formulas tab) and define the following:

    Name: Range1
    Refers to: =$C$61:$D$75

    (Or whatever happens to be the range in question. You can err on a larger range to account for future additions to that range if you want, e.g. $C$61:$D$150: the formula is designed to ignore blanks. However, since this set-up uses array formulas, I would strongly recommend not making it too large (and certainly not the entire column).)

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

    Name: Arry2
    Refers to: =INT((Arry1-1)/COLUMNS(Range1))

    Name: Arry3
    Refers to: =MOD(Arry1-1,COLUMNS(Range1))

    Exit Name Manager.

    Enter this (non-array) formula in a cell somewhere, e.g. E59:

    =SUMPRODUCT((Range1<>"")/COUNTIF(Range1,Range1&""))

    Then enter this array formula** in your first cell of choice (e.g. E61):

    =IF(ROWS($1:1)>$E$59,"",PROPER(INDEX(T(OFFSET(INDEX(Range1,1,1),Arry2,Arry3,,)),MATCH(SMALL(IFERROR(IF(FREQUENCY(IF(Range1<>"",MATCH(Range1,T(OFFSET(INDEX(Range1,1,1),Arry2,Arry3,,)),0)),Arry1),COUNTIF(Range1,"<"&T(OFFSET(INDEX(Range1,1,1),Arry2,Arry3,,)))+Arry1/10^9,""),""),ROWS($1:1)),COUNTIF(Range1,"<"&T(OFFSET(INDEX(Range1,1,1),Arry2,Arry3,,)))+Arry1/10^9,0))))

    Copy down until you start to get blanks for the results.

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

  5. #5
    Valued Forum Contributor TheCman81's Avatar
    Join Date
    11-06-2012
    Location
    Edinburgh, UK
    MS-Off Ver
    Excel 2003, 2007, 2010, 2013
    Posts
    346

    Re: Unique entries formula from 2 lists

    The attached arry formula will work for your example. As this is an array formula you need to enter it with Ctrl Shift Ent (Not sorted alphabetically)

    Extract Unique values from multiple columns v2.xlsx
    Excel Guru in the making

    <----------If the question has been answered to your satisfication please click the Add Repuation star to the left

  6. #6
    Valued Forum Contributor
    Join Date
    04-21-2005
    Location
    Southern England
    MS-Off Ver
    Excel for Office 365
    Posts
    1,702

    Re: Unique entries formula from 2 lists

    Thanks all - sorry I have not replied till now! I thought I had

+ 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. Formula for finding unique data for lists
    By alcorp in forum Excel General
    Replies: 15
    Last Post: 07-21-2014, 03:49 PM
  2. [SOLVED] Formula request for unique entries
    By mso3 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 07-08-2014, 08:41 PM
  3. Replies: 3
    Last Post: 03-17-2014, 09:59 PM
  4. Non-array formula listing of unique entries in a DB field
    By quatrecouleurs in forum Tips and Tutorials
    Replies: 0
    Last Post: 05-11-2010, 09:45 AM
  5. Formula to return Unique Entries Only
    By hanksteph in forum Excel Formulas & Functions
    Replies: 30
    Last Post: 11-21-2008, 11:22 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