+ Reply to Thread
Results 1 to 10 of 10

Split Company Name and Address into multiple Cells

  1. #1
    Spammer
    Join Date
    11-21-2014
    Location
    California
    MS-Off Ver
    2010
    Posts
    387

    Split Company Name and Address into multiple Cells

    I am working through a listing of close to 1000 companies, and the format given to me on it is really no bueno.

    All of the data is located in column A without any type of text dilineator between the Company name, Address, etc.... except for a space.

    But because each line has a different number of words/spaces, Text to Columns based off of space wont work. Any thoughts on how to split?

    Ideally, would like columns

    Company Name
    Address
    Address 2 (if there is a Suite)
    City
    State
    Zip
    Phone number

    Even if we could just get Company name and address separated that would work.

    Logically, I think it would have to be something like if there is a Space followed by a number, then move it to the following cell... but I've no clue how to split via macro

    Sample file shows one line of how I have received the info.
    Attached Files Attached Files

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,053

    Re: Split Company Name and Address into multiple Cells

    Not easy... not made easier with ONE sample, which probably is not representative of your real data. Towns with two word names, suites always called suites.... etc.

    Please upload a representative sample, not one.
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  3. #3
    Spammer
    Join Date
    11-21-2014
    Location
    California
    MS-Off Ver
    2010
    Posts
    387

    Re: Split Company Name and Address into multiple Cells

    Here is a bigger sampling
    Attached Files Attached Files

  4. #4
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,053

    Re: Split Company Name and Address into multiple Cells

    First issue:

    AEgis Technologies M 410 Jan Davis Drive, NW Huntsville, AL 35806-4545 256-922-0802

    Is the M part of the name or part of the address???

  5. #5
    Spammer
    Join Date
    11-21-2014
    Location
    California
    MS-Off Ver
    2010
    Posts
    387
    Quote Originally Posted by Glenn Kennedy View Post
    First issue:

    AEgis Technologies M 410 Jan Davis Drive, NW Huntsville, AL 35806-4545 256-922-0802

    Is the M part of the name or part of the address???
    Part of the name

  6. #6
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,053

    Re: Split Company Name and Address into multiple Cells

    Second issue: What zip code do you want:
    ODU-USA, Inc. 4010 Adolfo Rd Camarillo, CA 93012-6793 Tel: 805-484-0540

  7. #7
    Spammer
    Join Date
    11-21-2014
    Location
    California
    MS-Off Ver
    2010
    Posts
    387

    Re: Split Company Name and Address into multiple Cells

    5 digit zip code is all that is needed for the US. 6 if Canada... but I can separate that out with text to columns

  8. #8
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,053

    Re: Split Company Name and Address into multiple Cells

    I had a look at this using formulae. It doesn't handle Italian addresses at all!! (row 21).

    I do not know how to deal with 2-word city names. I can pull a one-word city name from column C to give you an address and a city name in two columns... but Boca would appear in the address and Raton would be the city name. any ideas??

    it doesn't handle entries that have no tel. no. well. Unfortunately, they are not all preceeded by "Tel:", so I can't use that.

    See sheet....
    Attached Files Attached Files

  9. #9
    Spammer
    Join Date
    11-21-2014
    Location
    California
    MS-Off Ver
    2010
    Posts
    387

    Re: Split Company Name and Address into multiple Cells

    WOW!File looks great...... I appreciate it, and I suppose need to get better with arrays.

    How to split out the city... that is a tough one.

    And will take some playing around.... I suppose to just at minimum get the 1 word city that can just do something like

    Please Login or Register  to view this content.
    Right?

    One other thought That I have is with a simple "find/replace" If we convert things like "Suite" to ",Suite" then can do text to column searching for the punctuation delimiter and get those into their own column.

    Then at at least that info gets pulled out separately, and can pull the city names from those cells? It wont be perfect as it wont capture things like "floor" but I think those exceptions are something that can be handled manually.

    Your thoughts?

  10. #10
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,053

    Re: Split Company Name and Address into multiple Cells

    Red face... I forgot about you.

    This is as far as I can go with this...I hope it's helped a bit...


    If that takes care of your original question, please select "Thread Tools" from the menu link above and mark this thread as SOLVED.

    It'd also be appreciated if you were to click the Add Reputation button at the foot of any of the posts of all members who helped you reach a solution.
    Attached Files Attached Files

+ 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. Pulling company name, street address, city, state, and zip from address
    By UNREAL2K4 in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 07-13-2015, 12:53 PM
  2. Split an Address in one cell into multiple cells using a formula
    By excelnovice2007 in forum Excel General
    Replies: 8
    Last Post: 01-22-2015, 10:49 AM
  3. [SOLVED] Split cells postcode from address
    By dsthome in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 09-10-2013, 02:15 AM
  4. Removing prefix on email address to leave company name in field
    By ecommerabmercer in forum Excel General
    Replies: 4
    Last Post: 12-07-2009, 12:54 PM
  5. Search on company name to auto input company address
    By jamie.c in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 06-12-2009, 12:38 PM
  6. automatic input company name & address pressing branch #
    By MEI in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-12-2006, 10:10 AM
  7. [SOLVED] how to split address blocks across multiple cells
    By JoannaF in forum Excel Formulas & Functions
    Replies: 13
    Last Post: 05-02-2006, 07:25 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