+ Reply to Thread
Results 1 to 5 of 5

search for multiple strings and replace them with the same string

  1. #1
    Registered User
    Join Date
    01-16-2009
    Location
    Australia
    MS-Off Ver
    Excel 2003
    Posts
    13

    search for multiple strings and replace them with the same string

    i need to change the contents of cells on a large scale. my problem is that what i need to change the data into is different on the sheet that needs to be changed. for example this is my sheet explaining all the records (in the first column) that need to be changed from there current name to state.
    aa state
    aa state
    bb state
    cc state
    dd state
    ee state
    ff state
    gg state

    but in the second sheet where i need to make the change i have extra rows that don't need editing. eg
    aa
    qwerqw
    aa
    bb
    qwer
    cc
    qwre
    dd
    qwerqw
    ee
    grtee
    ff
    fqwer
    gg


    so is there sometihng that i can use to say find aa or bb or cc etc and replace it with state? as i don't want to go through and individually replace the 1000 records.
    Last edited by aaron85; 07-14-2009 at 04:24 AM.

  2. #2
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,601

    Re: search for multiple strings and replace them with the same string

    Try this...

    Book1.xls

  3. #3
    Registered User
    Join Date
    01-16-2009
    Location
    Australia
    MS-Off Ver
    Excel 2003
    Posts
    13

    Re: search for multiple strings and replace them with the same string

    yes this is awsome thanks. is there any way you can highlight either the cells that are different so that i can run my eye over to see if there are any mistakes? because i have foound a couple up the top that don't seem to work because they are up the top i could tell which ones they were but i want to be sure that it is not the same somewhere in the middle of the docuemnt.

  4. #4
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,601

    Re: search for multiple strings and replace them with the same string

    Something like this?

    (this look if A1 nad B1 are different)

    Book2.xls

  5. #5
    Registered User
    Join Date
    01-16-2009
    Location
    Australia
    MS-Off Ver
    Excel 2003
    Posts
    13

    Re: search for multiple strings and replace them with the same string

    Quote Originally Posted by zbor View Post
    Something like this?

    (this look if A1 nad B1 are different)

    Attachment 48320
    thanks for that.
    i ended up using col c and saying =$A1=$B1 then sorted by the false and highlighted them, it was a bit easier for me to check. but what you have put will prob come in handy for something else. thanks

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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