I have a lot of data in cells but I am really only interested in certain cells. I want to extract the cell in each row which contains a "-" (there is one in each row) and move them into a column of their own. The entries containing the "-" are not adjacent which makes it tricky to move all of them. I can select all the cells using the find function but then I can't copy all selected cells and as far as I am aware none of the FIND or SEARCH functions can help me.
What I have:
[TABLE="width: 500"]
<tbody>[TR]
[TD]1[/TD]
[TD]2[/TD]
[TD]3[/TD]
[TD]4[/TD]
[TD]5[/TD]
[/TR]
[TR]
[TD]27[/TD]
[TD]45[/TD]
[TD]36-X[/TD]
[TD]23[/TD]
[TD]15[/TD]
[/TR]
[TR]
[TD]34[/TD]
[TD]56[/TD]
[TD]23[/TD]
[TD]34[/TD]
[TD]67-Y[/TD]
[/TR]
[TR]
[TD]19[/TD]
[TD]54-P[/TD]
[TD]45[/TD]
[TD]12[/TD]
[TD]67[/TD]
[/TR]
</tbody>[/TABLE]
What I want to get:
[TABLE="width: 500"]
<tbody>[TR]
[TD]1[/TD]
[TD]2[/TD]
[TD]3[/TD]
[TD]4[/TD]
[TD]5[/TD]
[TD]Important Cells[/TD]
[/TR]
[TR]
[TD]27[/TD]
[TD]45[/TD]
[TD]36-X[/TD]
[TD]23[/TD]
[TD]15[/TD]
[TD]36-X[/TD]
[/TR]
[TR]
[TD]34[/TD]
[TD]56[/TD]
[TD]23[/TD]
[TD]34[/TD]
[TD]67-Y[/TD]
[TD]67-Y[/TD]
[/TR]
[TR]
[TD]19[/TD]
[TD]54-P[/TD]
[TD]45[/TD]
[TD]12[/TD]
[TD]67[/TD]
[TD]54-P[/TD]
[/TR]
</tbody>[/TABLE]
Given the range of tasks I've been able to perform using simple tricks and formulas, I thought this would be easy enough but having searched around, I still haven't found a solution. Would I have to look into using VBA or is there an intuitive way of getting this done? My VBA skills are very limited. Any help on the matter would be greatly appreciated.
What I have:
[TABLE="width: 500"]
<tbody>[TR]
[TD]1[/TD]
[TD]2[/TD]
[TD]3[/TD]
[TD]4[/TD]
[TD]5[/TD]
[/TR]
[TR]
[TD]27[/TD]
[TD]45[/TD]
[TD]36-X[/TD]
[TD]23[/TD]
[TD]15[/TD]
[/TR]
[TR]
[TD]34[/TD]
[TD]56[/TD]
[TD]23[/TD]
[TD]34[/TD]
[TD]67-Y[/TD]
[/TR]
[TR]
[TD]19[/TD]
[TD]54-P[/TD]
[TD]45[/TD]
[TD]12[/TD]
[TD]67[/TD]
[/TR]
</tbody>[/TABLE]
What I want to get:
[TABLE="width: 500"]
<tbody>[TR]
[TD]1[/TD]
[TD]2[/TD]
[TD]3[/TD]
[TD]4[/TD]
[TD]5[/TD]
[TD]Important Cells[/TD]
[/TR]
[TR]
[TD]27[/TD]
[TD]45[/TD]
[TD]36-X[/TD]
[TD]23[/TD]
[TD]15[/TD]
[TD]36-X[/TD]
[/TR]
[TR]
[TD]34[/TD]
[TD]56[/TD]
[TD]23[/TD]
[TD]34[/TD]
[TD]67-Y[/TD]
[TD]67-Y[/TD]
[/TR]
[TR]
[TD]19[/TD]
[TD]54-P[/TD]
[TD]45[/TD]
[TD]12[/TD]
[TD]67[/TD]
[TD]54-P[/TD]
[/TR]
</tbody>[/TABLE]
Given the range of tasks I've been able to perform using simple tricks and formulas, I thought this would be easy enough but having searched around, I still haven't found a solution. Would I have to look into using VBA or is there an intuitive way of getting this done? My VBA skills are very limited. Any help on the matter would be greatly appreciated.