+ Reply to Thread
Results 1 to 2 of 2

copy & paste

Hybrid View

  1. #1
    Registered User
    Join Date
    03-23-2012
    Location
    Elberta, AL
    MS-Off Ver
    Excel 2010
    Posts
    2

    copy & paste

    I have a very large spreadsheet. I have data that is in a range of cells in every 7th row. I need copy that data (different in every 7the row) to blank cells in the same columns in the next 6 rows. It will take hours to do it manually. Can anybody help me out?

  2. #2
    Forum Expert Paul's Avatar
    Join Date
    02-05-2007
    Location
    Wisconsin
    MS-Off Ver
    2016/365
    Posts
    6,887

    Re: copy & paste

    Hi Giraffamusme, welcome to the forum.

    Does this example sound correct.. You have data in A1:Z1, A8:Z8, A15:Z15, etc. and you simply want to fill A2:Z6 with the values from A1:Z1, A9:A14 with the values from A8:Z8, etc.?

    If so, the following macro should work:
    Sub filldown()
    Dim i As Long, lastrow As Long
    lastrow = Range("A" & Rows.Count).End(xlUp).Row
    
    For i = 1 To lastrow Step 7
        Range("A" & i & ":Z" & i).Resize(7, 26).filldown
    Next i
    End Sub
    Another, non-macro option would be (assuming the same data setup):
    1. Select A1:Z21 (6 rows past your last row of data, 21 is an example if your last row of data was Z15).
    2. Press F5 then click Special...
    3. Select Blanks and click OK
    4. Type the following formula (A2 should be selected): =A1
    5. Press CTRL+ENTER, not just ENTER

    This will fill all empty cells with the value from the cell above it.

+ 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