+ Reply to Thread
Results 1 to 10 of 10

Find and Replace

Hybrid View

  1. #1
    Registered User
    Join Date
    04-19-2014
    Location
    Select...thunder bay ontario
    MS-Off Ver
    Excel 2003
    Posts
    5

    Find and Replace

    HELP!

    I am trying to use find and replace but the text that i'm searching for appears three times in the cell. I only need to replace the first occurrence in the cell. Does anyone know if this can be done? Alternatively, if there is a way to do this, can the second and third occurrence be changed?

    example:

    Cheryl called Louie to advise she would be late for the meeting. Louie responded that he would meet Cheryl at her office. Cheryl confirmed.

    I need to change the first 'Cheryl' to a job title and the second and third Cheryl to her initials (CL) so would read:

    Manager of Aboriginal Affairs called Louie to advise she would be late for the meeting. Louie responded that he would meet CL at her office. CL confirmed.

    Help would be appreciated. thanks!!!

  2. #2
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,663

    Re: Find and Replace

    =SUBSTITUTE(text,old_text,new_text,instance_num)
    Ben Van Johnson

  3. #3
    Registered User
    Join Date
    04-19-2014
    Location
    Select...thunder bay ontario
    MS-Off Ver
    Excel 2003
    Posts
    5

    Re: Find and Replace

    Hi ProtonLeah, thank you so much for your response, sorry, I guess I'm abit green, where am I supposed to put that? in the find box after I type Cheryl?

  4. #4
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,663

    Re: Find and Replace

    Sorry, that's a cell formula. It won't work for your case.

  5. #5
    Registered User
    Join Date
    04-19-2014
    Location
    Select...thunder bay ontario
    MS-Off Ver
    Excel 2003
    Posts
    5

    Re: Find and Replace

    ok, thank you for responding.

  6. #6
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,649

    Re: Find and Replace

    Assuming your text is in A1, then try this to see if it gives you the desired result.........
    =SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(A1,"Cheryl",UPPER(LEFT(A1,1)&MID(A1,FIND(" ",A1)-1,1)),3),"Cheryl",UPPER(LEFT(A1,1)&MID(A1,FIND(" ",A1)-1,1)),2),"Cheryl","Manager of Aboriginal Affairs")
    Regards
    sktneer


    Treat people the way you want to be treated. Talk to people the way you want to be talked to.
    Respect is earned NOT given.

  7. #7
    Registered User
    Join Date
    04-19-2014
    Location
    Select...thunder bay ontario
    MS-Off Ver
    Excel 2003
    Posts
    5

    Re: Find and Replace

    oh my gosh, it worked!!!! Thank you soooooooooooo much sktneer!!!!!!

  8. #8
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,649

    Re: Find and Replace

    Glad to help you. Thanks for the feedback.
    If that takes care of your question, please mark your thread as solved.
    Moreover you may also click on * (star) to Add Reputation to those who have put their time and efforts to help you in this forum. This is another way to say thanks to them.

  9. #9
    Registered User
    Join Date
    04-19-2014
    Location
    Select...thunder bay ontario
    MS-Off Ver
    Excel 2003
    Posts
    5

    Re: Find and Replace

    Done....thanks for the tips on that as well!

  10. #10
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,649

    Re: Find and Replace

    Thanks. You're welcome.

+ 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] find and replace to not replace characters found as wildcards
    By sabutler4 in forum Excel General
    Replies: 4
    Last Post: 07-03-2013, 06:48 PM
  2. 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
  3. Multiple Find and Replace to replace a list of strings
    By WalterP34 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 11-11-2011, 07:41 PM
  4. Find, and replace but copy cells before replace
    By raehippychick in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-05-2007, 08:16 AM
  5. find and replace - replace data in rows to separated by commas
    By msdker in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 04-14-2006, 08:10 PM

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