+ Reply to Thread
Results 1 to 9 of 9

Compare 2 lists and leave unmatched items

  1. #1
    Forum Contributor
    Join Date
    10-20-2017
    Location
    London
    MS-Off Ver
    2016
    Posts
    108

    Compare 2 lists and leave unmatched items

    Hi,

    I need to compare 2 lists.
    Then I need to match off identical items.
    Then I need to leave any which don't have a 1 to 1 match.

    Can anyone help?
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    11-22-2016
    Location
    Cornwall,UK
    MS-Off Ver
    office 365
    Posts
    4,240

    Re: Compare 2 lists and leave unmatched items

    Unmatched items in column A
    In B4 copy down
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    =IF(COUNTIF($A$4:A4,A4)=1,IF(COUNTIF($C$4:$C$6,A4)=0,A4,""),"")[/FORMULA]
    Unmatched items in column C
    In D4 copy down
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Unique values
    - copy your 2 lists one below the other in the same column
    - Data tab \ Remove duplicates

    RemoveDuplicates.jpg
    Attached Files Attached Files
    Last edited by kev_; 12-09-2017 at 12:19 PM.
    Click *Add Reputation to thank those who helped you. Ask if anything is not clear

  3. #3
    Forum Contributor
    Join Date
    10-20-2017
    Location
    London
    MS-Off Ver
    2016
    Posts
    108

    Re: Compare 2 lists and leave unmatched items

    Quote Originally Posted by kev_ View Post
    Unmatched items in column A
    In B4 copy down
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    =IF(COUNTIF($A$4:A4,A4)=1,IF(COUNTIF($C$4:$C$6,A4)=0,A4,""),"")[/FORMULA]
    Unmatched items in column C
    In D4 copy down
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Unique values
    - copy your 2 lists one below the other in the same column
    - Data tab \ Remove duplicates

    Attachment 551304
    Hi,

    The answer that you have provided is not the one that I was looking for.
    If you look at what IU want my end result to be, it is:

    List 1 List 2
    Apples Pears
    Grapes

    The answer you have provided is:

    List 1 List 2
    Grapes Pears

    We are missing 1 of the apples in List 1.

    Is there any way to fix this?

  4. #4
    Forum Expert José Augusto's Avatar
    Join Date
    10-29-2014
    Location
    Portugal
    MS-Off Ver
    2013-2016
    Posts
    3,329

    Re: Compare 2 lists and leave unmatched items

    Try this
    For list one use in F4:F7 (F3 must be empty)
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    For list two use in G4:G7 (G3 must be empty)
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    See the file for clarification
    Attached Files Attached Files

  5. #5
    Forum Expert
    Join Date
    11-22-2016
    Location
    Cornwall,UK
    MS-Off Ver
    office 365
    Posts
    4,240

    Re: Compare 2 lists and leave unmatched items

    The answer that you have provided is not the one that I was looking for.
    @eazy899
    You saw 2 lists and you made an assumption - which is dangerous with Excel
    You did not read what I wrote.

    The workbook gives you only the unmatched items
    - there are formulas in column B & D as specified my post
    - so the 2 columns are both part of the same list

    For the unique items follow the instructions
    - this is a DIY job
    Last edited by kev_; 12-09-2017 at 02:10 PM.

  6. #6
    Valued Forum Contributor
    Join Date
    10-14-2012
    Location
    Netherlands
    MS-Off Ver
    Excel 2019
    Posts
    353

    Re: Compare 2 lists and leave unmatched items

    I would use Conditional formatting to highlight the matched items.
    Then Sort the entire table on color using AutoFilter.
    Then select the highlighted rows and deleten the rows.
    Then sort the table again to loose the empty rows.
    Attached Files Attached Files
    Last edited by PietBom; 12-10-2017 at 05:13 PM.
    Kind regards,
    Piet Bom

  7. #7
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2404
    Posts
    13,406

    Re: Compare 2 lists and leave unmatched items

    Another try.

    Array enter this in A12 and fill down until you get blanks.

    If you aren’t familiar with array-entered formulas array enter means the formula must be committed from edit mode by simultaneously pressing and holding down Ctrl and Shift while hitting Enter.
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Then array enter this in C12 and fill down until you get blanks.
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Dave

  8. #8
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Cool Re: Compare 2 lists and leave unmatched items

    You can use PowerQuery (Get&Transform) (no formula, no vba)
    Attached Files Attached Files

  9. #9
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2404
    Posts
    13,406

    Re: Compare 2 lists and leave unmatched items

    eazy899 you've marked this as Solved.

    To which solution do you refer?

+ 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. compare two lists - delete from second items that are not on first
    By ajaykgarg in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-18-2017, 09:52 PM
  2. Compare 2 lists and output unmatched items using array
    By Xceller in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 07-27-2013, 07:19 AM
  3. [SOLVED] Hwo to sort/filter data extracted from accounting program to leave only unmatched items
    By EmmaLou in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 09-30-2012, 10:36 PM
  4. Compare Lists, Show unduplicated items
    By lil_ern63 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 12-29-2006, 05:54 PM
  5. How do I compare two lists and choose the items that are in both?
    By laurabailey8 in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 01-03-2006, 07:35 PM
  6. [SOLVED] Formula to compare two lists and separate non-recurring items?
    By Tennessee in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-10-2005, 02:35 PM
  7. [SOLVED] Compare 2 columns, and create a list of items that are in both lists
    By ruby2sdy in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-08-2005, 07:05 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