+ Reply to Thread
Results 1 to 7 of 7

Thread: Taking long list in one column and separating it

  1. #1
    Registered User
    Join Date
    04-02-2009
    Location
    South Carolina
    MS-Off Ver
    Excel 2003
    Posts
    3

    Taking long list in one column and separating it

    I am a newbie to this forum so please excuse me if this has been covered, but I don't think it has.

    I deal with long lists of words that are in one column. These lists can get up to 15,000 words.

    What I would like to do is take that list and separate it into groups of 40 or 50 so I can then use my data.

    Is there a formula or macro or something that can take this lists and separate them for me so I don't have to do it manually?

    I really appreciate any help I can get here.

    Thanks

  2. #2
    Forum Guru VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    12,010

    Re: Taking long list in one column and separating it

    Maybe a macro would help

    Try

    Sub InsertRow()
    Dim LastRow As Long
    Dim i As Long
    LastRow = Cells(Rows.Count, "A").End(xlUp).Row
        Application.ScreenUpdating = False
            For i = 51 To LastRow Step 51
                Cells(i, "A").Insert
            Next i
        Application.ScreenUpdating = True
        
    End Sub
    VBA Noob
    _________________________________________


    Credo Elvem ipsum etian vivere
    _________________________________________
    A message for cross posters

    Please remember to wrap code.

    Forum Rules

    Please add to your signature if you found this link helpful. Excel links !!!

  3. #3
    Registered User
    Join Date
    04-02-2009
    Location
    South Carolina
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: Taking long list in one column and separating it

    Thats awesome.

    It does work... but now you're going to kill me because I am going to make it complicated.

    By the way I greatly appreciate this help.

    Is there a way I can get each subgroup to move into it's own column?

  4. #4
    Forum Guru VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    12,010

    Re: Taking long list in one column and separating it

    A before and after example workbook would be useful

    Also may not be able to look at it now until the weekend

    VBA Noob
    _________________________________________


    Credo Elvem ipsum etian vivere
    _________________________________________
    A message for cross posters

    Please remember to wrap code.

    Forum Rules

    Please add to your signature if you found this link helpful. Excel links !!!

  5. #5
    Registered User
    Join Date
    04-02-2009
    Location
    South Carolina
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: Taking long list in one column and separating it

    Ok I attached a workbook.

    The first worksheet is before and the next is after.

    Even though the number of words in each column is different and supposed to be the same, I hope it still makes sense.

    But again I was hoping there is a relatively easy macro or scrip that can separate the first list (all in one column) into multiple lists (in different columns).

    Thanks again...

    Dan
    Attached Files Attached Files

  6. #6
    Forum Guru VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    12,010

    Re: Taking long list in one column and separating it

    Can't see a pattern

    200 rows into 44,42,41,37,35 rows. 5 x 40 would be better

    VBA Noob
    _________________________________________


    Credo Elvem ipsum etian vivere
    _________________________________________
    A message for cross posters

    Please remember to wrap code.

    Forum Rules

    Please add to your signature if you found this link helpful. Excel links !!!

  7. #7
    Valued Forum Contributor
    Join Date
    01-18-2005
    Location
    Auckland New Zealand
    MS-Off Ver
    Office Professional 2007
    Posts
    291

    Re: Taking long list in one column and separating it

    Try the attached worksheet, uses a formula solution.

    The formula in B1 contains the number of rows you want in each group, 50 in this example. If you require a different number, change the formula accordingly, copy it down that number of rows, then across as many columns as required (which will be x/y where x is the number of rows of data divided by y which is the number of rows in each column)

    (Delete any previous formula cells from rows that you do not require)

    hth
    regards
    Mike
    Attached Files Attached Files
    Last edited by Mikeopolo; 04-02-2009 at 05:54 PM. Reason: Omitted one step of the process

+ 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.2.0