+ Reply to Thread
Results 1 to 9 of 9

Matching unformed name's

  1. #1
    Registered User
    Join Date
    06-03-2019
    Location
    madurai
    MS-Off Ver
    office 365
    Posts
    81

    Matching unformed name's

    Cross-posted at https://www.mrexcel.com/board/thread...-find.1190687/ Solutions have been offered.


    how to i compare 2 text values from 2 different cells and show a % values of the similarity. eg: a1 = this is an example b1 = this is an example result : 100% a1 = for an example b1 = this is an example result : 50%
    Last edited by 6StringJazzer; 12-18-2021 at 12:22 PM.

  2. #2
    Valued Forum Contributor
    Join Date
    02-06-2013
    Location
    UK
    MS-Off Ver
    365
    Posts
    693

    Re: Matching unformed name's

    Can you explain your logic?

    Why is "for an example" = 50% similar to "this is an example" instead of e.g. 40% or 80% similar?

    What you could do, is e.g.: =--EXACT(A1,B1) format as %, which would resultin 100% and 0% otherwise.
    This would be case-sensitive while =--(A1=B1) would not be case-sensitive.

    E.g. you could argue that "this is an example" and "elpmaxe na si siht" are 0% or 100% similar, depending on whether or not you care about order of elements.

  3. #3
    Forum Expert KOKOSEK's Avatar
    Join Date
    08-03-2018
    Location
    Pole in Yorkshire, UK
    MS-Off Ver
    365/2013
    Posts
    2,765

    Re: Matching unformed name's

    Maybe you should interest with this:
    https://en.wikipedia.org/wiki/Levenshtein_distance
    of course there are still issues mentioned by @RaulSerg.

    p.s. I've found UDF like this:

    Please Login or Register  to view this content.
    and gives results like this:
    A
    B
    C
    1
    this is an example this is an example
    100%
    2
    for an example this is an example
    61%
    3
    elpmaxe na si siht this is an example
    11%
    4
    jimsenthil jim senthil
    91%


    p.s.2. Probably you expect comparing particular words in text, I am afraid. There is still doable in VBA (in formula can be quiet complicated).

    Please Login or Register  to view this content.
    question is: quantity of existed words (as number) should be divide by quantity of words in text 1 or in text 2 (or with shorter / longer?).
    Check 2nd and 3rd rows. The same texts but compare differently: Text1 with Text2 and Text2 with Text1 gives different results.

    A
    B
    C
    1
    this is an example this is an example
    100.00%
    2
    for an example this is an example
    66.67%
    3
    this is an example for an example
    50.00%
    4
    elpmaxe na si siht this is an example
    0.00%
    Last edited by KOKOSEK; 12-17-2021 at 12:18 PM.
    Happy with my answer * Add Reputation.
    If You are happy with solution, please use Thread tools and mark thread as SOLVED.

  4. #4
    Forum Expert
    Join Date
    10-19-2021
    Location
    Brazil
    MS-Off Ver
    Office 365 V2401 w/ Win10 Home 64 Bit
    Posts
    2,014

    Re: Matching unformed name's

    A formula for comparing words:

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

  5. #5
    Registered User
    Join Date
    06-03-2019
    Location
    madurai
    MS-Off Ver
    office 365
    Posts
    81

    Re: Matching unformed name's

    I have vlookup or match 2 column, A has unique names, and B has unformatted list of name's , I want match with A column name and want the output with both remark such as 100%,90%,80%,70%,60%,50%,no match..
    Pls Suggest an solution on this...

  6. #6
    Registered User
    Join Date
    06-03-2019
    Location
    madurai
    MS-Off Ver
    office 365
    Posts
    81
    I want to match 2 columns
    A is the unique list of name's static
    B is unformatted console list
    In C want Names that matches,and very close and higher/approximate possibile name to get captured

    In D column is any way to put an remark 100%,90%,80%,.....no match...
    Attached Files Attached Files

  7. #7
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2505 (Windows 11 Home 24H2 64-bit)
    Posts
    91,234

    Re: Matching unformed name's

    This is nonsense:

    AliGW on MS365 Insider (Windows) 64 bit

    F
    G
    H
    I
    6
    for an example this is an example for an example 100%
    7
    this is an example for an example this is an example 50%
    Sheet: Sheet4

    If A compared to B is 100%, then so should B compared to A be 100%.

    I very much doubt you are going to be able to programme Excel to do this.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help. It's a universal courtesy.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    NB:
    as a Moderator, I never accept friendship requests.
    Forum Rules (updated August 2023): please read them here.

  8. #8
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS 365 Family 64-bit 2502
    Posts
    26,995

    Re: Matching unformed name's

    How can two strings that are not identical be considered a 100% match?
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

  9. #9
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS 365 Family 64-bit 2502
    Posts
    26,995

    Re: Matching unformed name's

    Administrative Note:

    Welcome to the forum.

    We would very much like to help you with your query, however it has been brought to our attention that the same query has been posted on one or more other forums and you have not provided the required cross-post link(s) here.

    Please see Forum Rule #3 about cross-posting and adjust accordingly. Read this to understand why we (and other sites like us) consider this to be important.

    I have added it to your first post since you are a new member. Please take the time to review our rules. There aren't many, and they are all important.

+ 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. Excel Formula to find Matching String and Matching Size, Output Result
    By Ronnieooi in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 08-18-2021, 09:37 PM
  2. Replies: 18
    Last Post: 10-08-2017, 04:17 AM
  3. Replies: 7
    Last Post: 09-16-2017, 11:58 AM
  4. [SOLVED] Alter Matching Sub From matching two Ranges to matching one range and list
    By capson in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-14-2015, 10:48 PM
  5. Weirdest problem ever - excel not matching matching text
    By andre_as in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 05-19-2015, 03:33 AM
  6. Finding Matching Data in one Column/Adding corresponding matching string value.
    By swade730 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-02-2013, 07:23 PM
  7. Replies: 2
    Last Post: 04-11-2013, 11:14 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