andyeaston
New Member
- Joined
- Sep 20, 2016
- Messages
- 16
I have a sheet of about 1000 rows ...
So there are 11 rows of Master Order numbers but only 5 different Master Orders. Some Master orders have Slave orders, some do not. If a Master order has a Status of 12, 13 or 14 or a Type of 02 I need to remove that row. The problem Im having is removing rows when just one of the Slave orders has a Status of 12, 13, or 14 or a Type of 02 I need to remove every instance of that Master order.
Ive been working on this for a few days and the problem is when I have more than 2 Slave orders I run into trouble.
If I need to explain further, please let me know.
Thank you
below is an example of what I start with
[TABLE="class: grid, width: 500, align: left"]
<tbody>[TR]
[TD]Master Order[/TD]
[TD]Slave Order Number[/TD]
[TD]Status[/TD]
[TD]Type[/TD]
[/TR]
[TR]
[TD]545251[/TD]
[TD]545251[/TD]
[TD]00[/TD]
[TD]02[/TD]
[/TR]
[TR]
[TD]582390[/TD]
[TD][TABLE="width: 92"]
<tbody>[TR]
[TD="class: xl65, width: 122"]582390[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD]00[/TD]
[TD]01[/TD]
[/TR]
[TR]
[TD][TABLE="width: 128"]
<tbody>[TR]
[TD="class: xl65, width: 128"]584076[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 92"]
<tbody>[TR]
[TD="class: xl65, width: 122"]584076[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD]00[/TD]
[TD]01[/TD]
[/TR]
[TR]
[TD][TABLE="width: 128"]
<tbody>[TR]
[TD="class: xl65, width: 128"]584076[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 92"]
<tbody>[TR]
[TD="class: xl65, width: 122"]584077[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD]00[/TD]
[TD]01[/TD]
[/TR]
[TR]
[TD][TABLE="width: 128"]
<tbody>[TR]
[TD="class: xl65, width: 128"]584076[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 92"]
<tbody>[TR]
[TD="class: xl65, width: 122"]589016[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD]00[/TD]
[TD]02[/TD]
[/TR]
[TR]
[TD][TABLE="width: 128"]
<tbody>[TR]
[TD="class: xl65, width: 128"]584076[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 92"]
<tbody>[TR]
[TD="class: xl65, width: 122"]589017[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD]00[/TD]
[TD]01[/TD]
[/TR]
[TR]
[TD][TABLE="width: 128"]
<tbody>[TR]
[TD="class: xl65, width: 128"]584076[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 92"]
<tbody>[TR]
[TD="class: xl65, width: 122"]617664[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD]00[/TD]
[TD]01[/TD]
[/TR]
[TR]
[TD]584076[/TD]
[TD][TABLE="width: 92"]
<tbody>[TR]
[TD="class: xl65, width: 122"]632657[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD]14[/TD]
[TD]01[/TD]
[/TR]
[TR]
[TD]585155[/TD]
[TD][TABLE="width: 92"]
<tbody>[TR]
[TD="class: xl65, width: 122"]585155[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD]00[/TD]
[TD]01[/TD]
[/TR]
[TR]
[TD][TABLE="width: 128"]
<tbody>[TR]
[TD="class: xl65, width: 128"]587638[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 92"]
<tbody>[TR]
[TD="class: xl65, width: 122"]587638[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD]12[/TD]
[TD]02[/TD]
[/TR]
[TR]
[TD]587638[/TD]
[TD][TABLE="width: 92"]
<tbody>[TR]
[TD="class: xl65, width: 122"]587742[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD]00[/TD]
[TD]01[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
below is an example of the desired result....
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]Master Order[/TD]
[TD]Slave Order Number[/TD]
[TD]Status[/TD]
[TD]Type[/TD]
[/TR]
[TR]
[TD][TABLE="width: 96"]
<tbody>[TR]
[TD="class: xl66, width: 128"]582390[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 96"]
<tbody>[TR]
[TD="class: xl66, width: 128"]582390[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD]20[/TD]
[TD]01[/TD]
[/TR]
[TR]
[TD][TABLE="width: 96"]
<tbody>[TR]
[TD="class: xl66, width: 128"]585155[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 96"]
<tbody>[TR]
[TD="class: xl66, width: 128"]585155[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD]00[/TD]
[TD]01[/TD]
[/TR]
</tbody>[/TABLE]
So there are 11 rows of Master Order numbers but only 5 different Master Orders. Some Master orders have Slave orders, some do not. If a Master order has a Status of 12, 13 or 14 or a Type of 02 I need to remove that row. The problem Im having is removing rows when just one of the Slave orders has a Status of 12, 13, or 14 or a Type of 02 I need to remove every instance of that Master order.
Ive been working on this for a few days and the problem is when I have more than 2 Slave orders I run into trouble.
If I need to explain further, please let me know.
Thank you
below is an example of what I start with
[TABLE="class: grid, width: 500, align: left"]
<tbody>[TR]
[TD]Master Order[/TD]
[TD]Slave Order Number[/TD]
[TD]Status[/TD]
[TD]Type[/TD]
[/TR]
[TR]
[TD]545251[/TD]
[TD]545251[/TD]
[TD]00[/TD]
[TD]02[/TD]
[/TR]
[TR]
[TD]582390[/TD]
[TD][TABLE="width: 92"]
<tbody>[TR]
[TD="class: xl65, width: 122"]582390[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD]00[/TD]
[TD]01[/TD]
[/TR]
[TR]
[TD][TABLE="width: 128"]
<tbody>[TR]
[TD="class: xl65, width: 128"]584076[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 92"]
<tbody>[TR]
[TD="class: xl65, width: 122"]584076[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD]00[/TD]
[TD]01[/TD]
[/TR]
[TR]
[TD][TABLE="width: 128"]
<tbody>[TR]
[TD="class: xl65, width: 128"]584076[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 92"]
<tbody>[TR]
[TD="class: xl65, width: 122"]584077[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD]00[/TD]
[TD]01[/TD]
[/TR]
[TR]
[TD][TABLE="width: 128"]
<tbody>[TR]
[TD="class: xl65, width: 128"]584076[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 92"]
<tbody>[TR]
[TD="class: xl65, width: 122"]589016[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD]00[/TD]
[TD]02[/TD]
[/TR]
[TR]
[TD][TABLE="width: 128"]
<tbody>[TR]
[TD="class: xl65, width: 128"]584076[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 92"]
<tbody>[TR]
[TD="class: xl65, width: 122"]589017[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD]00[/TD]
[TD]01[/TD]
[/TR]
[TR]
[TD][TABLE="width: 128"]
<tbody>[TR]
[TD="class: xl65, width: 128"]584076[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 92"]
<tbody>[TR]
[TD="class: xl65, width: 122"]617664[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD]00[/TD]
[TD]01[/TD]
[/TR]
[TR]
[TD]584076[/TD]
[TD][TABLE="width: 92"]
<tbody>[TR]
[TD="class: xl65, width: 122"]632657[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD]14[/TD]
[TD]01[/TD]
[/TR]
[TR]
[TD]585155[/TD]
[TD][TABLE="width: 92"]
<tbody>[TR]
[TD="class: xl65, width: 122"]585155[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD]00[/TD]
[TD]01[/TD]
[/TR]
[TR]
[TD][TABLE="width: 128"]
<tbody>[TR]
[TD="class: xl65, width: 128"]587638[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 92"]
<tbody>[TR]
[TD="class: xl65, width: 122"]587638[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD]12[/TD]
[TD]02[/TD]
[/TR]
[TR]
[TD]587638[/TD]
[TD][TABLE="width: 92"]
<tbody>[TR]
[TD="class: xl65, width: 122"]587742[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD]00[/TD]
[TD]01[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
below is an example of the desired result....
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]Master Order[/TD]
[TD]Slave Order Number[/TD]
[TD]Status[/TD]
[TD]Type[/TD]
[/TR]
[TR]
[TD][TABLE="width: 96"]
<tbody>[TR]
[TD="class: xl66, width: 128"]582390[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 96"]
<tbody>[TR]
[TD="class: xl66, width: 128"]582390[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD]20[/TD]
[TD]01[/TD]
[/TR]
[TR]
[TD][TABLE="width: 96"]
<tbody>[TR]
[TD="class: xl66, width: 128"]585155[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 96"]
<tbody>[TR]
[TD="class: xl66, width: 128"]585155[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD]00[/TD]
[TD]01[/TD]
[/TR]
</tbody>[/TABLE]
Last edited: