+ Reply to Thread
Results 1 to 2 of 2

Copy 2nd,3rd, etc. rows below to a column based on number

  1. #1
    Registered User
    Join Date
    01-03-2017
    Location
    New York
    MS-Off Ver
    2013
    Posts
    0

    Copy 2nd,3rd, etc. rows below to a column based on number

    Hello Everyone,

    I am trying to find a way to copy & paste row data based on a number in column B (can't seem to paste the image here).

    Basically if the number is '2' in column B, I want to copy Column A's data from the row below to the current column and want to skip the column I copied from. I want to keep doing this loop for every two rows (if the column in B is '2').

    I want it to be every three rows if the number in column B is '3' and so on and so forth.

    The current formula I am using for two is this =OFFSET(A2,1,0).

    Trying to find a vba for this; thanks!

  2. #2
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,167
    Hello nickyD1985,

    Welcome to Excelforum. Be a part of large Excel community. Enjoy Learning.
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Copy rows/range and paste n number of times based on last used cell in Column A
    By skonduru in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-29-2016, 02:30 PM
  2. [SOLVED] Macro to copy rows based on a critera and copy the name of the column
    By dreddster in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 10-10-2013, 11:34 AM
  3. [SOLVED] insert rows based on number in cell and copy the data down into the new rows
    By pziefle in forum Excel Programming / VBA / Macros
    Replies: 14
    Last Post: 05-05-2013, 11:19 AM
  4. [SOLVED] Insert Multiple Rows Based Off Number in Cell and Copy Data From Above New Rows
    By tstell1 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-02-2012, 04:15 PM
  5. [SOLVED] Excel VBA/Macro - Copy Number of Rows based on the number in a cell to another sheet
    By diane.alexander58 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-15-2012, 11:32 AM
  6. [SOLVED] macro to copy rows based on number in column
    By amenu in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 04-03-2012, 06:02 AM
  7. How to do this? Copy rows down based on number...
    By davelarue in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 11-14-2008, 05:42 AM

Tags for this Thread

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