+ Reply to Thread
Results 1 to 7 of 7

Advanced Text To Columns

  1. #1
    Registered User
    Join Date
    12-17-2012
    Location
    Carrollton, TX
    MS-Off Ver
    Excel 2010
    Posts
    20

    Advanced Text To Columns

    Hi,

    I have a spreadsheet that has a whole set of address data in each cell for quite a few rows. I cannot figure out how to get it separate out into separate columns for address #1 (the location), address #2 (the street address), city, state, and zip. The way the data is in each cell is not consistent with the spacing.

    I've attached the spreadsheet I'm trying to work with. I'm referring to column D (it was easy enough to separate out the info that is now in column C).

    Thanks so much!

    Michael
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    10-09-2012
    Location
    Dallas, Texas
    MS-Off Ver
    MO 2010 & 2013
    Posts
    3,049

    Re: Advanced Text To Columns

    Yikes, this looks like a giant pain.

    Is there not a way to ask for the data in a standardized manner?
    Please ensure you mark your thread as Solved once it is. Click here to see how.
    If a post helps, please don't forget to add to our reputation by clicking the star icon in the bottom left-hand corner of a post.

  3. #3
    Registered User
    Join Date
    12-17-2012
    Location
    Carrollton, TX
    MS-Off Ver
    Excel 2010
    Posts
    20

    Re: Advanced Text To Columns

    We are trying to get the data in a better format, but so far no luck. I have had no luck making this work so far myself or by reaching out to folks here at work. I'm thinking there's bound to be somebody who has run across this before and found a solution!

  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,137

    Re: Advanced Text To Columns

    Horrible. No real pattern. However try BF & I. Brute Force and Ignorance.
    Attached Files Attached Files
    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

  5. #5
    Forum Expert Arkadi's Avatar
    Join Date
    02-13-2014
    Location
    Smiths Falls, Ontario, Canada
    MS-Off Ver
    Office 365
    Posts
    5,059

    Re: Advanced Text To Columns

    Considering sometimes there isn't even a space before the city name, I don't see how this can be done. Without ANY pattern whatsoever, code won't be able to do this. A macro can probably be created to work with many of the scenarios, but you'll still have errors in the data no matter what (afaik)
    Please help by:

    Marking threads as closed once your issue is resolved. How? The Thread Tools at the top
    Any reputation (*) points appreciated. Not just by me, but by all those helping, so if you found someone's input useful, please take a second to click the * at the bottom left to let them know

    There are 10 kinds of people in this world... those who understand binary, and those who don't.

  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,137

    Re: Advanced Text To Columns

    Simpler formula that might also work for State and ZIP.

    =IFERROR(TRIM(MID(D2,FIND(",",D2)+1,255)),"")

  7. #7
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Advanced Text To Columns

    Unfortunately, the data is very inconsistent and this what makes this task very difficult.

    Please see attached file.
    Attached Files Attached Files
    If you like my answer please click on * Add Reputation
    Don't forget to mark threads as "Solved" if your problem has been resolved

    "Nothing is so firmly believed as what we least know."
    --Michel de Montaigne

+ 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. Vba: Advanced Filter - Non Contiguous Columns
    By vidyuthrajesh in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-20-2014, 12:35 PM
  2. advanced filter for two uneven columns
    By jrtaylor in forum Excel General
    Replies: 2
    Last Post: 06-09-2011, 01:49 PM
  3. Excel 2007 : Advanced comparing two columns
    By Moerz77 in forum Excel General
    Replies: 9
    Last Post: 06-03-2011, 06:51 PM
  4. Replies: 2
    Last Post: 11-04-2008, 07:12 PM
  5. Replies: 3
    Last Post: 12-20-2007, 03:50 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