+ Reply to Thread
Results 1 to 7 of 7

Finding Unique Values across 2 columns

  1. #1
    Forum Contributor
    Join Date
    05-27-2012
    Location
    New Brunswick, Canada
    MS-Off Ver
    Excel 2016
    Posts
    327

    Finding Unique Values across 2 columns

    Column A has the complete list of names.
    Column B has the names of people eligible for a prize.
    Column C - I would like the remaining names from A - so those who would NOT be eligible for a prize.

    Ideally I would like a formula for Column C instead of VBA.

  2. #2
    Forum Expert
    Join Date
    03-20-2015
    Location
    Primarily UK, sometimes NL
    MS-Off Ver
    Work: Office 365 / Home: Office 2010
    Posts
    2,405

    Re: Finding Unique Values across 2 columns

    Put this in C2 and drag down:
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    You'll get a list with names and blanks - sort it to see just the names.
    Does that help?
    Regards,
    Aardigspook

    I recently started a new job so am a bit busy and may not reply quickly. Sorry - it's not personal - I will reply eventually.
    If your problem is solved, please go to 'Thread Tools' above your first post and 'Mark this Thread as Solved'.
    If you use commas as your decimal separator (1,23 instead of 1.23) then please replace commas with semi-colons in your formulae.
    You don't need to give me rep if I helped, but a thank-you is nice.

  3. #3
    Forum Expert
    Join Date
    10-09-2014
    Location
    Newcastle, England
    MS-Off Ver
    2003 & 2013
    Posts
    1,986

    Re: Finding Unique Values across 2 columns

    I think you need an array formula, put this in C1

    Please Login or Register  to view this content.
    Which needs to be entered using Ctrl+Shift+Enter then drag down

    I am however a fraud when it comes to Array Functions and didnt come up with this solution myself but googled it, heres the explanation:
    https://exceljet.net/formula/extract...ms-from-a-list

    It should work though, by making the COUNT list both columns A & B then the winners will appear twice
    If someone has helped you then please add to their Reputation

  4. #4
    Forum Contributor
    Join Date
    05-27-2012
    Location
    New Brunswick, Canada
    MS-Off Ver
    Excel 2016
    Posts
    327

    Re: Finding Unique Values across 2 columns

    Thanks Aardigspook!
    pjwhitfield - that actually gave me #N/A all the way down column C.

  5. #5
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,022

    Re: Finding Unique Values across 2 columns

    If you're still watching... I'd use a different way altogether:

    =IFERROR(INDEX(A:A, SMALL(IF(ISERROR(MATCH($A$2:$A$11, $C$2:$C$6, 0)), (ROW($A$2:$A$11))), ROWS($E$1:E1))),"")

    an array formula. Array Formulae are a little different from ordinary formulae in that they MUST be confirmed in the FIRST CELL ONLY by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. After that, the array can be dragged down as normal, to cover the desired range.

    You will know the array is active when you see curly brackets { } - or "curly braces" for those of you in the USA, or "flower brackets" for those of you in India - appear around the outside of your formula. If you do not use CTRL+SHIFT+ENTER you will (almost always) get an error message or an incorrect answer. Press F2 on that cell and try again.

    Don't type the curly brackets yourself - it won't work...
    Attached Files Attached Files
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  6. #6
    Forum Expert
    Join Date
    03-20-2015
    Location
    Primarily UK, sometimes NL
    MS-Off Ver
    Work: Office 365 / Home: Office 2010
    Posts
    2,405

    Re: Finding Unique Values across 2 columns

    @Wheelie686
    Glad you were happy with what I gave you and thanks for the rep - but I actually recommend you use Glenn's formula above, which removes the need to sort the column later.

    @Glenn
    I knew there would be an array formula to do without the blanks, but I couldn't get my brain in gear - thanks for jumping in.

  7. #7
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,022

    Re: Finding Unique Values across 2 columns

    ...unless the data are so large....

    But we don't know.

+ 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] Finding Unique Values In Multiple Columns and Removing Them
    By gibbsa08 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-21-2015, 10:39 PM
  2. Finding unique groups of values in columns
    By colmoshea in forum Excel Formulas & Functions
    Replies: 14
    Last Post: 12-17-2013, 10:44 AM
  3. Finding Unique Values in two columns
    By pmfresno in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-20-2012, 09:05 AM
  4. Finding Unique Between 2 Columns
    By Andrew.Trevayne in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 09-06-2011, 10:37 AM
  5. Finding Unique Values across four columns.
    By barksmith in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-12-2009, 02:23 PM
  6. Finding Unique Entries Among Two Columns
    By Bob in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 06-23-2006, 08:30 PM
  7. [SOLVED] Finding Unique Entries Among Two Columns
    By Bob in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 06-22-2006, 01: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