COPY UPSIDE DOWN DATA to one column with formula?

abosiiqi

New Member
Joined
Jul 23, 2014
Messages
6
[TABLE="class: cms_table_grid, width: 500, align: left"]
<tbody>[TR]
[TD]A[/TD]
[TD]B[/TD]
[TD]C[/TD]
[TD]D[/TD]
[/TR]
[TR]
[TD]as1[/TD]
[TD]be1[/TD]
[TD]cu1[/TD]
[TD]di1[/TD]
[/TR]
[TR]
[TD]as2[/TD]
[TD]be2[/TD]
[TD]cu2[/TD]
[TD]di2[/TD]
[/TR]
[TR]
[TD]as3[/TD]
[TD]be3[/TD]
[TD]cu3[/TD]
[TD]di3[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Result (That i need):[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]as1[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]as2[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]as3[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]be1[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]be2[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]be3[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]cu1[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]cu2[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]cu3[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]???[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]


Hello all, is that possible to make a formula for other data on "???", my data need to compile as one column? and the pattern like upside down..:confused:

Thanks,


Ammar
 
Assuming you start at the cell A6

Code:
=INDEX($A$1:$D$3,MOD(ROWS(A$6:A6)+2,3)+1,INT((ROW()-ROW($A$6))/3)+1)


Thank you very much , but what if my case like this?
if i use that formula with this condition, the result was not as4 but be1 what should i change??
[TABLE="class: cms_table_cms_table_grid, width: 500, align: left"]
<tbody>[TR]
[/TR]
[TR]
[TD]A[/TD]
[TD]B[/TD]
[TD]C[/TD]
[TD]D[/TD]
[/TR]
[TR]
[TD]as1[/TD]
[TD]be1[/TD]
[TD]cu1[/TD]
[TD]di1[/TD]
[/TR]
[TR]
[TD]as2[/TD]
[TD]be2[/TD]
[TD]cu2[/TD]
[TD]di2[/TD]
[/TR]
[TR]
[TD]as3[/TD]
[TD]be3[/TD]
[TD]cu3[/TD]
[TD]di3[/TD]
[/TR]
[TR]
[TD]as4[/TD]
[TD]be4[/TD]
[TD]cu4[/TD]
[TD]di4[/TD]
[/TR]
[TR]
[TD]Result (That i need):[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]as1[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]as2[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]as3[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]as4 (if i use that formula this column value is = be1) ??[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]be1[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
 
Upvote 0
Hi abosiiqi,

Here is a crazy complicated formula. However, this is a robust formula dependent on your data range. So there would be no need to tweak the formula each time your data range changes. One formula shows the numbers listed down by column. The other formula shows the numbers listed down row. Use C-S-E, then copy down


Excel 2012
ABCD
1adgj
2behk
3cfil
4mxno
5
6aa
7db
8gc
9jm
10bd
11ee
12hf
13kx
14cg
15fh
16ii
17ln
18mj
19xk
20nl
21oo
Sheet1
Cell Formulas
RangeFormula
A6{=IFERROR(INDEX($A$1:$D$4,INT(SMALL(IF($A$1:$D$4<>"",(ROW($A$1:$D$4)-ROW($A$1)+1)*10^9+COLUMN($A$1:$D$4)-COLUMN($A$1)+1),ROWS($A$6:A6))/10^9),MOD(SMALL(IF($A$1:$D$4<>"",(ROW($A$1:$D$4)-ROW($A$1)+1)*10^9+COLUMN($A$1:$D$4)-COLUMN($A$1)+1),ROWS($A$6:A6)),10^9)),"")}
C6{=IFERROR(INDEX($A$1:$D$4,MOD(SMALL(IF($A$1:$D$4<>"",(ROW($A$1:$D$4)-ROW($A$1)+1)*10^9+COLUMN($A$1:$D$4)-COLUMN($A$1)+1),ROWS($C$6:C6)),10^9),INT(SMALL(IF($A$1:$D$4<>"",(ROW($A$1:$D$4)-ROW($A$1)+1)*10^9+COLUMN($A$1:$D$4)-COLUMN($A$1)+1),ROWS($C$6:C6))/10^9)),"")}
Press CTRL+SHIFT+ENTER to enter array formulas.
 
Upvote 0

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