+ Reply to Thread
Results 1 to 6 of 6

Copy a column's cell value into a new sheet where it skips every 4 rows

  1. #1
    Registered User
    Join Date
    03-22-2017
    Location
    Arizona
    MS-Off Ver
    Office 365 32-bit
    Posts
    14

    Copy a column's cell value into a new sheet where it skips every 4 rows

    I am using the MACRO below and it is working but I need to do this for 50 rows and eventually up to 4 or 500. Is there an easier macro to accomplish this without having to reference each row? I am copying the Tracking Number (Column A) in the Data Tab to column B in the Audit Data tab.

    Please Login or Register  to view this content.
    Attached Files Attached Files
    Last edited by Glenn Kennedy; 10-19-2023 at 03:51 AM.

  2. #2
    Forum Expert
    Join Date
    08-17-2007
    Location
    Poland
    Posts
    2,525

    Re: Copy a column's cell value into a new sheet where it skips every 4 rows

    Please Login or Register  to view this content.
    Artik

  3. #3
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: Copy a column's cell value into a new sheet where it skips every 4 rows

    Patchpollito... please remember to use code tags around your code. I've added them in your opening post.
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU

  4. #4
    Registered User
    Join Date
    03-22-2017
    Location
    Arizona
    MS-Off Ver
    Office 365 32-bit
    Posts
    14

    Re: Copy a column's cell value into a new sheet where it skips every 4 rows

    Thank YOU, Artik! This worked! Question, if I were to apply this to another workbook where there are more or less rows to skip in the "Audit Data" tab would I have to change something in the macro?

  5. #5
    Registered User
    Join Date
    03-22-2017
    Location
    Arizona
    MS-Off Ver
    Office 365 32-bit
    Posts
    14

    Re: Copy a column's cell value into a new sheet where it skips every 4 rows

    Thank you, Glenn! I apologize for my lack of knowledge but I don't know what code tags are. Appreciate the education
    Last edited by patchpollito1; 10-19-2023 at 12:27 PM.

  6. #6
    Forum Expert
    Join Date
    08-17-2007
    Location
    Poland
    Posts
    2,525

    Re: Copy a column's cell value into a new sheet where it skips every 4 rows

    This loop declaration
    Please Login or Register  to view this content.
    says that it will start inserting data from row #2, while Step says the number of rows to be skipped in the next rotation of the loop (more precisely, 4 rows will be skipped, and in the fifth one the next value will be inserted).


    Quote Originally Posted by patchpollito1 View Post
    I don't know what code tags are.
    You can insert code tags in three ways:
    1. before you paste the code, use the [#] icon and then between the [code] tags you get, paste your code.
    2. first paste the code, then select it in its entirety and use the [#] icon.
    3. you can also type the tags manually. Before you use this method, see how the tags inserted in step 1 or 2 look like.

    Artik

+ 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. Formula that skips rows when Copy Pasted
    By yourik in forum Excel General
    Replies: 3
    Last Post: 08-30-2018, 02:35 AM
  2. Increment Cell Address every other Column (Currently skips)
    By jtnb in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 07-03-2017, 03:53 PM
  3. Replies: 9
    Last Post: 05-27-2015, 06:28 AM
  4. copy a formula that skips rows
    By mo2982 in forum Excel General
    Replies: 2
    Last Post: 06-09-2014, 10:41 AM
  5. Copy rows into new sheet based on cell/column data
    By StagemanGraham in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-13-2012, 08:11 PM
  6. Copy rows from master sheet to other sheets if certain cell in column is blank
    By nadiaraciti in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-29-2011, 02:05 AM
  7. How to copy formulas when it skips rows?
    By ladyjammie in forum Excel General
    Replies: 3
    Last Post: 01-29-2008, 07:06 PM

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