+ Reply to Thread
Results 1 to 9 of 9

Splitting data

  1. #1
    Registered User
    Join Date
    01-13-2009
    Location
    US
    MS-Off Ver
    Excel 2003
    Posts
    5

    Splitting data

    I need to split data into 2 columns.

    For instance...

    City, state 29785
    city, state 29767
    city, state 29719



    I need the zip codes to be pushed to the next column, to column 'D' to be exact. I already tried using the "text to columns" function. I selected "delimited" file type and used "2". it pushed the data to the next column everytime there was a 2. The problem is, there are 2's in the middle of the zip code sometimes. Also, it gets rid of all the 2's. Also, I can't use the "fixed width" option because there are some city/states that have more letters in them obviously, so the column is not a perfect width, if that makes any sense. Any help would be greatly appreciated as this is a column with 6,062 rows so it will be tough and tedious to do it all by hand.
    Last edited by Bhelms; 01-13-2009 at 01:53 AM.

  2. #2
    Forum Contributor mewingkitty's Avatar
    Join Date
    09-29-2008
    Location
    Fort McMurray, Alberta, Canada
    MS-Off Ver
    Excel 2003
    Posts
    949

    mew?

    Please Login or Register  to view this content.
    If your info starts in a1, and copy it down as far as you need to.

    Takes the 6 right-most characters from a.

    If you need to split them permanently we can do that too, just lemme know.
    =IF(AND(OR(BLONDE,BRUNETTE,REDHEAD),OR(MY PLACE,HER PLACE),ME),BOW-CHICKA-BOW-WOW,ANOTHER NIGHT ON THE INTERNET)

  3. #3
    Registered User
    Join Date
    01-13-2009
    Location
    US
    MS-Off Ver
    Excel 2003
    Posts
    5
    How do I use that? And its all in Column C. I need the city, State to remain in C and the zip codes to go to column D.

  4. #4
    Forum Contributor mewingkitty's Avatar
    Join Date
    09-29-2008
    Location
    Fort McMurray, Alberta, Canada
    MS-Off Ver
    Excel 2003
    Posts
    949

    Like so

    See attachment.

    I've got some instructions on there, try it on this worksheet, I'm not sure if the one you're working on is set up in such a fashion that it'll interfere with how I have this done.

    Oh, yeah, almost forgot.
    Just press the big button.

    mew.
    Attached Files Attached Files
    Last edited by mewingkitty; 01-13-2009 at 01:23 AM.

  5. #5
    Registered User
    Join Date
    01-13-2009
    Location
    US
    MS-Off Ver
    Excel 2003
    Posts
    5
    I did what it said, But maybe I am missing something. It just copied the same zip code from C1 to each row in D. I attached a file. I need all those zip codes in the next column, but also deleted from the original column. One issue is, a few rows say "serving the SC area". However, thats not a huge problem if they get moved over cause I can just go back and fix that manually since its just a few I believe. If I am just missing something about your original fix, lemme know and I can give it another try.
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    01-13-2009
    Location
    US
    MS-Off Ver
    Excel 2003
    Posts
    5
    Nevermind. Your edit fixed everything. That works great. I will just go through and move the "serving the SC area" text back in place unless there is a simple way of making it only move numbers.

  7. #7
    Forum Contributor mewingkitty's Avatar
    Join Date
    09-29-2008
    Location
    Fort McMurray, Alberta, Canada
    MS-Off Ver
    Excel 2003
    Posts
    949

    Well,

    I can make it do pretty much anything, I just need to know what it's supposed to be doing. I wasn't aware of a "serving the sc area" anywhere in the strings I was working with.

    EDIT:

    Attached is your full list with the "serving sc area" intact and all zip codes seperated.
    Attached Files Attached Files
    Last edited by mewingkitty; 01-13-2009 at 01:50 AM.

  8. #8
    Registered User
    Join Date
    01-13-2009
    Location
    US
    MS-Off Ver
    Excel 2003
    Posts
    5
    Done. Hours of work done in a flash Thanks for everything, I really really appreciate it. It took no time to move the few rows of text that got moved over. Thanks again!

  9. #9
    Forum Contributor mewingkitty's Avatar
    Join Date
    09-29-2008
    Location
    Fort McMurray, Alberta, Canada
    MS-Off Ver
    Excel 2003
    Posts
    949
    no problem,
    I'm trying to get used to VBA so it's good practice for me.

    Remember to flag your thread as solved!

+ 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