+ Reply to Thread
Results 1 to 6 of 6

Select specific text from one cell and move to another cell

  1. #1
    Registered User
    Join Date
    05-31-2013
    Location
    Avon MN
    MS-Off Ver
    Excel 2007
    Posts
    2

    Select specific text from one cell and move to another cell

    I have a file with address information without any delimiting characters. I would like to search multiple cells looking for specific information e.g. "Avon" and move this information to another cell in the worksheet. How can I do this?

    e.g. this is what the data looks like now:
    18401 377th St Avon
    12345 Shorewood Dr Avon

    The result I want is the following... the street address in one cell and the city in another.


    "18401 377th St" in one cell
    "12345 Shorewood Dr" in one cell

    "Avon" in another cell
    "Avon" in another cell

  2. #2
    Forum Contributor
    Join Date
    04-23-2013
    Location
    Abu Dhabi United Arab Emirates
    MS-Off Ver
    Excel 2010
    Posts
    178

    Re: Select specific text from one cell and move to another cell

    try this, suppose your text string in column A:
    in Column B: =LEFT(A1,SEARCH("Avon",A1)-1)
    in Column C: =SUBSTITUTE(A1,B1,"")

  3. #3
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: Select specific text from one cell and move to another cell

    HI cliffavon,

    welcome to the forum.
    To understand the data pattern, I need to see more data. Please upload a sample workbook having dummy data. Thanks.


    Regards,
    DILIPandey
    <click on below * if this helps>
    DILIPandey, Excel rMVP
    +919810929744 (India), +971528225509 (Dubai), [email protected]

  4. #4
    Registered User
    Join Date
    05-31-2013
    Location
    Avon MN
    MS-Off Ver
    Excel 2007
    Posts
    2

    Re: Select specific text from one cell and move to another cell

    Quote Originally Posted by acerrhod View Post
    try this, suppose your text string in column A:
    in Column B: =LEFT(A1,SEARCH("Avon",A1)-1)
    in Column C: =SUBSTITUTE(A1,B1,"")
    Thanks for the help ... this seems to be working for me. Cliff

  5. #5
    Registered User
    Join Date
    05-31-2013
    Location
    Avon MN
    MS-Off Ver
    Excel 2007
    Posts
    2

    Re: Select specific text from one cell and move to another cell

    Thanks... I think I got my answer. Cliff

  6. #6
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: Select specific text from one cell and move to another cell

    That's great.

    Please take a moment to mark this thread as [SOLVED].. Thanks.


    Regards,
    DILIPandey
    <click on below * if this helps>

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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