• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User


  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

Need help in copying varying columns from one sheet and pasting in another sheet by transposing


New Member
I have a requirement where i will have records with a key and values in multiple columns. I have the count of the values. I need macro help to copy the values and create multiple rows based on the number of columns. If there are 5 values in 5 columns for a key, i need to have 5 rows for that key value. I need to repeat this until all the records are copied in the source excel sheet.

I have created sample records. Sheet 1 has my input records and Sheet 2 has the expected view.

Need your support and help.