+ Reply to Thread
Results 1 to 17 of 17

Match or Lookup Formula For Address Spreadsheet

  1. #1
    Registered User
    Join Date
    10-16-2012
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    8

    Match or Lookup Formula For Address Spreadsheet

    I am having a tremendously hard time trying to locate information on exactly what I am trying to do. Any help would be greatly appreciated.
    The Problem:
    I have a need to enter large amounts of USPS Addresses into a specific format. I am trying to automate this process if possible. The biggest problem of course is that the data I receive is never formatted correctly. For instance, I need to format the following addresses...
    21715 Filigree Ct. Ashburn VA 20147
    901 E St NW Washington DC 20004
    706 Giddings Ave. Annapolis MD 21401
    149 State St. Montpelier VT 05602
    730 Peachtree St. NE Atlanta GA 30308
    44 East Avenue Austin TX 78701

    Into the following format...
    addresses.png

    I'm not even sure if this is possible but I would like to find a way to separate all the fields into the appropriate columns automatically. I have even gone as far as adding a tab that has all of the US cities and states in case I need to do some sort of lookup.

    Please help!

    Thanks
    Last edited by jchapman74; 10-16-2012 at 01:19 PM.

  2. #2
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Match or Lookup Formula For Address Spreadsheet

    You get better help if you post an excel example without confidentional information.
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

  3. #3
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Match or Lookup Formula For Address Spreadsheet

    Hi,

    Are the addresses you show all in a single column of cells?
    If so you could start by using Data Text To Columns, using the space character as a separator, to split them into columns.

    Then you'd need to identify those rows which only have 6 values and move the last three fields across by one field. However whilst this will work with your limited example, if your actual data has different formats then you may find it doesn't work and you'll need to identify the differences and apply some similar corrrections.
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  4. #4
    Registered User
    Join Date
    10-16-2012
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    8

    Re: Match or Lookup Formula For Address Spreadsheet

    Thanks for the response. I have tried exactly that and the data varies so much that it doesn't always work.

  5. #5
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Match or Lookup Formula For Address Spreadsheet

    That's what I thought. Can you identify the different conditions then filter the data to display all relevant rows and change them en bloc. Then pick the next condition and repeat until you've changed them all.

  6. #6
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Match or Lookup Formula For Address Spreadsheet

    See this file, maybe it helps.
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    10-16-2012
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    8

    Re: Match or Lookup Formula For Address Spreadsheet

    Quote Originally Posted by Richard Buttrey View Post
    That's what I thought. Can you identify the different conditions then filter the data to display all relevant rows and change them en bloc. Then pick the next condition and repeat until you've changed them all.
    Forgive my ignorance but I'm not sure I understand what you mean. Are you referring to a macro or something?

    Thanks

  8. #8
    Registered User
    Join Date
    10-16-2012
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    8

    Re: Match or Lookup Formula For Address Spreadsheet

    Thank you so much for the file. Unfortunately, it needs to be able to break out if there is a E/W direction etc. This is the part that has me the most confused. I was thinking if there was a way I could create a formula that would look at a different tab and search for a string (city, state, direction) and then populate it in the appropriate column that might work. For instance, if the address is in Atlanta, there would be a lookup against the city list I have in sheet 2 and then Atlanta would be populated in the City column. I hope I'm making sense here.

  9. #9
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Match or Lookup Formula For Address Spreadsheet

    It could be done by this actions (i nummered them).

    See if you can do it this way.

    Please reply if you can use it.
    Attached Files Attached Files

  10. #10
    Forum Expert Kevin UK's Avatar
    Join Date
    12-07-2010
    Location
    Radstock, Somerset
    MS-Off Ver
    365
    Posts
    1,922

    Re: Match or Lookup Formula For Address Spreadsheet

    Hi jchapman74

    Have you tried a Google search for Macros, plenty of them out there.

  11. #11
    Registered User
    Join Date
    10-16-2012
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    8

    Re: Match or Lookup Formula For Address Spreadsheet

    Oldere, thank you so much! I think this will work! I am going to try it with a larger sample and report back to you.

  12. #12
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Match or Lookup Formula For Address Spreadsheet

    Thank for the reply (for now).

    I hope it will help you.

  13. #13
    Registered User
    Join Date
    10-16-2012
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    8

    Re: Match or Lookup Formula For Address Spreadsheet

    Oeldere,
    I have been working on this the past couple days trying to figure out how to insert your formulas into the spreadsheet I have started. It doesn't seem to be working due to cells contents being a formula instead of data. Any ideas? I have attached what I am working on.

    Thanks,
    Attached Files Attached Files

  14. #14
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Match or Lookup Formula For Address Spreadsheet

    Maybe, you can add the data in the file.

    After that show us, in the same file, the wanted result.

  15. #15
    Registered User
    Join Date
    10-16-2012
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    8

    Re: Match or Lookup Formula For Address Spreadsheet

    Attached is how it is working and how I need it to look. Thank you for all your help.Address Separator Spreadsheet-Test2.xlsx

  16. #16
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Match or Lookup Formula For Address Spreadsheet

    See if you also get the data in the bleu cells if you run macro 1.

    I am not that good with macro's, but just take a look (test) if this is what you're up to.

    Then someone else can clean it (the macro) up.
    Attached Files Attached Files

  17. #17
    Registered User
    Join Date
    10-16-2012
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    8

    Re: Match or Lookup Formula For Address Spreadsheet

    Oeldere, I have not had a chance to do any more testing with this. I've been tied up on a project. I will let you know when I am able to test. Thanks again for your help.

+ 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