+ Reply to Thread
Results 1 to 7 of 7

copying specific range of rows from every 720th step to new sheet columnwise

  1. #1
    Registered User
    Join Date
    05-28-2012
    Location
    india
    MS-Off Ver
    Excel 2019
    Posts
    13

    copying specific range of rows from every 720th step to new sheet columnwise

    As per the excel file attached, you will observe that all data corresponding to pressure is enlisted in Column E from row number 12 and crank angle degrees in col D from same row number.
    Now the data acquisition package stacks all pressure row wise for 80 cycles. now i need to transfer the pressure value from the 215th crank angle
    (row 227) for each cycle which is 720 deg apart as you will see. Referring to the attached file Sheet 2 , i want that the 2nd row of each column of sheet 2 should give me the pressure value corresponding to 215 crank angle degree (column D) of each cycle 720 rows apart for the 80 cycles. I would then drag the new row values in sheet 2 to 500 rows to get the pressure values of interest in each cycle for the 80 cycles.

    I will appreciate any help on this as all subsequent calculation depend vitally on this.

    Obliged
    Regards

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

    Re: copying specific range of rows from every 720th step to new sheet columnwise

    Attach a sample workbook. Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.
    Quang PT

  3. #3
    Registered User
    Join Date
    05-28-2012
    Location
    india
    MS-Off Ver
    Excel 2019
    Posts
    13

    Re: copying specific range of rows from every 720th step to new sheet columnwise

    Please find the file attached.As you will observe that i have manually pasted the ranges of cylinder pressure from the first 2 cycles between row E227-E517 and that from E947-E1237 (highlighted) in sheet named ACTUAL.The starting points and ending row numbers are 720 rows apart correspondingly. Now i need to know as to how i can automate the procedure to get the pressure data between the same points for every cycle in columns in the DESIRED sheet.
    Thank you for reaching out
    Regards

    Rahul
    Attached Files Attached Files

  4. #4
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,724

    Re: copying specific range of rows from every 720th step to new sheet columnwise

    You can put this formula in B2 of the Desired sheet:

    =INDEX(INDIRECT("'ACTUAL'!E"&12+(COLUMNS($B:B)-1)*720&":E"&11+COLUMNS($B:B)*720),MATCH($A2,INDIRECT("'ACTUAL'!D"&12+(COLUMNS($B:B)-1)*720&":D"&11+COLUMNS($B:B)*720),0))

    then copy across and down as required.

    Hope this helps.

    Pete

  5. #5
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,724

    Re: copying specific range of rows from every 720th step to new sheet columnwise

    Actually, here's a simplified version of that formula in B2:

    =VLOOKUP($A2,INDIRECT("'ACTUAL'!D"&12+(COLUMNS($B:B)-1)*720&":E"&11+COLUMNS($B:B)*720),2,0)

    Hope this helps.

    Pete

  6. #6
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,724

    Re: copying specific range of rows from every 720th step to new sheet columnwise

    And here's one that doesn't use the volatile function INDIRECT:

    =VLOOKUP($A2,INDEX(ACTUAL!$D:$D,12+(COLUMNS($B:B)-1)*720):INDEX(ACTUAL!$E:$E,11+COLUMNS($B:B)*720),2,0)

    Hope this helps.

    Pete

  7. #7
    Registered User
    Join Date
    05-28-2012
    Location
    india
    MS-Off Ver
    Excel 2019
    Posts
    13

    Re: copying specific range of rows from every 720th step to new sheet columnwise

    ALL OF THEM WORK.
    THANK YOU. THANK YOU SO MUCH SIR. (YES I HAVE USED CAPS- BCS I WANNA SHOUT OUT)
    ITS AMAZING .Its for kind souls like you that we exist.
    REGARDS
    (Pls clear ur pm message box-its not going-saying your inbox is full...i want to send u a personal message)

+ 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] Macro copying rows to a new sheet based on a specific value
    By St3ff3ns in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 01-03-2018, 06:06 AM
  2. [SOLVED] Copying Rows containing a specific Cell text to a new sheet
    By St3ff3ns in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-22-2017, 07:04 AM
  3. Copying a range from Wks A to a specific range in Wks B into subseq blank rows in Wks B
    By Tanner2004 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-11-2013, 03:29 PM
  4. [SOLVED] Copying Rows from One Sheet to another pivoting off of specific info
    By livifivil in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 05-01-2013, 09:38 AM
  5. Copying rows from another sheet based on specific criteria
    By jamesbrown008 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-06-2011, 01:53 PM
  6. Copying specific range to another sheet
    By SVShankar in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 05-13-2009, 02:50 AM
  7. Macro for copying specific rows to a new sheet.
    By Chintu Raju in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 04-17-2008, 12:25 PM

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