+ Reply to Thread
Results 1 to 12 of 12

Find text in word in the cell and replace whole word

  1. #1
    Registered User
    Join Date
    01-15-2016
    Location
    Poland
    MS-Off Ver
    2013
    Posts
    11

    Find text in word in the cell and replace whole word

    How to make that if the word in cell have ab change whole word for ab
    find ab replace whole word.JPG

    The function find and replace find the word but replace only that part of word.
    Please Login or Register  to view this content.

  2. #2
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,518

    Re: Find text in word in the cell and replace whole word

    Try chnge to
    Please Login or Register  to view this content.

  3. #3
    Valued Forum Contributor bulina2k's Avatar
    Join Date
    11-20-2012
    Location
    Urziceni, Ialomita, Romania
    MS-Off Ver
    2019 and 365
    Posts
    861

    Re: Find text in word in the cell and replace whole word

    Please Login or Register  to view this content.
    Last edited by bulina2k; 01-30-2016 at 11:21 AM.

  4. #4
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,480

    Re: Find text in word in the cell and replace whole word

    Nice one , jindon
    Last edited by davesexcel; 01-30-2016 at 10:31 AM.

  5. #5
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,518

    Re: Find text in word in the cell and replace whole word

    OOps, I didn't look at the picture... bit more complex than I thought...

    Try
    Please Login or Register  to view this content.

  6. #6
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,480

    Re: Find text in word in the cell and replace whole word

    The message you have entered is too short. Please lengthen your message to at least 10 characters.
    Last edited by davesexcel; 01-30-2016 at 04:43 PM.

  7. #7
    Valued Forum Contributor bulina2k's Avatar
    Join Date
    11-20-2012
    Location
    Urziceni, Ialomita, Romania
    MS-Off Ver
    2019 and 365
    Posts
    861
    Quote Originally Posted by davesexcel View Post
    @bulina2k-Could you double check this code, you have a comment in the middle of the line and lots of spaces?
    Thank you dave. It was the explaining comments. I just modified it. It should work now.
    .. and don't forget to have fun!
    Bogdan.

    mark SOLVED and Add Reputation if my answer pleases you

  8. #8
    Registered User
    Join Date
    01-15-2016
    Location
    Poland
    MS-Off Ver
    2013
    Posts
    11

    Re: Find text in word in the cell and replace whole word

    jindon thank you very much. Works great. You did far more than on the picture but actually this was exacly what i was looking for.
    I think it was not for begginer, but i will analise it to get how it works.

    Can i ask you just one more thing.
    Can you make this code to put to the last column only the replaced texts?
    only replaced.JPG

  9. #9
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,518

    Re: Find text in word in the cell and replace whole word

    Grens

    No one wants to work with picture, I normally do not post the code, so better upload a workbook.
    Not tested.
    Please Login or Register  to view this content.

  10. #10
    Registered User
    Join Date
    01-15-2016
    Location
    Poland
    MS-Off Ver
    2013
    Posts
    11

    Re: Find text in word in the cell and replace whole word

    Thank you it's working great just puts the comma between the text.
    I tried to make this code without commas but it's still to difficult for me.
    Could you just make this end result without commas?
    replace.JPG

    Sorry for not adding excel file, from now on i will add it
    Attached Files Attached Files

  11. #11
    Forum Expert sourabhg98's Avatar
    Join Date
    10-22-2014
    Location
    New Delhi, India
    MS-Off Ver
    Excel 2007, 2013
    Posts
    1,899

    Re: Find text in word in the cell and replace whole word

    Please Login or Register  to view this content.
    Happy to Help

    How to upload excel workbooks at this forum - http://www.excelforum.com/the-water-...his-forum.html

    "I don't get things easily, so please be precise and elaborate"

    If someone's post has helped you, thank by clicking on "Add Reputation" below the post.
    If your query is resolved please mark the thread as "Solved" from the "Thread Tools" above.

    Sourabh

  12. #12
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,518

    Re: Find text in word in the cell and replace whole word

    Quote Originally Posted by Grens View Post
    Thank you it's working great just puts the comma between the text.
    I tried to make this code without commas but it's still to difficult for me.
    Could you just make this end result without commas?
    Grens

    Just change
    Please Login or Register  to view this content.
    to
    Please Login or Register  to view this content.

+ 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] Help with macro to find a specific word and replace the entire cell with the return word.
    By BG1983 in forum Excel Programming / VBA / Macros
    Replies: 21
    Last Post: 08-24-2015, 09:40 PM
  2. [SOLVED] Excel macro- Find replace an itallic font word with a regular word?
    By thisisaboutwork in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-08-2013, 01:48 PM
  3. Need help with Excel-to-Word find and replace macro based on word filename
    By EnterTheSerpent in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-16-2013, 12:48 PM
  4. find in excel replace in word: find/replace text in text boxes and headers
    By dean.rogers in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-10-2012, 12:40 PM
  5. Find text in Word, then replace with hyperlink
    By Shawn G. in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 10-05-2005, 09:05 AM
  6. [SOLVED] Find text in Word, then replace with hyperlink
    By Shawn G. in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 10-04-2005, 06:05 PM
  7. [SOLVED] Open word then find replace text
    By Shawn G. in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-04-2005, 09:05 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