+ Reply to Thread
Results 1 to 13 of 13

List to table

Hybrid View

marcov List to table 03-05-2007, 05:05 AM
Carim Hi, ... 03-05-2007, 05:14 AM
marcov Hi Carim! Thanks for your... 03-05-2007, 05:30 AM
VBA Noob Can you post an example of... 03-05-2007, 05:40 AM
marcov Hi VBA noob :) OK. My data... 03-05-2007, 05:51 AM
VBA Noob Where did entry5 go and how... 03-05-2007, 05:53 AM
marcov ooops correction, the output... 03-05-2007, 05:54 AM
Carim may be ... ... 03-05-2007, 06:02 AM
marcov AHHH YES! That worked,... 03-05-2007, 06:36 AM
  1. #1
    Registered User
    Join Date
    03-05-2007
    Posts
    6
    Hi Carim!

    Thanks for your attention, but I didn't express my problem clearly.
    I need to break up a one column list list into several columns, so the result becomes a table, in this case with 3 columns:

    entry1 entry6 entry11
    entry2 entry7 entry12
    entry3 entry8 entry13
    entry4 entry9 entry14
    entry5 entry10 entry15

    Been working with this for some hours now, pretty fed up. Really hope somebody knows...

    - Marco

  2. #2
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    Can you post an example of your data layout and expected results

    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
    03-05-2007
    Posts
    6
    Hi VBA noob

    OK. My data layout is a column which I need to break up into a table with several columns. The original layout has empty cells where it is supposed to start a new column. So:

    entry1
    entry2
    entry3
    entry4

    entry5
    entry6
    entry7
    entry8

    should become a table with two columns and 4 rows:

    entry1
    entry6
    entry2
    entry7
    entry3
    entry8
    entry4
    entry9
    Can this be done without writing a macro?

    - Marco

  4. #4
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    Where did entry5 go and how did you get entry9

    What are the cell references

    Easier if you attach a file.


    VBA Noob

  5. #5
    Registered User
    Join Date
    03-05-2007
    Posts
    6
    ooops correction, the output should be (2 columns, 4 rows):

    entry1 entry5
    entry2 entry6
    entry3 entry7
    entry4 entry8

  6. #6
    Forum Expert Carim's Avatar
    Join Date
    04-07-2006
    Posts
    4,070
    may be ...
    =OFFSET($A$1,MOD(ROW()-1,5)+(COLUMN()-1)*5,0)
    P.S. replace 5 by 4 for your last example ...
    Last edited by Carim; 03-05-2007 at 06:05 AM.
    HTH
    Carim


    Top Excel Links

  7. #7
    Registered User
    Join Date
    03-05-2007
    Posts
    6
    AHHH YES!

    That worked, thanks a lot

    Sorry I didn't attach the xls file, the upload failed...

    - Marco

  8. #8
    Forum Expert Carim's Avatar
    Join Date
    04-07-2006
    Posts
    4,070
    Glad your problem is fixed ...

    Thanks for the feedback

+ 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