+ Reply to Thread
Results 1 to 5 of 5

Find and Replace multiple text/numbers within string

  1. #1
    Registered User
    Join Date
    02-07-2014
    Location
    San Diego, CA
    MS-Off Ver
    Excel 2007
    Posts
    21

    Find and Replace multiple text/numbers within string

    Hi! I am trying to find a resolution to replace certain text / codes within a cell. I tried several different codes but I cannot figure out what I am doing wrong as it is not finding the text. I tried "substitute" and "replacetexts" but my file is rather large and it only picked up a few codes here and there (probably user error). Here is a small sample of what I am working with if anyone has any suggestions. Thank you for your time!
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor
    Join Date
    11-04-2018
    Location
    Denpasar
    MS-Off Ver
    Excel 2010
    Posts
    777

    Re: Find and Replace multiple text/numbers within string

    Maybe something like this ?
    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    02-07-2014
    Location
    San Diego, CA
    MS-Off Ver
    Excel 2007
    Posts
    21

    Re: Find and Replace multiple text/numbers within string

    Oh wow! I would not have thought of that! It works perfectly in my larger file as well. Thank you so much for this!

  4. #4
    Forum Expert
    Join Date
    10-06-2008
    Location
    Canada
    MS-Off Ver
    2007 / 2013
    Posts
    5,497

    Re: Find and Replace multiple text/numbers within string

    You could try this (on a copy of your original first)
    Please Login or Register  to view this content.
    Should be faster as everything is done in memory.
    Last edited by jolivanes; 07-08-2020 at 01:51 AM. Reason: Added info

  5. #5
    Valued Forum Contributor Haluk's Avatar
    Join Date
    02-14-2019
    Location
    Turkiye
    MS-Off Ver
    2010 - 64 Bit on Windows-11 (22 H2) 64 Bit
    Posts
    1,133

    Re: Find and Replace multiple text/numbers within string

    The following code may be an alternative also,

    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. Find and replace parts in string with words, numbers from a table
    By moosmahna in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-26-2017, 11:54 AM
  2. Find/Replace within String Text
    By Hejl82 in forum Excel General
    Replies: 1
    Last Post: 11-16-2015, 03:31 PM
  3. [SOLVED] Find a text/string and replace it
    By royalB in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-04-2014, 08:29 AM
  4. [SOLVED] VBA to Search a Text String, Find a Value listed in another column and replace the text
    By Jschrod303 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 11-16-2012, 08:56 PM
  5. Find and Replace text within string
    By Soulbringer in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 06-22-2012, 12:30 PM
  6. Find and Replace Multiple Text String VBA
    By maacmaac in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 12-28-2011, 11:00 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