Results 1 to 8 of 8

*UPDATE* Rows of data to Columns of data *UPDATE*

Threaded View

a6ela *UPDATE* Rows of data to... 05-03-2010, 11:04 PM
rylo Re: Rows of data to Columns... 05-03-2010, 11:47 PM
Leith Ross Re: Rows of data to Columns... 05-04-2010, 12:06 AM
laaview Re: Rows of data to Columns... 05-04-2010, 12:29 AM
a6ela Re: Rows of data to Columns... 05-04-2010, 01:01 AM
a6ela Re: *UPDATE* Rows of data to... 05-04-2010, 03:00 AM
Leith Ross Re: *UPDATE* Rows of data to... 05-04-2010, 03:46 AM
Leith Ross Re: *UPDATE* Rows of data to... 05-04-2010, 11:30 AM
  1. #2
    Forum Expert
    Join Date
    01-15-2007
    Location
    Brisbane, Australia
    MS-Off Ver
    2007
    Posts
    6,591

    Re: Rows of data to Columns of data

    Hi

    The above can be obtained using formulas.

    E1: =IF((ROW()-1)*3>=COUNTA(A:A),"",OFFSET($A$1,(ROW()-1)*3,0))
    F1: =IF(E1="","",OFFSET($A$1,((ROW()-1)*3)+1,0))
    G1: =IF(E1="","",OFFSET($A$1,((ROW()-1)*3)+2,0))

    Copy down to match the relevant data.

    If you do really need a macro then try

    Sub aaa()
      outrow = 1
      For i = 1 To Cells(Rows.Count, 1).End(xlUp).Row Step 3
        Cells(outrow, "E").Value = Cells(i, 1).Value
        Cells(outrow, "F").Value = Cells(i + 1, 1).Value
        Cells(outrow, "G").Value = Cells(i + 2, 1).Value
        outrow = outrow + 1
      
      
      Next i
      
    End Sub

    HTH

    rylo
    Last edited by rylo; 05-03-2010 at 11:50 PM.

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