+ Reply to Thread
Results 1 to 2 of 2

Compare character strings in 2 cells and return only the differences

  1. #1
    Registered User
    Join Date
    03-06-2015
    Location
    New Jersey
    MS-Off Ver
    2010
    Posts
    6

    Compare character strings in 2 cells and return only the differences

    Hi all,

    Was hoping someone could provide some help with a problem I've been working on. I have a data set that contains very similar data save for one or 2 characters. I'm trying to isolate those characters using a formula but can't seem to figure out a proper way to do that.

    For example

    Example 1

    Cell 1 - CARA123
    Cell 2 - CARA123#

    (in this example, i'd like the cell to indicate # as the unmatched character)

    Example 2

    Cell 1 - ARNA<
    Cell 2 - ARNA

    (in this example, i'd like the cell to indicate < as the unmatched character)


    Another possibility that may solve my dilemma is a formuala that will compare each character in the cell one by one and only bring back the results starting where the differences occur.

    For example

    Cell 1 - ARNAFED123
    Cell 2 - ARNABED123

    The formula would then bring back BED123 as the answer (as the B was the point where the 2 cells "became unmatched").

    Any help provided would be greatly appreciated.

  2. #2
    Registered User
    Join Date
    03-06-2015
    Location
    New Jersey
    MS-Off Ver
    2010
    Posts
    6

    Re: Compare character strings in 2 cells and return only the differences

    Sorry. I think I posted this in the wrong forum.....this probably should have gone in the Formulas forum.

+ 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] Compare Two Cells & Return Whats Common Between the two strings and delete the variation
    By alfykunable in forum Excel Programming / VBA / Macros
    Replies: 34
    Last Post: 10-24-2020, 02:00 PM
  2. Replies: 0
    Last Post: 07-17-2014, 10:06 AM
  3. Compare two strings and output the differences
    By aliastx in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 08-14-2013, 10:49 PM
  4. Compare Differences between 2 strings
    By wadafruck in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 12-11-2012, 07:09 PM
  5. Compare Worksheets and Return Differences
    By bkeller83 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 09-16-2009, 01:52 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