+ Reply to Thread
Results 1 to 4 of 4

Formula to Flag names in list 1 that do not exist in list 2.

  1. #1
    Registered User
    Join Date
    04-16-2013
    Location
    Boston, Massachusetts
    MS-Off Ver
    Excel 2010
    Posts
    50

    Formula to Flag names in list 1 that do not exist in list 2.

    Hi all,

    In the attached spreadsheets are two lists of names - note that in each list, there are duplicates - one name can appear in multiple lines.

    I am hoping for some help finding a formula that will Flag (fill the cell with color) names in "Contact List 2" which do not appear in "Contact List 1". If a name in Contact List 2 meets these conditions, all instances of that name should be flagged.

    Thank you so much in advance for your time! Let me know if you have any more information.
    Attached Files Attached Files

  2. #2
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,147

    Re: Formula to Flag names in list 1 that do not exist in list 2.

    hi there.

    1. go to Sheet1 & select A:A.

    2. you should see a name box below the ribbon & on the left of the formula bar. it shows the cell reference. click on that & type a name. i'll type Reference. Press ENTER

    3. go to Sheet2 & select from A2:A1657. in Excel 2007 & above, go to Home -> Conditional Formatting -> New Rule -> Use a formula to determine which cells to format -> Format values where this formula is true:
    =AND(COUNTIF(Reference,A2)=0,A2<>"")

    4. format to the colour you desire & click ok

    Thanks, if you have clicked on the * and added our rep.

    If you're satisfied with the answer, click Thread Tools above your first post, select "Mark your thread as Solved".

    "Contentment is not the fulfillment of what you want, but the realization of what you already have."


    Tips & Tutorials I Compiled | How to Get Quick & Good Answers

  3. #3
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,732

    Re: Formula to Flag names in list 1 that do not exist in list 2.

    See attached file.

    I've defined two named ranges, one for each list. Then I set up conditional formatting on the second list using this formula:

    =AND(A2<>"",ISERROR(MATCH(A2,Contact_Name_1,0)))

    giving a green background fill. I also had to change your blank entries, as they had spaces in them.

    If you want it the other way round, i.e. to show names that do appear in list 1, then change the ISERROR to ISNUMBER.

    Hope this helps.

    Pete
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    04-16-2013
    Location
    Boston, Massachusetts
    MS-Off Ver
    Excel 2010
    Posts
    50

    Re: Formula to Flag names in list 1 that do not exist in list 2.

    Thanks to both of you, benishiryo and pete - both of these approaches are very helpful, as it is great to be able to see names that do appear in list 1 as well.

+ 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. Flag if duplicates exist when list is auto-filtered
    By Philster in forum Excel General
    Replies: 5
    Last Post: 11-24-2011, 10:22 AM
  2. Replies: 2
    Last Post: 12-14-2010, 02:21 AM
  3. find names on list 1 in list 2. list 1 4000 names list 2 400 name
    By Ed in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 10:05 AM
  4. find names on list 1 in list 2. list 1 4000 names list 2 400 name
    By Ed in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 07:05 AM
  5. find names on list 1 in list 2. list 1 4000 names list 2 400 name
    By Ed in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 01: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