+ Reply to Thread
Results 1 to 3 of 3

Import Data

  1. #1
    Registered User
    Join Date
    03-30-2011
    Location
    San Jose
    MS-Off Ver
    Excel 2003
    Posts
    11

    Import Data

    I'm Back!!! Last time I was here I needed help with sorting data. The data was

    From:
    ---A
    1 Mr. Smith
    2 123 Fourth St
    3 San Jose CA 95111
    4 Mr. Right
    5 456 Down Town
    6 San Jose CA 95112

    To:

    1 A----------------B----------------------C----------------D-----------E
    2 Mr. Smith----123 Fourth S------San Jose-----CA--------95111
    3 Mr. Right-----456 Down Town--San Jose----CA--------95112
    I used --- to separate cells.

    Using this formula
    In cell B1 enter the formula: =A2
    In cell C1 enter the formula: =LEFT($A3,LEN($A3)-9)
    In cell D1 enter the formula: =MID($A3,LEN($A3)-7,2)
    In cell E1 enter the formula: =RIGHT($A3,5)

    Now I am back with a 4 line address vs 3.
    Star Corp
    Mr Smith
    123 Forth St
    San Jose CA 95111

    How do I get that to sorted out?
    Last edited by Myrkk; 09-16-2011 at 01:42 PM.

  2. #2
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996

    Re: Import Data

    With data structured like this:
    Company
    Name
    Street
    CityStateZip

    Samples for A1:A12....
    Alpha Corp
    Mr. Smith
    123 Fourth St
    San Jose CA 95111
    Star Corp
    Mr Banas
    345 Main street
    San Diego CA 95111
    Charlie Company
    David Smith
    999 Any Way
    Newville, MD 12345

    This formula begins listing the values this way:
    Company---Name---Street---CityStateZip

    Please Login or Register  to view this content.
    Copy that formula across through E1 and down as far as you need.

    With the sample data, these are the results for B1:E3
    Please Login or Register  to view this content.
    Is that something you can work with?
    Ron
    Former Microsoft MVP - Excel (2006 - 2015)
    Click here to see the Forum Rules

  3. #3
    Registered User
    Join Date
    03-30-2011
    Location
    San Jose
    MS-Off Ver
    Excel 2003
    Posts
    11

    Re: Import Data

    That works really well. Thank you so very much

    Quote Originally Posted by Ron Coderre View Post
    With data structured like this:
    Company
    Name
    Street
    CityStateZip

    Samples for A1:A12....
    Alpha Corp
    Mr. Smith
    123 Fourth St
    San Jose CA 95111
    Star Corp
    Mr Banas
    345 Main street
    San Diego CA 95111
    Charlie Company
    David Smith
    999 Any Way
    Newville, MD 12345

    This formula begins listing the values this way:
    Company---Name---Street---CityStateZip

    Please Login or Register  to view this content.
    Copy that formula across through E1 and down as far as you need.

    With the sample data, these are the results for B1:E3
    Please Login or Register  to view this content.
    Is that something you can work with?

+ 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