+ Reply to Thread
Results 1 to 2 of 2

Help Automating or trying to come up with a way to search and replace a text string.

Hybrid View

  1. #1
    Registered User
    Join Date
    07-29-2014
    Location
    houston
    MS-Off Ver
    excel 2007
    Posts
    3

    Question Help Automating or trying to come up with a way to search and replace a text string.

    I have a list of about 600 addresses that need to be reformatted with a space following X character and need to be in all caps. This would be the more tedious way because I would still need to search the other file to make sure the text itself is correct. I saw on a different forum that this line would work in adding a space (=REPLACE(A1,5,1,MID(A1,5,1)&" ")) but I need to add two spaces and adjust the location of the space so that it is following the first string of text.

    The other approach could be to set up a formula or macro that searches the other file with a section of the original text and replaces that string.

    If anyone could help with the basic formula (caps and adding two spaces following the first number string) or trying to macro a search and replace in the other file I would greatly appreciate it.

  2. #2
    Forum Expert
    Join Date
    02-11-2014
    Location
    New York
    MS-Off Ver
    Excel 365 (Windows)
    Posts
    6,367

    Re: Help Automating or trying to come up with a way to search and replace a text string.

    Try this:
    =UPPER(REPLACE(A1,FIND(" ",A1),1," "))
    Bernie Deitrick
    Excel MVP 2000-2010

+ 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: 3
    Last Post: 07-29-2014, 10:59 AM
  2. [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
  3. [SOLVED] search for text, then search for previous text, replace 1st text including number from 2nd
    By kldailey in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-06-2012, 05:23 PM
  4. Search Selected Data for a Text String and replace entire cell with new tex
    By maz003 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-06-2010, 02:26 PM
  5. Search for specific text in a string and replace
    By VegasL in forum Excel General
    Replies: 5
    Last Post: 12-04-2009, 04:45 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