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

Does the VLOOKUP table have to be sorted?
No! when you are using an exact match, the VLOOKUP table can be in any order. Best-selling items at the top is actually the best.
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,246
Messages
6,170,996
Members
452,373
Latest member
TimReeks

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