+ Reply to Thread
Results 1 to 3 of 3

text-to-columns problem

  1. #1
    Registered User
    Join Date
    04-16-2007
    Posts
    2

    text-to-columns problem

    Hi,

    So I'm making a mail merge and the person who entered the address data on excel didn't make a seperate column for city, state, zip (meaning I have street number, address, and city, state, zip all in the same cell!). I want it to move city, state, zip to a new column so the merge can format to a three-line address properly but without good delimiting I don't know how to do it cleanly.

    Anyone know how to do it? I kinda think Excel can recognize an address and autoformat properly but I don't know how to tell it to do so.

    Thanks!

  2. #2
    Forum Expert Paul's Avatar
    Join Date
    02-05-2007
    Location
    Wisconsin
    MS-Off Ver
    2016/365
    Posts
    6,887
    That I know of, Excel doesn't recognize addresses. You need to use formulas or vba code to separate out the parts.

    The problem is, if you don't have a consistent delimeter, or something other than a space, you're in for a long night. If you have something like:

    1 East 42nd St., New York, NY, 11201

    Then it's easy enough to separate using commas as the delimeter. If, however, you have something like:

    1 East 42nd St. New York NY 11201, the only think you can hope to accomplish is use text to columns using spaces and then recombine and shift data manually.

    If all your entries ended in 5-digit zip codes you could easily pull that out. Same goes for states (if they're all two char. abbreviations).

    Street and City, however, would be ugly, since there can be many parts to a street address, and anywhere from 1-4 parts of a city name.

    Does this make sense?

  3. #3
    Registered User
    Join Date
    04-16-2007
    Posts
    2
    Yeah, I have something like the second condition you described. I guess next time I should prep the Excel sheet myself!

    I didn't think about just using the spaces as a delimiter and then recombining, but that's not much better than exporting the merge to word and manually reformatting. Luckily the list is only 340 names... rather than 10000 plus I used to work with.

    Thanks for the 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