haruspication
New Member
- Joined
- Jan 19, 2012
- Messages
- 17
Hi all.
I'm looking for a formula to skip blank columns starting in row 2 (horizontal list) and transpose only those cells with values into a single column list. Then, I'd like to move down to row 3 and continue to add only cells with values to the bottom of the new vertical list, and so on.
Any suggestions?
[TABLE="class: grid, width: 600"]
<tbody>[TR]
[TD][/TD]
[TD="align: center"]A[/TD]
[TD="align: center"]B[/TD]
[TD="align: center"]C[/TD]
[TD="align: center"]D[/TD]
[TD="align: center"]E[/TD]
[TD="align: center"]F[/TD]
[TD="align: center"]I[/TD]
[/TR]
[TR]
[TD]1
[/TD]
[TD][/TD]
[TD]Apr[/TD]
[TD]May[/TD]
[TD]June[/TD]
[TD][/TD]
[TD]Orders[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]Item1[/TD]
[TD]25[/TD]
[TD]0[/TD]
[TD]30[/TD]
[TD][/TD]
[TD]25 (from row 2)[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]Item2[/TD]
[TD]0[/TD]
[TD]19[/TD]
[TD]0[/TD]
[TD][/TD]
[TD]30 (from row 2)[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]Item3[/TD]
[TD]35[/TD]
[TD]0[/TD]
[TD]30[/TD]
[TD][/TD]
[TD]19 (from row 3)[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]5[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]35 (from row 4)[/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]30 (from row 4)[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
I have figured out a good formula for skipping blank rows, but not for skipping blank columns across an array of many rows.
I'm looking for a formula to skip blank columns starting in row 2 (horizontal list) and transpose only those cells with values into a single column list. Then, I'd like to move down to row 3 and continue to add only cells with values to the bottom of the new vertical list, and so on.
Any suggestions?
[TABLE="class: grid, width: 600"]
<tbody>[TR]
[TD][/TD]
[TD="align: center"]A[/TD]
[TD="align: center"]B[/TD]
[TD="align: center"]C[/TD]
[TD="align: center"]D[/TD]
[TD="align: center"]E[/TD]
[TD="align: center"]F[/TD]
[TD="align: center"]I[/TD]
[/TR]
[TR]
[TD]1
[/TD]
[TD][/TD]
[TD]Apr[/TD]
[TD]May[/TD]
[TD]June[/TD]
[TD][/TD]
[TD]Orders[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]Item1[/TD]
[TD]25[/TD]
[TD]0[/TD]
[TD]30[/TD]
[TD][/TD]
[TD]25 (from row 2)[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]Item2[/TD]
[TD]0[/TD]
[TD]19[/TD]
[TD]0[/TD]
[TD][/TD]
[TD]30 (from row 2)[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]Item3[/TD]
[TD]35[/TD]
[TD]0[/TD]
[TD]30[/TD]
[TD][/TD]
[TD]19 (from row 3)[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]5[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]35 (from row 4)[/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]30 (from row 4)[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
I have figured out a good formula for skipping blank rows, but not for skipping blank columns across an array of many rows.