+ Reply to Thread
Results 1 to 11 of 11

VBA Insert multiply rows and Transpose from Row to Column

  1. #1
    Registered User
    Join Date
    06-14-2015
    Location
    Nottingham, England
    MS-Off Ver
    2010
    Posts
    5

    Question VBA Insert multiply rows and Transpose from Row to Column

    Hi,

    Could you please help me on the below.
    I need transform the top table to the bottom table using Loop.

    Name Age English Maths Science
    Adam 24 1 2 3
    John 32 4 5 6
    Lisa 12 9 8 7



    Name Age Subject Score
    Adam 24 English 1
    Adam 24 Maths 2
    Adam 24 Science 3
    John 32 English 4
    John 32 Maths 5
    John 32 Science 6
    Lisa 12 English 9
    Lisa 12 Maths 8
    Lisa 12 Science 7


    Any feedback is much appreciated.

    Thanks.

  2. #2
    Forum Guru karedog's Avatar
    Join Date
    10-03-2014
    Location
    Indonesia
    MS-Off Ver
    2003
    Posts
    2,971

    Re: VBA Insert multiply rows and Transpose from Row to Column

    Hi,


    Please Login or Register  to view this content.


    Regards
    1. I care dog
    2. I am a loop maniac
    3. Forum rules link : Click here
    3.33. Don't forget to mark the thread as solved, this is important

  3. #3
    Registered User
    Join Date
    06-14-2015
    Location
    Nottingham, England
    MS-Off Ver
    2010
    Posts
    5

    Re: VBA Insert multiply rows and Transpose from Row to Column

    Bingo!! That's exactly what I needed. Thank you very much for your help.

  4. #4
    Forum Guru karedog's Avatar
    Join Date
    10-03-2014
    Location
    Indonesia
    MS-Off Ver
    2003
    Posts
    2,971

    Re: VBA Insert multiply rows and Transpose from Row to Column

    You are welcome, glad I can help.


    Regards

  5. #5
    Registered User
    Join Date
    06-14-2015
    Location
    Nottingham, England
    MS-Off Ver
    2010
    Posts
    5

    Re: VBA Insert multiply rows and Transpose from Row to Column

    Above is a small example of the big table I have.
    I was hoping to be able to alter from your answer above and to use it on over 200 Contracts (Cntractx) and 800 people (Rows) But I can't.
    Could you please help?

    Name City County Detail ID Cntract1 Cntract2 Cntract3 ..........................
    A Pboro Cambs SDec14 NGE £100 £200 £300 ...............................
    B Lei Leis SDec14 KDJ £743 £378 £783 ...............................
    C Bham Midlands UMay15 JEK £222 £2,780 £89 ................................
    D Glgow Scotland UMay15 DJE £398 £989 £898 ................................
    .
    .
    .
    .

    Thanks.

  6. #6
    Forum Guru karedog's Avatar
    Join Date
    10-03-2014
    Location
    Indonesia
    MS-Off Ver
    2003
    Posts
    2,971

    Re: VBA Insert multiply rows and Transpose from Row to Column

    Could you upload a copy of your workbook ?
    I only need first 5 rows of the data.

  7. #7
    Registered User
    Join Date
    06-14-2015
    Location
    Nottingham, England
    MS-Off Ver
    2010
    Posts
    5

    Re: VBA Insert multiply rows and Transpose from Row to Column

    Please find file attached.
    Many thanks.
    Attached Files Attached Files

  8. #8
    Forum Guru karedog's Avatar
    Join Date
    10-03-2014
    Location
    Indonesia
    MS-Off Ver
    2003
    Posts
    2,971

    Re: VBA Insert multiply rows and Transpose from Row to Column

    Here we go :

    Please Login or Register  to view this content.

    Regards

  9. #9
    Registered User
    Join Date
    06-14-2015
    Location
    Nottingham, England
    MS-Off Ver
    2010
    Posts
    5

    Re: VBA Insert multiply rows and Transpose from Row to Column

    Perfect!! Thank you so much.

  10. #10
    Forum Contributor
    Join Date
    07-11-2012
    Location
    india
    MS-Off Ver
    Excel 2010
    Posts
    144

    Re: VBA Insert multiply rows and Transpose from Row to Column

    Hi TCookie,

    Please find the attachment. I have resolved it.

    Copy of Book1.xlsm
    Ravikumar,

    * Please Add Reputation if solved.

  11. #11
    Forum Guru karedog's Avatar
    Join Date
    10-03-2014
    Location
    Indonesia
    MS-Off Ver
    2003
    Posts
    2,971

    Re: VBA Insert multiply rows and Transpose from Row to Column

    You are welcome, glad I can help.


    Regards

+ 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 to insert rows and transpose values into new rows.
    By b3ntran in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 12-30-2014, 02:17 AM
  2. Insert rows and then transpose data from a horizontal row into a column
    By Winescape in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-13-2014, 11:45 PM
  3. Replies: 1
    Last Post: 01-24-2014, 06:20 PM
  4. [SOLVED] Need Help w/Macro that Insert Rows, Copy Row, and Transpose to Column
    By hiroki3296 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-01-2012, 10:27 AM
  5. Insert rows, transpose data from column in to rows, in steps
    By mchevalier in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-01-2012, 08:14 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