TRANSPOSE worksheet function: insert blank columns/rows?

bestofbreed

New Member
Joined
Mar 5, 2008
Messages
2
Hi all,

Am looking to transpose a list of items that are listed vertically so that they are listed horizontally. I know this can be achieved by highlighting the relevant target cells, keying in =transpose(XX:XX) where XX are the ranges, and then typing in Ctrl-Shift-Enter to lock it in as an array.

BUT

I want to be able to leave a blank column in between each item on the list that is being transposed to. So instead of

X
Y
Z transposing to XYZ, it now becomes X Y Z instead

Thanks a lot, and any help in this regard would be appreciated
 

Excel Facts

Square and cube roots
The =SQRT(25) is a square root. For a cube root, use =125^(1/3). For a fourth root, use =625^(1/4).
Hi

Maybe use a formula like:

<b>Sheet3</b><br /><br /><table border="1" cellspacing="0" cellpadding="0" style="font-family:Arial,Arial; font-size:10pt; background-color:#ffffff; padding-left:2pt; padding-right:2pt; "> <colgroup><col style="font-weight:bold; width:30px; " /><col style="width:64px;" /><col style="width:64px;" /><col style="width:64px;" /><col style="width:64px;" /><col style="width:64px;" /><col style="width:64px;" /><col style="width:64px;" /><col style="width:64px;" /><col style="width:64px;" /><col style="width:64px;" /><col style="width:64px;" /></colgroup><tr style="background-color:#cacaca; text-align:center; font-weight:bold; font-size:8pt; "><td > </td><td >A</td><td >B</td><td >C</td><td >D</td><td >E</td><td >F</td><td >G</td><td >H</td><td >I</td><td >J</td><td >K</td></tr><tr style="height:17px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >1</td><td >Rich</td><td > </td><td >Rich</td><td > </td><td >Terry</td><td > </td><td >Bob</td><td > </td><td >Dennis</td><td > </td><td >#REF!</td></tr><tr style="height:17px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >2</td><td >Terry</td><td > </td><td > </td><td > </td><td > </td><td > </td><td > </td><td > </td><td > </td><td > </td><td > </td></tr><tr style="height:17px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >3</td><td >Bob</td><td > </td><td > </td><td > </td><td > </td><td > </td><td > </td><td > </td><td > </td><td > </td><td > </td></tr><tr style="height:17px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >4</td><td >Dennis</td><td > </td><td > </td><td > </td><td > </td><td > </td><td > </td><td > </td><td > </td><td > </td><td > </td></tr></table><br /><table style="font-family:Arial; font-size:10pt; border-style: groove ;border-color:#00ff00;background-color:#fffcf9; color:#000000; "><tr><td ><b>Spreadsheet Formulas</b></td></tr><tr><td ><table border = "1" cellspacing="0" cellpadding="2" style="font-family:Arial; font-size:9pt;"><tr style="background-color:#cacaca; font-size:10pt;"><td >Cell</td><td >Formula</td></tr><tr><td >C1</td><td >=IF(MOD<span style=' color:008000; '>(COLUMNS<span style=' color:#0000ff; '>($A$1:A$1)</span>,2)</span>,INDEX<span style=' color:008000; '>($A$1:$A$4,INT<span style=' color:#0000ff; '>(COLUMNS<span style=' color:#ff0000; '>($A$1:A$1)</span>/2)</span>+1)</span>,"")</td></tr></table></td></tr></table>


formula in C1 is copied across
 
Upvote 0
Wonderfull, but I have bit problem, I need to paste this in to different sheet may be from Sheet1 to Sheet2 how can I do that
 
Upvote 0
Hi

You can use exactly the same formula, just make sure the INDEX portion points to the source data sheet (nothing else should need to change):

=IF(MOD(COLUMNS($A$1:A$1),2),INDEX(Sheet1!$A$1:$A$4,INT(COLUMNS($A$1:A$1)/2)+1),"")
 
Upvote 0

Forum statistics

Threads
1,224,524
Messages
6,179,310
Members
452,906
Latest member
phanmemchatdakenhupviral

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