VBA Copy & Transpose with same value twice

Melimob

Active Member
Joined
Oct 16, 2011
Messages
396
Office Version
  1. 365
Hi

I wanted to copy a column from one sheet and transpose it to another in merged cells but could not get the code to work.
So, I thought instead I would get the destination row to take the cell value twice.

I.e.
Source Data
abc1
abc2
abc3

Destination Data
abc1 abc1 abc2 abc2 abc3 abc3

Can anyone please let me know the code for this as I've hunted and can't find.

Many thanks
 

Excel Facts

Which came first: VisiCalc or Lotus 1-2-3?
Dan Bricklin and Bob Frankston debuted VisiCalc in 1979 as a Visible Calculator. Lotus 1-2-3 debuted in the early 1980's, from Mitch Kapor.
Not sure I am understanding what you mean by "transpose it to another in merged cells"

Are all six values in one cell?
Are the repeats in one cell so that you have 3 horizontal cells?
Are all six values in six separate cells.?

Your illustration is not clear as presented.

For any of these, I am sure it can be accomplished with Power Query by transposing the data, and then duplicating the cells. Finally rearranging them according to the specifications based upon my ask above..
 
Upvote 0

Forum statistics

Threads
1,223,911
Messages
6,175,334
Members
452,636
Latest member
laura12345

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top