+ Reply to Thread
Results 1 to 13 of 13

Copy Data from one sheet to other to change data layout

  1. #1
    Valued Forum Contributor
    Join Date
    01-18-2007
    Location
    Georgia
    MS-Off Ver
    2010
    Posts
    4,434

    Copy Data from one sheet to other to change data layout

    Hello:

    I am trying to copy large amount of data from sheet1 to sheet2 to change the data layout.

    Please refer to attached sheet which shows the result i need in sheet2 (i have manually copied)


    Look for digit number like 1,2,3,4,5 and so on in Column A of Sheet1.
    Once found, copy data from column A to L for that particular row in Sheet2 starting at cell A2.
    Copy the next 2 row (1st 2 column) of data in sheet2 column M,N,O,P as shown in sheet2.

    I would appreciate if someone can help with this ASAP.

    Thanks a lot

    Riz
    Attached Files Attached Files
    Last edited by rizmomin; 11-29-2012 at 10:36 PM.

  2. #2
    Valued Forum Contributor
    Join Date
    01-18-2007
    Location
    Georgia
    MS-Off Ver
    2010
    Posts
    4,434

    Re: Copy Data from one sheet to other to change data layout

    Hello:

    I have uploaded updated attachment.

    Please help and Thanks

    Riz
    Attached Files Attached Files

  3. #3
    Forum Expert mike7952's Avatar
    Join Date
    12-17-2011
    Location
    Florida
    MS-Off Ver
    Excel 2007, Excel 2016
    Posts
    3,520

    Re: Copy Data from one sheet to other to change data layout

    Give this a try

    Please Login or Register  to view this content.
    Thanks,
    Mike

    If you are satisfied with the solution(s) provided, please mark your thread as Solved.
    Select Thread Tools-> Mark thread as Solved.

  4. #4
    Valued Forum Contributor
    Join Date
    01-18-2007
    Location
    Georgia
    MS-Off Ver
    2010
    Posts
    4,434

    Re: Copy Data from one sheet to other to change data layout

    Hi Mike:

    Thank you for your quick help.
    However, when I paste the code, some of the code turns red.
    Please check and let know.

    Thanks

    Riz

  5. #5
    Valued Forum Contributor
    Join Date
    01-18-2007
    Location
    Georgia
    MS-Off Ver
    2010
    Posts
    4,434

    Re: Copy Data from one sheet to other to change data layout

    Hi Mike:

    Thank u, your code works.
    However I have changed it little bit as :

    Look for digit number like 1,2,3,4,5 and so on in Column A of Sheet1.
    Once found, copy data from column A to L for that particular row in Sheet2 starting at cell A2.
    Copy the next 2 row (1st 2 column) of data in sheet2 column M,N,O,P as shown in sheet2.

    Please check my last uploaded excel file.

    Thank u so much

    Riz

  6. #6
    Forum Expert mike7952's Avatar
    Join Date
    12-17-2011
    Location
    Florida
    MS-Off Ver
    Excel 2007, Excel 2016
    Posts
    3,520

    Re: Copy Data from one sheet to other to change data layout

    See if this is correct. Should work on your last uploaded wb.

    Please Login or Register  to view this content.

  7. #7
    Valued Forum Contributor
    Join Date
    01-18-2007
    Location
    Georgia
    MS-Off Ver
    2010
    Posts
    4,434

    Re: Copy Data from one sheet to other to change data layout

    Hi Mike:

    I am sorry, but there is small change needed.

    copy data from column A to M for that particular row in Sheet2 starting at cell A2.
    Copy the next 2 row (1st 2 column) of data in sheet2 column N,O,P,Q in sheet2.

    Once again, I apologize, because of the complication of the data I have.

    Please send me uploaded code.

    Thank u so much.
    Riz

  8. #8
    Forum Expert mike7952's Avatar
    Join Date
    12-17-2011
    Location
    Florida
    MS-Off Ver
    Excel 2007, Excel 2016
    Posts
    3,520

    Re: Copy Data from one sheet to other to change data layout

    Ah I didnt change the last part highlighted in red. Change 15 to 16

    Please Login or Register  to view this content.

  9. #9
    Valued Forum Contributor
    Join Date
    01-18-2007
    Location
    Georgia
    MS-Off Ver
    2010
    Posts
    4,434

    Re: Copy Data from one sheet to other to change data layout

    Hi Mike:

    Still same result...

    Please have a look.

    Thanks
    Riz

  10. #10
    Valued Forum Contributor
    Join Date
    01-18-2007
    Location
    Georgia
    MS-Off Ver
    2010
    Posts
    4,434

    Re: Copy Data from one sheet to other to change data layout

    Hi Mike:

    I think we got it now.
    Let me check and I will let you know in few min.

    Thanks a bunch.

    Riz

  11. #11
    Forum Expert mike7952's Avatar
    Join Date
    12-17-2011
    Location
    Florida
    MS-Off Ver
    Excel 2007, Excel 2016
    Posts
    3,520

    Re: Copy Data from one sheet to other to change data layout

    IDK it working fine on my end. When you say still same result, what happens? See attatched wb. Click button.
    Attached Files Attached Files

  12. #12
    Valued Forum Contributor
    Join Date
    01-18-2007
    Location
    Georgia
    MS-Off Ver
    2010
    Posts
    4,434

    Re: Copy Data from one sheet to other to change data layout

    Hi Mike:

    You are great.
    Saved me bunch of hours.
    Its working....I will let you know if any further problem.

    Thanks
    Riz

  13. #13
    Forum Expert mike7952's Avatar
    Join Date
    12-17-2011
    Location
    Florida
    MS-Off Ver
    Excel 2007, Excel 2016
    Posts
    3,520

    Re: Copy Data from one sheet to other to change data layout

    Im glad its working. Please remember to mark the thread as solved. Aslo just so you know its not looking for numbers in column A. The code looks down Column I until it finds a cell that is not empty. Then uses that row.

+ 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