Results 1 to 3 of 3
  1. #1
    New Lounger
    Join Date
    Jan 2002
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    get data from columns to rows (2000)

    This ought to be easy for an Excel whiz. I have data arranged in a spreadsheet across three columns. data 1 in column a, data 2 in column b, data 3 in column c. This repeats one row down with data 4 in column a, data 5 in column b, data 6 in column c, etc.
    I would like all the data in serial order, data 1, data 2, data3, etc. in one column, top to bottom.
    Thanks in advance for any suggestions.
    Ed J.

  2. #2
    Silver Lounger
    Join Date
    Mar 2001
    Location
    Springfield, Ohio, USA
    Posts
    2,136
    Thanks
    0
    Thanked 1 Time in 1 Post

    Re: get data from columns to rows (2000)

    Ed, easy as a macro; too many paste special transposes in Excel. Assuming that you only have data in the first three columns, here is a macro that works for me:<pre>Option Explicit
    Sub Combine3()
    Dim c As Range
    Dim i As Integer
    i = 1
    For Each c In ActiveSheet.UsedRange.Cells
    ActiveSheet.Cells(i, 4) = c
    i = i + 1
    Next c
    End Sub</pre>

    If there is other data on the sheet, just paste the first three columns on a blank sheet and run the macro. HTH --Sam
    <font face="Comic Sans MS">Sam Barrett, CACI </font face=comic>
    <small>And the things that you have heard... commit these to faithful men who will be able to teach others also. 2 Timothy 2:2</small>

  3. #3
    New Lounger
    Join Date
    Jan 2002
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: get data from columns to rows (2000)

    Sam,
    Thanks a bunch! Worked great and saved me a lot of time. <img src=/S/bravo.gif border=0 alt=bravo width=16 height=30>
    Best,
    Ed J.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •