+ Reply to Thread
Results 1 to 5 of 5

Separating Name and Address with No Delimiter

Hybrid View

  1. #1
    Registered User
    Join Date
    04-22-2009
    Location
    Baltimore, Maryland
    MS-Off Ver
    Excel 2003
    Posts
    5

    Question Separating Name and Address with No Delimiter

    Hi!
    I have a spreadsheet with over 3000 rows.
    There is a column in the sheet that contains name and address, combined. My goal is to separate out the name into one column and the address into the other. Since there is no real delimiter between the two and since there is no fixed number of words in the string, I am having trouble finding an answer. Can someone please help or possibly offer a macro that might do the job? Below are a few examples of the text string:

    AARON W BENT 13 SLETH LOW MOUNTAIN ROAD RIDGFELD CT 06877
    ABE SMITH 3585 STONEWYCK PL MONROW TWP NJ 08831-2671
    ABE DOE 2189 SCHOOL ROAD WEST HEMPSTEAD NY 11552
    LISA NAYMARK 198-4 ROMEO CT HOLLYWOOD NY 11423-1309

    I am somewhat experienced in excel but definitely not an expert.
    Thank you, thank you thank you!!

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

    Re: Separating Name and Address with No Delimiter

    This may help

    http://www.eggheadcafe.com/conversat...eadid=30753295
    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
    04-22-2009
    Location
    Baltimore, Maryland
    MS-Off Ver
    Excel 2003
    Posts
    5

    Re: Separating Name and Address with No Delimiter

    Thank you for the link.
    However, I'm not familiar with code or anything involving VB.
    I can cut and paste code into a macro but as far as understanding what it says, i'm completely lost.
    I was hoping someone might be able to provide a macro or a more specific formula that might do the job?

  4. #4
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Separating Name and Address with No Delimiter

    if all your cells have name followed by number namexxxxxx 123 blah blah
    asuming first is in a1
    then in b1
    =TRIM(LEFT(A1,FIND(MID(A1,MIN( FIND({0,1,2,3,4,5,6,7,8,9},A1&"0123456789")),1),A1)-1))
    in c1
    =MID(A1,FIND(MID(A1,MIN( FIND({0,1,2,3,4,5,6,7,8,9},A1&"0123456789")),1),A1),255)
    dragged down
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  5. #5
    Registered User
    Join Date
    04-22-2009
    Location
    Baltimore, Maryland
    MS-Off Ver
    Excel 2003
    Posts
    5

    Talking Re: Separating Name and Address with No Delimiter

    WOW. Thank you!
    That worked PERFECTLY

+ 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