+ Reply to Thread
Results 1 to 4 of 4

how to copy cells data in every 7th row?

  1. #1
    Jeff
    Guest

    how to copy cells data in every 7th row?

    Hi,
    I have a column of data from A2 to A65000 and I am only interested in
    every 7th data point (e.g. A2, A9, A16....). Is there a way to get those
    selected points and store them in the next column (B) consecutviely (b1, b2,
    b3, b4, ...)?

    Thanks,

    Jeff


  2. #2
    Toppers
    Guest

    RE: how to copy cells data in every 7th row?

    Jeff,

    Sub Get7()
    Dim outrng As Range
    Dim i As Long
    Set outrng = Range("b1")
    Lastrow=cells(rows.count,1).end(xlup).row
    For i = 2 To lastrow Step 7
    outrng = Cells(i, 1)
    Set outrng = outrng.Offset(1, 0)
    Next i
    End Sub


    HTH

    "Jeff" wrote:

    > Hi,
    > I have a column of data from A2 to A65000 and I am only interested in
    > every 7th data point (e.g. A2, A9, A16....). Is there a way to get those
    > selected points and store them in the next column (B) consecutviely (b1, b2,
    > b3, b4, ...)?
    >
    > Thanks,
    >
    > Jeff
    >


  3. #3
    David Billigmeier
    Guest

    RE: how to copy cells data in every 7th row?

    Place this in B1 and drag down:

    =OFFSET($A$2,(ROW()-1)*7,0)

    *Note that if you place it in any other row besides the first you'll have to
    do some slight modification from the way it is currently written

    --
    Regards,
    Dave


    "Jeff" wrote:

    > Hi,
    > I have a column of data from A2 to A65000 and I am only interested in
    > every 7th data point (e.g. A2, A9, A16....). Is there a way to get those
    > selected points and store them in the next column (B) consecutviely (b1, b2,
    > b3, b4, ...)?
    >
    > Thanks,
    >
    > Jeff
    >


  4. #4
    Tom Ogilvy
    Guest

    Re: how to copy cells data in every 7th row?

    =Indirect("A" & (row()-1)*7+2) in B1 then drag fill down.

    --
    Regards,
    Tom Ogilvy

    "Jeff" <[email protected]> wrote in message
    news:[email protected]...
    > Hi,
    > I have a column of data from A2 to A65000 and I am only interested in
    > every 7th data point (e.g. A2, A9, A16....). Is there a way to get those
    > selected points and store them in the next column (B) consecutviely (b1,

    b2,
    > b3, b4, ...)?
    >
    > Thanks,
    >
    > Jeff
    >




+ 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