+ Reply to Thread
Results 1 to 4 of 4

Substitute text

  1. #1
    Forum Contributor
    Join Date
    05-13-2009
    Location
    Manila philippines
    MS-Off Ver
    Excel 2010
    Posts
    113

    Substitute text

    Hello,

    I would like to ask the excel experts on how to substitute a text that is located in the middle of the text string. The text that should be replaced is after the word "PIN". Attached is a sample table
    Attached Files Attached Files

  2. #2
    Forum Guru
    Join Date
    04-23-2012
    Location
    New Jersey, USA
    MS-Off Ver
    Excel 365
    Posts
    2,417

    Re: Substitute text

    Assuming what you want to replace is the 7-digit number after the word "PIN", give this formula a try (change "ReplacementValue" to whatever it is you want to replace the 7-digit number with)...

    =REPLACE(A3,FIND("PIN",A3)+4,7,"ReplacementValue")

  3. #3
    Forum Contributor
    Join Date
    05-13-2009
    Location
    Manila philippines
    MS-Off Ver
    Excel 2010
    Posts
    113

    Re: Substitute text

    Thank you very much. it works!

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    81,160

    Re: Substitute text

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

    Also, you may not be aware that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of those who helped.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

+ 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. Replies: 2
    Last Post: 09-27-2020, 11:00 PM
  2. [SOLVED] Substitute Text
    By greatsyd in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 02-06-2018, 07:13 AM
  3. Can you increment text in a substitute text formula
    By Taupo58 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 08-20-2015, 03:45 AM
  4. Replies: 4
    Last Post: 10-28-2014, 11:04 PM
  5. [SOLVED] Substitute Text String
    By javeds in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 01-13-2014, 10:34 AM
  6. How to use a substitute formula to substitute text entries to a different text entry
    By andybocchi in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 11-01-2010, 07:50 PM
  7. Substitute text
    By jeff.p in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-08-2007, 05:01 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