+ Reply to Thread
Results 1 to 4 of 4

Compare/LookUp Value in List and Give Result

  1. #1
    Registered User
    Join Date
    01-12-2009
    Location
    Frisco, Texas
    MS-Off Ver
    Excel 2004 for Mac
    Posts
    22

    Compare/LookUp Value in List and Give Result

    I am cleaning a customer database. I want to remove all accounts with bad email addresses. I have a list of the bad email addresses (a subset of all accounts). I want to compare/lookup if a bad email is in the account list and if it is, give a result of 1 (or some other identifying characteristic). I am looking for exact matches of email addresses.

    Tried attaching sample, but it isn't working. Here is a link to a Sample on Google drive:

    https://drive.google.com/open?id=0B0...DVHdllyNG1aQ0U

    Thanks.

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

    Re: Compare/LookUp Value in List and Give Result

    You can put this formula in cell I3:

    =IF(ISNUMBER(MATCH(H3,$K$5:$K$8,0)),"bad","ok")

    then copy down. Then you could apply a filter to that column to display all the "bad" records, and then delete them in one operation.

    Hope this helps.

    Pete

  3. #3
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Compare/LookUp Value in List and Give Result

    Or you can use formula to return TRUE or FALSE

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

    If you like my answer please click on * Add Reputation
    Don't forget to mark threads as "Solved" if your problem has been resolved

    "Nothing is so firmly believed as what we least know."
    --Michel de Montaigne

  4. #4
    Registered User
    Join Date
    01-12-2009
    Location
    Frisco, Texas
    MS-Off Ver
    Excel 2004 for Mac
    Posts
    22

    Re: Compare/LookUp Value in List and Give Result

    Wow. Perfect. Thanks!

+ 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. Replies: 0
    Last Post: 09-12-2016, 07:55 PM
  2. VBA to lookup for a specific value and give result
    By winmaxservices in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 11-13-2015, 04:29 AM
  3. please help with compare two columns and give me result?
    By tomislav91 in forum Excel General
    Replies: 3
    Last Post: 01-24-2015, 02:48 PM
  4. [SOLVED] Lookup multiple criteria in table and give row + culmn as result
    By bidsinga in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 04-02-2014, 03:40 PM
  5. Two sheets compare multiply and give result
    By ursanil in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-03-2013, 08:58 AM
  6. Compare two Worksheets and give the result in 3rd worksheet
    By hakuna.matata in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 10-07-2012, 11:50 AM
  7. [SOLVED] Compare the string between two worksheets and give the result in worksheet 3
    By hakuna.matata in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 08-04-2012, 06:04 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