+ Reply to Thread
Results 1 to 11 of 11

Pulling company name, street address, city, state, and zip from address

  1. #1
    Registered User
    Join Date
    07-09-2015
    Location
    Georgia
    MS-Off Ver
    2010
    Posts
    6

    Pulling company name, street address, city, state, and zip from address

    Hello all,

    I am working on a "find a retailer" app for my company's webpage and a manager at the company [won't say name] gave me their excel file from another application and all of the addresses are in the format below:

    R & R FLOORING PO BOX 426 ALDEN, MN 56009

    Name Address1 Address2 City State Postal code Country Phone <-- this is the required format for the information i need for list


    I am not very proficient with Excel although I found some codes/macros on this forum that allowed me to whittle most of the content to just the street, state, and zip. I still need to pull the company name out as well as the state without the tagalong numbers that come from the street in the address. I am attaching my file so you guys can see what I'm working with here and see what I have done.

    P.S I have done some searching on the forum and can only people with no solution but I'm hoping someone can work with what I've whittled the given information down to. Any help will be greatly appreciated!
    Attached Files Attached Files

  2. #2
    Forum Contributor
    Join Date
    10-13-2012
    Location
    Southern California
    MS-Off Ver
    Excel 2007
    Posts
    401

    Re: Pulling company name, street address, city, state, and zip from address

    This file is not perfect... but it should get you going and it might be a bit easier to work with.
    I wish I had more time to work on it, but right now I do not.
    Attached Files Attached Files

  3. #3
    Forum Contributor
    Join Date
    10-13-2012
    Location
    Southern California
    MS-Off Ver
    Excel 2007
    Posts
    401

    Re: Pulling company name, street address, city, state, and zip from address

    Not all of the cities are correct, specifically the ones with two or more words in them. (Dollar Bay, MI, Hilton Head SC, Sun City West, for example.)

    The Canada addresses are not correct.

    But you said "any help" appreciated and I think this is more than what you had.

  4. #4
    Registered User
    Join Date
    07-09-2015
    Location
    Georgia
    MS-Off Ver
    2010
    Posts
    6

    Re: Pulling company name, street address, city, state, and zip from address

    Yes that is definitely an improvement on what I had, thanks for your help!

  5. #5
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,834

    Re: Pulling company name, street address, city, state, and zip from address

    Try the attached.
    This is not perfect but I hope this could reduce your work...
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    07-09-2015
    Location
    Georgia
    MS-Off Ver
    2010
    Posts
    6

    Re: Pulling company name, street address, city, state, and zip from address

    Thanks Jindon, much JDM love

  7. #7
    Registered User
    Join Date
    07-09-2015
    Location
    Georgia
    MS-Off Ver
    2010
    Posts
    6

    Re: Pulling company name, street address, city, state, and zip from address

    I just realized that I forgot to include the phone numbers for the company corresponding with the address info. I hate to ask this after getting immediate help with what I had but could anyone help with this file. I was going to copy and paste them but then i realized they don't match up correctly because some companies aren't there. Mostly because they were names I guess. Thanks for any help ahead of time, you guys are the awesome!
    Attached Files Attached Files

  8. #8
    Forum Contributor
    Join Date
    10-13-2012
    Location
    Southern California
    MS-Off Ver
    Excel 2007
    Posts
    401

    Re: Pulling company name, street address, city, state, and zip from address

    Your Addresses2.xlsx file, with Jindon's macro (with a few additions by me). No rows were removed.

    addresses3.xlsm

  9. #9
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,834

    Re: Pulling company name, street address, city, state, and zip from address

    Just a little alteration...
    Regarding address with PO Box, it is the best I can do.
    It will be more accurate if StAdd can be refined/added items properly.
    However, I don't think it can be perfect...
    Please Login or Register  to view this content.
    Attached Files Attached Files
    Last edited by jindon; 07-10-2015 at 06:47 PM. Reason: File attached

  10. #10
    Registered User
    Join Date
    07-09-2015
    Location
    Georgia
    MS-Off Ver
    2010
    Posts
    6

    Re: Pulling company name, street address, city, state, and zip from address

    Thanks for the help, what language are you coding in here?

  11. #11
    Registered User
    Join Date
    07-09-2015
    Location
    Georgia
    MS-Off Ver
    2010
    Posts
    6

    Re: Pulling company name, street address, city, state, and zip from address

    Quote Originally Posted by Ed_Collins View Post
    Your Addresses2.xlsx file, with Jindon's macro (with a few additions by me). No rows were removed.

    Attachment 406480
    Quote Originally Posted by jindon View Post
    Just a little alteration...
    Regarding address with PO Box, it is the best I can do.
    It will be more accurate if StAdd can be refined/added items properly.
    However, I don't think it can be perfect...
    Please Login or Register  to view this content.

    Thanks so much for both of you guys' help! This is an awesome place for an excel novice.

+ 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. Separating Street Address City State Zip that only contain spaces
    By tp5887 in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 06-27-2015, 02:52 PM
  2. City, State Segregation from Address
    By Mohanmoni in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-14-2015, 04:49 PM
  3. [SOLVED] Split Address In City & State Wise
    By Mohanmoni in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-31-2015, 08:14 PM
  4. Extracting city state zip out of nasty address field
    By silvertrace in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 01-21-2015, 09:35 PM
  5. How to get rid of the city and state in the address?
    By excel1212 in forum Excel General
    Replies: 2
    Last Post: 09-08-2012, 05:30 PM

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