+ Reply to Thread
Results 1 to 2 of 2

Match inputs in one column with data from another if >50% of their consec letters match

  1. #1
    Registered User
    Join Date
    11-10-2012
    Location
    United States
    MS-Off Ver
    Excel 2007
    Posts
    3

    Match inputs in one column with data from another if >50% of their consec letters match

    This is a smaller topic from my larger topic. I was wondering how I would create a macro or an if-statement to match an input in one column with the data located in another column as long as 50% or more of their consecutive letters match?

    For example, if someone types in "oogle" instead of "google", I would want to still return google because more than 50% of the consecutive characters match.

    So in procedural terms:

    1.) Should I use the function len to count the number of all the characters in the cell and then store that somewhere?

    2.) Then how would I go about seeing how many consecutive letters match? It could be that the first two don't match but then the rest of the letters do match?

    Thanks in advance! Any and all help is appreciated.

  2. #2
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: Match inputs in one column with data from another if >50% of their consec letters matc

    Hi TaskinRahman,

    I believe you are over thinking on this.. suggest you to use Search function which will give you the output and when to use this, if the "text to be searched" is more than 50% of Length of the "text in which to be searched" .. so ideally Search and Len / If function should work here.

    Regards,
    DILIPandey
    <click on below * if this helps>
    DILIPandey, Excel rMVP
    +919810929744 (India), +971528225509 (Dubai), [email protected]

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

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