+ Reply to Thread
Results 1 to 4 of 4

Find and Replace Problems

  1. #1
    Registered User
    Join Date
    02-13-2015
    Location
    Topeka, Kasnas
    MS-Off Ver
    2010
    Posts
    4

    Find and Replace Problems

    Hello,

    I am a relatively new and unskilled excel user and was having problems with the Find and replace function. I am editing an excel spreadsheet with addresses and I need to replace every St and St. with the full Street, which has thousands of entries. Whenever I try to find and replace the St with no periods, it finds every word with St in it. How do I find and replace the St, and only the St

    Thanks in advance

  2. #2
    Forum Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,064

    Re: Find and Replace Problems

    I dont think you can

    Given

    1) a name - St Nicholas
    2) a street - New Oxford St
    3) a street - Regent St.
    4) a street named after somebody - St Thomas St.

    replacing St would indeed change all occurrences of the above irrespective of name or address.

    You might be able to isolate (copy paste) addresses into a separate worksheet to separate them from names but you'll still get problems with 4).
    Depends on your data.


    You might be able to use a formula to change it, e.g. the street would be the last word in the address on that line so you could use a formula to check it's "St" AND the last word on a line, but if you have

    "St Columbus Building, Regent St, St Ives, Cornwall"

    all on one line then you're gonna get problems.
    Last edited by Special-K; 02-18-2015 at 12:10 PM.
    Regards
    Special-K

    Ensure you describe your problem clearly, I have little time available to solve these problems and do not appreciate numerous changes to them.

  3. #3
    Registered User
    Join Date
    01-30-2015
    Location
    California, USA
    MS-Off Ver
    2003, 2007, 2010 & 2013
    Posts
    20

    Re: Find and Replace Problems

    you could narrow the errors down by using " st" instead of "st" (with the space before the st). but there is no actual way to do this how you're wanting. What you could do, is add a column and use a formula to look at the end of the address for "st" and replace it with "street'

    A
    St. James St.

    b
    =if(right(A1,3)="st.",left(A1,len(a1)-3)&"street",A1)
    would appear as St. James street

    of course, you could add additional 'if' statements to isolate other variables and drag down, but would depend on the format of the address / field contained in the cell.

  4. #4
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Find and Replace Problems

    Using Special-K's example using Find & Select, Replace
    1. Select Options and select Match Case.
    2. In Find What enter - St that is dash space St
    3. In Replace With enter xxx and click on Replace All
    4. In Find What enter space St
    5. In Replace With enter space Street and click on Replace All.
    6. In Find What enter Street.
    7. In Replace With enter Street and click on Replace All.
    8. In Find What enter xxx
    9. In Replace With enter - St that is dash, space St and click on Replace All.

    If followed exactly and in that exact order the result will be:

    A
    7
    1) a name - St Nicholas
    8
    2) a street - New Oxford Street
    9
    3) a street - Regent Street
    10
    4) a street named after somebody - St Thomas Street
    <---------If you like someone's answer, click the star to the left of one of their posts to give them a reputation point for that answer.
    Ron W

+ 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 & Replace problems... at the end of my thread (ha)
    By dunndealpr in forum Excel General
    Replies: 3
    Last Post: 06-06-2013, 03:44 PM
  2. problems with find and replace
    By byoung547190 in forum Excel General
    Replies: 3
    Last Post: 04-13-2008, 11:30 PM
  3. Find/Replace Problems
    By matthew.pringle in forum Excel General
    Replies: 1
    Last Post: 04-11-2008, 02:06 AM
  4. Find & replace problems
    By Bill-E-BoB in forum Excel General
    Replies: 1
    Last Post: 12-29-2006, 03:56 AM
  5. Problems with Find & Replace
    By Gazzr in forum Excel General
    Replies: 3
    Last Post: 04-07-2006, 12:41 AM

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