+ Reply to Thread
Results 1 to 6 of 6

How to copy every n rows from 3 sheet to 1 sheet

  1. #1
    Registered User
    Join Date
    05-29-2020
    Location
    iran
    MS-Off Ver
    2016
    Posts
    8

    How to copy every n rows from 3 sheet to 1 sheet

    Hi. I have a worksheet wich has 4 sheets.
    I want to copy values in every n rows in 3 sheets to one sheet. Maybe i cannot explain my problem good but as i attached the worksheet you can easily see what the problem is. I want to know what formula should i use??? (Please see my worksheet) thanks
    Attached Files Attached Files

  2. #2
    Registered User
    Join Date
    05-29-2020
    Location
    Indiana, USA
    MS-Off Ver
    M365
    Posts
    27

    Re: How to copy every n rows from 3 sheet to 1 sheet

    Greetings!

    Not sure if this helps, I look at this a bit differently. I'd consider rearranging your data by type. I did a lookup across the sheets. (Example attached)

    Formula: copy to clipboard
    Please Login or Register  to view this content.

    G2 = student number
    Math!$A$2:$B$7 is where it will look for G2.
    When it finds it, it'll return the column 2.
    Attached Files Attached Files

  3. #3
    Forum Expert
    Join Date
    02-10-2019
    Location
    Georgia, USA
    MS-Off Ver
    Office 365
    Posts
    2,832

    Re: How to copy every n rows from 3 sheet to 1 sheet

    Two Options:
    In C1 enter:
    =INDEX(Math!$B$1:$B$5,MATCH('Ma-Ph-Ch'!B1,Math!$A$1:$A$5,0))
    C2:
    =INDEX(Physics!$B$1:$B$5,MATCH('Ma-Ph-Ch'!B2,Physics!$A$1:$A$5,0))
    C3:
    =INDEX(Chemistry!$B$1:$B$5,MATCH('Ma-Ph-Ch'!B3,Chemistry!$A$1:$A$5,0))

    Then select all three and drag them all down.

    OR, if you have the sheet names the same as what's in Col A, you could try this in C1:
    =INDEX(INDIRECT(A1&"!B$1:B$5"),MATCH('Ma-Ph-Ch'!B1,INDIRECT(A1&"!$A$1:$A$5"),0))
    and copy this one formula down.

  4. #4
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,466

    Re: How to copy every n rows from 3 sheet to 1 sheet

    Or:
    Please Login or Register  to view this content.
    Quang PT

  5. #5
    Registered User
    Join Date
    05-29-2020
    Location
    iran
    MS-Off Ver
    2016
    Posts
    8

    Re: How to copy every n rows from 3 sheet to 1 sheet

    Quote Originally Posted by Gregb11 View Post
    Two Options:
    In C1 enter:
    =INDEX(Math!$B$1:$B$5,MATCH('Ma-Ph-Ch'!B1,Math!$A$1:$A$5,0))
    C2:
    =INDEX(Physics!$B$1:$B$5,MATCH('Ma-Ph-Ch'!B2,Physics!$A$1:$A$5,0))
    C3:
    =INDEX(Chemistry!$B$1:$B$5,MATCH('Ma-Ph-Ch'!B3,Chemistry!$A$1:$A$5,0))

    Then select all three and drag them all down.

    OR, if you have the sheet names the same as what's in Col A, you could try this in C1:
    =INDEX(INDIRECT(A1&"!B$1:B$5"),MATCH('Ma-Ph-Ch'!B1,INDIRECT(A1&"!$A$1:$A$5"),0))
    and copy this one formula down.
    Quote Originally Posted by bebo021999 View Post
    Or:
    Please Login or Register  to view this content.
    thank you all . blue one woked best.

  6. #6
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    81,008

    Re: How to copy every n rows from 3 sheet to 1 sheet

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

+ 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. VBA to copy all rows in any sheet with 1 in column A and copy entire row to specific sheet
    By Lazarus Rises in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 07-21-2020, 02:17 AM
  2. Automatically copy rows to another sheet based on criteria, when original sheet is updated
    By NoviceProgrammer in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-29-2016, 02:14 AM
  3. Replies: 2
    Last Post: 04-16-2014, 07:19 PM
  4. Copy diff cells of a sheet & paste in a NEW row below previously filld rows of other sheet
    By shubhashishdubey in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-27-2014, 12:36 AM
  5. Replies: 1
    Last Post: 01-07-2013, 12:23 AM
  6. [SOLVED] Copy row from sheet 1 to next row in sheet 2. delete from sheet 1 and move rows up
    By papabob1954 in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 12-16-2012, 09:38 PM
  7. Macro: Count rows in sheet A, copy count in sheet B, paste offset in sheet A
    By Agent:Orange in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-19-2011, 07:56 AM

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