spill-the-beans
Board Regular
- Joined
- Feb 7, 2013
- Messages
- 52
Hi
My workbook has 2 sheets - one named Data, one named Results.
What I need to happen is, excel should look in column J in the Data worksheet. When it finds the next non empty cell, it should copy across the row values for columns J to AG of the Data worksheet into columns A to X of the Results worksheet.
The Results copied rows should be one below the other, but in the Data, the rows to copy are spaced out. The information in A:I of Data should not be copied across to Results.
So..
Data worksheet
[TABLE="width: 500"]
<tbody>[TR]
[TD][/TD]
[TD]A:I[/TD]
[TD]J:AG[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]unneeded information[/TD]
[TD]needed data set1[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]unneeded information[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]unneeded information[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]unneeded information[/TD]
[TD]needed data set 2[/TD]
[/TR]
</tbody>[/TABLE]
Results worksheet
[TABLE="width: 500"]
<tbody>[TR]
[TD][/TD]
[TD]A:X[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]needed data set 1[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]needed data set 2[/TD]
[/TR]
</tbody>[/TABLE]
Help would be very much appreciated!
My workbook has 2 sheets - one named Data, one named Results.
What I need to happen is, excel should look in column J in the Data worksheet. When it finds the next non empty cell, it should copy across the row values for columns J to AG of the Data worksheet into columns A to X of the Results worksheet.
The Results copied rows should be one below the other, but in the Data, the rows to copy are spaced out. The information in A:I of Data should not be copied across to Results.
So..
Data worksheet
[TABLE="width: 500"]
<tbody>[TR]
[TD][/TD]
[TD]A:I[/TD]
[TD]J:AG[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]unneeded information[/TD]
[TD]needed data set1[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]unneeded information[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]unneeded information[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]unneeded information[/TD]
[TD]needed data set 2[/TD]
[/TR]
</tbody>[/TABLE]
Results worksheet
[TABLE="width: 500"]
<tbody>[TR]
[TD][/TD]
[TD]A:X[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]needed data set 1[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]needed data set 2[/TD]
[/TR]
</tbody>[/TABLE]
Help would be very much appreciated!