+ Reply to Thread
Results 1 to 7 of 7

need formula or vba to find exact string through list and find exact correct string

  1. #1
    Forum Contributor
    Join Date
    04-30-2013
    Location
    washington
    MS-Off Ver
    Excel 2019
    Posts
    168

    need formula or vba to find exact string through list and find exact correct string

    Dear experts

    i want formula for matching exact string value from master list i am problem like wasting time by searching one by one.

    the search look up value is not complete one like half string which is right of text or left of text. look at exact string match after first space.



    for E.G lookup value DRDO India OSSI Prim it has to search with exact of India OSSI Primary

    find the attachment

    Regards
    john
    Attached Files Attached Files

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: need formula or vba to find exact string through list and find exact correct string

    Hi,

    I can't see any reasonably simple string slicing formulae that can do this.

    Can I suggest you try downloading the fuzzy lookup Excel add in from Microsoft which you'll find here. https://www.microsoft.com/en-gb/down....aspx?id=15011

    I've used it on a few occasions and it generally comes up with the goods.
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: need formula or vba to find exact string through list and find exact correct string

    c5=vlookup(right(A5,len(A5)-search(" ",A5,1))&"*",$I$1:$I$25,1,0)
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

  4. #4
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: need formula or vba to find exact string through list and find exact correct string

    Quote Originally Posted by oeldere View Post
    c5=vlookup(right(A5,len(A5)-search(" ",A5,1))&"*",$I$1:$I$25,1,0)
    That works for a few but the structure of the strings is not consistent.

  5. #5
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: need formula or vba to find exact string through list and find exact correct string

    Please Login or Register  to view this content.
    yes I know but i think it is a good way to start.

  6. #6
    Forum Contributor
    Join Date
    04-30-2013
    Location
    washington
    MS-Off Ver
    Excel 2019
    Posts
    168

    Re: need formula or vba to find exact string through list and find exact correct string

    Ya sir its little complicated through formulas any possible way of VBA code can accomplish my task? any experts

  7. #7
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: need formula or vba to find exact string through list and find exact correct string

    Quote Originally Posted by johnlara View Post
    Ya sir its little complicated through formulas any possible way of VBA code can accomplish my task? any experts
    Hi,

    How long is the list you're trying to correct. If it's relatively small and doesn't change then I'd take the pragmatic approach and manually create the results. However I suspect the list is much larger and this was just a small sample.

    The problem is the inconsistency and the more records there are the more the number of variations and the more conditions that any macro needs to know about.
    If you could pre-define a finite list of variations then that's one thing but I suspect that's not the case.

    Have you tried the fuzzy lookup I mentioned in post #2. You can set the confidence level of any lookup and you'll get the correct results for a significant number of records leaving you to manually correct a smaller subset.

    However whatever method you use, whether a macro (assuming it's possible to code one) or a fuzzy lookup you will need to use the Mk.1 eyeball to check for False positives, i.e. strings which the method reports as being a valid correction but which on examination isn't.

    Try the Fuzzy lookup first.

+ 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] Need formula to find exact string from list of agency
    By breadwinner in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-07-2016, 09:26 AM
  2. Replies: 4
    Last Post: 01-06-2015, 09:15 PM
  3. Replies: 3
    Last Post: 09-15-2014, 07:56 PM
  4. [SOLVED] Challenge to find exact text string match
    By bentod in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-16-2014, 12:01 PM
  5. [SOLVED] Find and replace with exact string
    By carrie.cllek in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 11-27-2013, 04:02 PM
  6. Find an exact word within a text string
    By juanmimr in forum Excel Programming / VBA / Macros
    Replies: 18
    Last Post: 08-08-2013, 10:30 AM
  7. [SOLVED] Find Exact Match Text String Using Formula
    By sweetrevelation in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 09-12-2012, 10:53 AM

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