+ Reply to Thread
Results 1 to 4 of 4

Comparing two cells and returning not matching characters

  1. #1
    Forum Contributor
    Join Date
    07-17-2012
    Location
    bangalore
    MS-Off Ver
    Excel 2007
    Posts
    461

    Comparing two cells and returning not matching characters

    Hi All,

    I have two columns Names and Email Pattern. Here I need to compare Names with Email Pattern and return the not matching character in the column.

    Example:


    Names Email Pattern Result
    eric Nicole eric_Nicole _
    elisabeth rouffiac elisabeth.rouffiac .
    ferey Benjamin f.benjamin erey.
    philippe motte philippe .motte


    Is there any formula or macro to do this?
    Attached Files Attached Files
    Last edited by sathishkm; 03-23-2017 at 02:24 PM.

  2. #2
    Forum Expert dflak's Avatar
    Join Date
    11-24-2015
    Location
    North Carolina
    MS-Off Ver
    365
    Posts
    7,908

    Re: Comparing two cells and returning not matching characters

    In the example you give, for rows 2 and 3 you are showing what is in column B that is not in column A. For rows 4 and 5 you are showing what is in column A that is not in column B. Which way do you want it?
    One spreadsheet to rule them all. One spreadsheet to find them. One spreadsheet to bring them all and at corporate, bind them.

    A picture is worth a thousand words, but a sample spreadsheet is more likely to be worked on.

  3. #3
    Forum Contributor
    Join Date
    07-17-2012
    Location
    bangalore
    MS-Off Ver
    Excel 2007
    Posts
    461

    Re: Comparing two cells and returning not matching characters

    I want from column B

  4. #4
    Forum Expert dflak's Avatar
    Join Date
    11-24-2015
    Location
    North Carolina
    MS-Off Ver
    365
    Posts
    7,908

    Re: Comparing two cells and returning not matching characters

    I think this comes close to what you want.

    I'm making an assumption that names are delimited by space, period, underbar, slash or colon - It is annotated in the code where to add more delimiters.

    You can compare the strings in either direction.
    Attached Files Attached Files

+ 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] Comparing a Column to a row and returning matching cells
    By Atticus_TKAM in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 04-05-2016, 06:32 AM
  2. Replies: 7
    Last Post: 08-27-2015, 03:37 PM
  3. Comparing data against matching cells
    By lokisasdie in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 07-27-2015, 06:16 PM
  4. [SOLVED] Comparing two cells and returning a text value
    By meminto in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 03-06-2013, 06:28 PM
  5. Replies: 4
    Last Post: 07-26-2011, 08:22 PM
  6. Returning different values when comparing 2 cells
    By Carl1966 in forum Excel General
    Replies: 1
    Last Post: 09-09-2008, 08:15 AM
  7. Matching cells & returning values
    By Sharon in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 03-10-2005, 11:06 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