+ Reply to Thread
Results 1 to 7 of 7

Formula to create multiple address fields using data in single field

  1. #1
    Registered User
    Join Date
    10-30-2015
    Location
    La Porte, TX USA
    MS-Off Ver
    Office 365 version - MAC Version 2011
    Posts
    4

    Question Formula to create multiple address fields using data in single field

    Hello - i am trying to create a formula that would determine certain data criteria in a single field - if the criteria meets the criteria, then I need to perform actions on that data - if not - the data is left alone. Example of this data is below. I have multiple patterns of data in one column (Address 1) and depending on the data found, I take an action or not ...
    Address 1 Address2 City State Zip
    2120 Victoria Ln Freeport TX 77541
    11400 Bay Area Boulevard Pasadena TX 77507-1712
    11499 Bay Area Boulevard, Suite 100 Pasadena TX 77507-1712
    P O Box 448 Channelview TX 775300448
    P O Box 2487 Freeport TX 77542

    1) as you can see above - 2120 Victoria Ln in Freeport TX is the end result of what i need my data to look like - it is 5 fields and I need the address information split out into the appropriate fields
    2) I never know how long or the length of each string of data in ADDRESS 1 ...
    3) Some Zip codes in the string are 5 characters, some 9 (without the dash) and some 10 (with the dash)
    4) Some have Address 2 information like Suite, Room or even a # sign
    5) I have over 4500 lines of data which i need to perform this formula action against.

    I appreciate any support, suggestions, etc..
    Thanks,

    Rick Hogan
    VP, Sales and Operations
    Attached Files Attached Files
    Last edited by MrHo1956; 10-30-2015 at 05:33 PM.

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,926

    Re: Formula to create multiple address fields using data in single field

    Hi, welcome to the forum

    Often, a copy/paste here doesnt quite turn out the way you intended - this is 1 of those times

    I suggest you upload a small (clean) sample workbook (not a pic) of what you are working with, and what your expected outcome would look like.
    To attach a file to your post,
    click advanced (next to quick post),
    scroll down until you see "manage file",
    click that and select "add files" (top right corner).
    click "select files" find your file, click "open" click "upload" click 'done" bottom right. click "submit reply"

    Once the upload is completed the file name will appear below the input boxes in this window.
    You can then close the window to return to the new post screen.
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Registered User
    Join Date
    10-30-2015
    Location
    La Porte, TX USA
    MS-Off Ver
    Office 365 version - MAC Version 2011
    Posts
    4

    Re: Formula to create multiple address fields using data in single field

    Thanks for the advice ... i included a short version of the mailing list as a sampling showing desired results vs those instances that are not ... Thx

  4. #4
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,926

    Re: Formula to create multiple address fields using data in single field

    I am probably having "1 of those days" I am not sure what you want. What part if your raw (orginal) data, and which part if your requirement?

  5. #5
    Registered User
    Join Date
    10-30-2015
    Location
    La Porte, TX USA
    MS-Off Ver
    Office 365 version - MAC Version 2011
    Posts
    4

    Re: Formula to create multiple address fields using data in single field

    Hello - sorry for the confusion - in the sampling data attached - there is a column that says desired outcome ... that is what i want all the data to look like. The other data where all the address including city, state and zip are in Address 1 field is what i need split out to the other 5 fields accordingly that looks just like those labeled 'desired outcome' ... Hope this makes sense ...

  6. #6
    Registered User
    Join Date
    10-10-2015
    Location
    Houston
    MS-Off Ver
    2013
    Posts
    26

    Re: Formula to create multiple address fields using data in single field

    You said you have over 4500 lines of data. Just looking at a few lines in your spreadsheet there seem to be so many variations.

    For example what are the rules to distinguish the street name from the city. The street name can have multiple words and so can the city.

    All the data after the last space can get you the zip code and the data between the 2nd last and last space can get you the state.

    But then like in line 8 and 9 how can you tell that city is La Porte and not just Porte

  7. #7
    Registered User
    Join Date
    10-30-2015
    Location
    La Porte, TX USA
    MS-Off Ver
    Office 365 version - MAC Version 2011
    Posts
    4

    Re: Formula to create multiple address fields using data in single field

    Yes - I have over 4500 lines of data - the sampling represents all the different varieties of lines of data that will be encountered. The lines that say 'desired outcome' in the note column is correct data - i don't need to modify those lines but, they exist in the data ... i can sort those down and not have to encounter them in a script if i need to - but i'm showing what the other lines of data need to end up looking like. You are correct in your assumptions as those are ones I already made - which is reason for my post - i don't know how to overcome them ... Thanks.

+ 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. Splitting a single address field
    By budvegas in forum Excel General
    Replies: 2
    Last Post: 06-16-2015, 08:12 AM
  2. [SOLVED] Create Auto Populated list Field based off multiple fields
    By alendor in forum Excel General
    Replies: 4
    Last Post: 04-22-2014, 11:38 AM
  3. Replies: 4
    Last Post: 06-01-2012, 10:05 AM
  4. Replies: 2
    Last Post: 02-27-2012, 09:16 PM
  5. Create single string for address from multiple cells
    By level3ninja in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-28-2011, 08:45 PM
  6. Create a nesting formula w/ multiple conditions based on fields w/VLOOKUP
    By NiqueDomie in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-14-2011, 09:59 AM
  7. single Email address from one sheet - multiple data from another
    By Buffyslay in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-14-2006, 04:40 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