+ Reply to Thread
Results 1 to 4 of 4

Copy range and transposing multiple times on a new worksheet

  1. #1
    Forum Expert dosydos's Avatar
    Join Date
    12-09-2015
    Location
    Massachusetts
    MS-Off Ver
    365(PC) V:2308
    Posts
    1,474

    Copy range and transposing multiple times on a new worksheet

    I need a macro that will:
    1) Copy B1:E1 on the PIVOT tab and Transpose the information onto SheetII starting on cell B2. I also need these 4 transposed cells to be repeated until the last row of column A which will change monthly so it needs to be dynamic.

    I have included a workbook with example data and what end results should look like.
    Please let me know if i need to explain better or differently.

    thank you ahead of time.
    Attached Files Attached Files

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

    Re: Copy range and transposing multiple times on a new worksheet

    Agghh. I've just seen you want a macro. FWIW, here's a formula-based solution, just in case...

    A2:
    =IFERROR(INDEX(PIVOT!$A$2:$A$26,1+INT((ROWS($1:1)-1)/8)),"")

    Adjust ranges and paste as far as needed.

    B2:
    =IF(A2="","",INDEX(PIVOT!$B$1:$E$1,,1+MOD(INT((ROWS($1:1)-1)/2),4)))

    I went by the desired result layout, rathr than the Sheet 2 layout. They are not the same!!!
    Attached Files Attached Files
    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

  3. #3
    Forum Expert dosydos's Avatar
    Join Date
    12-09-2015
    Location
    Massachusetts
    MS-Off Ver
    365(PC) V:2308
    Posts
    1,474

    Re: Copy range and transposing multiple times on a new worksheet

    Glenn Kennedy

    Re: Copy range and transposing multiple times on a new worksheet
    Agghh. I've just seen you want a macro. FWIW, here's a formula-based solution, just in case...

    A2:
    =IFERROR(INDEX(PIVOT!$A$2:$A$26,1+INT((ROWS($1:1)-1)/8)),"")

    Adjust ranges and paste as far as needed.

    B2:
    =IF(A2="","",INDEX(PIVOT!$B$1:$E$1,,1+MOD(INT((ROWS($1:1)-1)/2),4)))

    I went by the desired result layout, rathr than the Sheet 2 layout. They are not the same!!!
    Thanks for the reply. unfortunately I need a macro. As for the difference between SheetII and desired results... I was trying to show the inbetween stage of the original transpose. The desired results which shows the duplicated cells in the transpose is the correct way.

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

    Re: Copy range and transposing multiple times on a new worksheet

    Ah well... At least I tried...

+ 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 range multiple times in other sheet
    By Groovicles in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-20-2016, 04:05 PM
  2. [SOLVED] Copy Worksheet Multiple Times to New Workbook, In Order
    By cchase22 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-09-2015, 04:39 PM
  3. copy range multiple times across sheets
    By naishro1 in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 04-01-2014, 06:06 AM
  4. [SOLVED] Transposing columns and known rows multiple times
    By aprcamb in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 06-06-2013, 03:55 AM
  5. Need macro help with transposing columns to rows and repeat a row value multiple times
    By InnovativeAJ in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-11-2012, 11:53 AM
  6. Copy a Range multiple times
    By alocke in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-18-2011, 12:29 AM
  7. copy a row multiple times according to a range of data
    By stakar in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-25-2009, 10:25 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