+ Reply to Thread
Results 1 to 4 of 4

Need to add a text suffix to the end of "all words" by searching for their prefix

  1. #1
    Registered User
    Join Date
    08-10-2015
    Location
    New Jersey
    MS-Off Ver
    2013
    Posts
    2

    Need to add a text suffix to the end of "all words" by searching for their prefix

    For EXAMPLE:

    Changing DR_STEIN PROFESSOR
    to DR_STEIN(DUKE) PROFESSOR
    by adding (DUKE) to all cells with DR_

    Is there a find/replace for that? or other search?

    Best regards,
    -Lori

  2. #2
    Forum Expert cbatrody's Avatar
    Join Date
    04-15-2014
    Location
    Dubai
    MS-Off Ver
    Microsoft Office 365 ProPlus
    Posts
    2,136

    Re: Need to add a text suffix to the end of "all words" by searching for their prefix

    Hi,

    Try the following:

    =LEFT(A1,SEARCH(" ",A1,1)-1)&"(DUKE)"&RIGHT(A1,LEN(A1)-SEARCH(" ",A1,1)+1)

    considering 'DR_STEIN PROFESSOR' is in A1

  3. #3
    Registered User
    Join Date
    08-10-2015
    Location
    New Jersey
    MS-Off Ver
    2013
    Posts
    2

    Re: Need to add a text suffix to the end of "all words" by searching for their prefix

    Excellent!!!!

    Thank you so much this is the result I am looking for

    Best regards,
    -Lori

  4. #4
    Forum Expert cbatrody's Avatar
    Join Date
    04-15-2014
    Location
    Dubai
    MS-Off Ver
    Microsoft Office 365 ProPlus
    Posts
    2,136

    Re: Need to add a text suffix to the end of "all words" by searching for their prefix

    You are welcome

    If that takes care of your question, please mark this thread as Solved by selecting Thread Tools --> Mark thread as solved.

    Also, you can directly thank those who have helped you by clicking on the small * (star) icon located in the lower left corner of a post that you have found to be helpful.

+ 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. vba to remove T of every string of prefix and 1 of suffix with text
    By MicroTees in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-19-2015, 03:10 PM
  2. Replies: 1
    Last Post: 08-15-2014, 06:00 AM
  3. Function to trim a specific "words" in a text
    By Ericng in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 03-03-2014, 06:45 AM
  4. Replies: 6
    Last Post: 12-31-2013, 07:51 AM
  5. Replies: 10
    Last Post: 01-26-2012, 08:26 AM
  6. How can i copy value from "HTMLText"(EMBED("Forms.HTML:Text","")),using Macro
    By andrewyang in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-18-2010, 12:47 AM
  7. Remove "TRUE" "FALSE" words from a linked checkbox
    By MDCK in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-15-2008, 03:26 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