+ Reply to Thread
Results 1 to 7 of 7

Finding the word

  1. #1
    Forum Contributor
    Join Date
    07-17-2012
    Location
    bangalore
    MS-Off Ver
    Excel 2007
    Posts
    461

    Finding the word

    Hi All,

    I have a file which contains company and web. Here I need to find any of the company word matching in domain and it should return true or false.

    Example:-

    SimplexGrinnell LP www.simplexgrinnell.com True
    CFT Corporation www.cftcorp.com True
    Mapsco Inc www.Mapsco.com True
    Lookout Mountain www.abc.com True

    Even If single word matching in domain need to return true and also if all the word in the company matches in web needs to return true.

    For more information. Please check the attachment.
    Attached Files Attached Files
    Last edited by sathishkm; 09-16-2013 at 02:03 PM.

  2. #2
    Forum Contributor
    Join Date
    07-17-2012
    Location
    bangalore
    MS-Off Ver
    Excel 2007
    Posts
    461

    Re: Finding the word

    Any solutions?
    Last edited by sathishkm; 09-16-2013 at 02:04 PM.

  3. #3
    Forum Contributor
    Join Date
    07-17-2012
    Location
    bangalore
    MS-Off Ver
    Excel 2007
    Posts
    461

    Re: Finding the word

    Any VB or macro code also fine.

  4. #4
    Forum Guru HaHoBe's Avatar
    Join Date
    02-19-2005
    Location
    Hamburg, Germany
    MS-Off Ver
    work: 2016 on Win10 (notebook), private: 2019 on Win10 (desktop), 2019 on Win11 (notebook)
    Posts
    8,197

    Re: Finding the word

    Hi, sathishkm,

    please do not push as hard as you do. From the Forum Rules:
    If your question has not been answered within a day, consider adding another post with any additional information you believe is relevant. If you think your post is good as is, just reply to your own thread with the words "Bump no response", which will bring it to the top of the forum.
    If itīs really that important to you maybe consider to use the Commercial Services offered here at Excel Forum.

    Ciao,
    Holger
    Use Code-Tags for showing your code: [code] Your Code here [/code]
    Please mark your question Solved if there has been offered a solution that works fine for you

  5. #5
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Finding the word

    This formula will get you close but not 100%. The problem is that domain names are not always consistent with the company names.

    =IFERROR(IF(SEARCH(MID(SUBSTITUTE(A2," ",""),1,4),$B$2:$B$14),"TRUE"),"FALSE")
    If you like my answer please click on * Add Reputation
    Don't forget to mark threads as "Solved" if your problem has been resolved

    "Nothing is so firmly believed as what we least know."
    --Michel de Montaigne

  6. #6
    Forum Contributor
    Join Date
    07-17-2012
    Location
    bangalore
    MS-Off Ver
    Excel 2007
    Posts
    461

    Re: Finding the word

    The above formula is not working properly in the below example.

    Southeast Apartment Partners www.seaptpartners.com TRUE


    It's returning False.

  7. #7
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: Finding the word

    Hi,

    This formula in C2 will return TRUE if any of the space-delimited substrings from the string in A2 is present in B2:

    =SUMPRODUCT(--ISNUMBER(SEARCH(TRIM(MID(SUBSTITUTE(A2," ",REPT(" ",255)),255*(ROW(INDIRECT("1:"&1+LEN(A2)-LEN(SUBSTITUTE(A2," ",""))))-1)+1,255)),B2)))>0

    Copy down as required.

    Regards
    Click * below if this answer helped

    Advanced Excel Techniques: http://excelxor.com/

+ 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. Finding a word and replacing
    By sathishkm in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 02-20-2013, 05:59 AM
  2. Finding a word and matchin its value to it.
    By paaandooorf in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-13-2009, 10:37 PM
  3. Finding location in Word works from Word but not from Excel
    By wayneh in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 12-05-2008, 07:52 AM
  4. Finding Text In MS Word
    By tahir in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 10-13-2008, 09:22 PM
  5. Finding All but Last Word
    By Steve Madden in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 01-24-2006, 04:57 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