+ Reply to Thread
Results 1 to 5 of 5

Comparison of two text strings

  1. #1
    Registered User
    Join Date
    11-27-2017
    Location
    Kokkola, Finland
    MS-Off Ver
    Excel 2016
    Posts
    3

    Comparison of two text strings

    Hi,

    I have a simple problem but it seems quite complex to solve.

    I must find differences between two columns (both very similar text strings). The checking process is very manual so it doesn't really matter how the differences will be indicated. Here are some methods that I've been thinking of


    Method 1: Giving the text strings a comparison score. Checking how many characters match and giving a scoring percent.

    Method 2: Checking how many characters match in the beginning and in the end of the text string and then replacing those matching parts with blanks so that only differing middle part would remain.

    Method 3: Erasing all those characters (1-by-1) that are represented in both columns.

    Column1 Column2
    ABCDEFG ABCCEFG

    ANSWERS
    Method 1: 86 %
    Method 2: D
    Method 3: C or D


    Above is an example columns and the answers im looking for with different methods. Method 3 will give an answer D or C depending on how you do the picking out part (do you pick characters of column 1 from column 2 or vice versa).

    I'm not looking for solution to every method. Any solution that work is good for this job.
    Preferrably I'm looking for non-VBA method.

    I believe there is a simple method to do the job but I haven't found any yet.
    Last edited by koopalola; 08-22-2018 at 05:30 AM.

  2. #2
    Registered User
    Join Date
    07-28-2015
    Location
    Pruszków, Poland
    MS-Off Ver
    365 Business
    Posts
    58

    Re: Comparison of two text strings

    Hi,

    Using VBA will help in my opinion, but you can do it with formulas only. With tabullar formulas (CTRL + SHIFT + ENTER).
    My solution is in the attachment.
    Attached Files Attached Files

  3. #3
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.84 for Mac MS 365
    Posts
    8,499

    Re: Comparison of two text strings

    Patronus, it isn't a requirement on this forum but is recommended that when you post a solution within a workbook you also post the formula in the post so it is visible to others.
    not everyone can open workbooks d/t firewalls or security reasons. And it allows others to see what has been proposed and it is then visible for searches.
    Make contributors happy, click on the "* Add Reputation" as a way to say thank you.
    Sam Capricci

  4. #4
    Registered User
    Join Date
    07-28-2015
    Location
    Pruszków, Poland
    MS-Off Ver
    365 Business
    Posts
    58

    Re: Comparison of two text strings

    Ok, I'll try to do it, but it's hard becouse i work in polish version of Excel and i must translate every formula - what i do with simple ones, but this was too big for me.

  5. #5
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.84 for Mac MS 365
    Posts
    8,499

    Re: Comparison of two text strings

    Well, glad to have you contributing to the forum and you can only do what you can do.

+ 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. Swap Specific Text Strings in a Range and Indicate new Strings Not already in Code.
    By liquidmettle in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 05-17-2018, 01:31 PM
  2. Replies: 2
    Last Post: 03-07-2013, 02:34 AM
  3. Help searching an array of text strings for common strings
    By ABComp in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 12-23-2012, 11:19 PM
  4. Comparison Operators for Cells with Strings
    By papermoon in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-16-2010, 02:44 PM
  5. Comparison - Strings and Arrays
    By jbtenor1 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-13-2006, 09:10 AM
  6. Replies: 1
    Last Post: 02-15-2005, 08:07 PM
  7. Replies: 0
    Last Post: 02-15-2005, 05:50 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