cwolfe8229
New Member
- Joined
- May 29, 2007
- Messages
- 29
I need some help from the experts please. I have a list of materials, which varies in length by day. I need to explode this list into individual line items that repeat based on Qty, kind of like a reverse Pivot Table. This list is typically hundreds of line items per day. For example:
[TABLE="width: 137"]
<tbody>[TR]
[TD]Material[/TD]
[TD]Qty[/TD]
[/TR]
[TR]
[TD]ABC1[/TD]
[TD="align: right"]2[/TD]
[/TR]
[TR]
[TD]XYZ1[/TD]
[TD="align: right"]3[/TD]
[/TR]
</tbody>[/TABLE]
needs to become:
[TABLE="width: 137"]
<tbody>[TR]
[TD]Material[/TD]
[TD]Qty[/TD]
[/TR]
[TR]
[TD]ABC1[/TD]
[TD="align: right"]1[/TD]
[/TR]
[TR]
[TD]ABC1[/TD]
[TD="align: right"]1[/TD]
[/TR]
[TR]
[TD]XYZ1[/TD]
[TD="align: right"]1[/TD]
[/TR]
[TR]
[TD]XYZ1[/TD]
[TD="align: right"]1[/TD]
[/TR]
[TR]
[TD]XYZ1[/TD]
[TD="align: right"]1[/TD]
[/TR]
</tbody>[/TABLE]
Any suggestions?
Thanks
[TABLE="width: 137"]
<tbody>[TR]
[TD]Material[/TD]
[TD]Qty[/TD]
[/TR]
[TR]
[TD]ABC1[/TD]
[TD="align: right"]2[/TD]
[/TR]
[TR]
[TD]XYZ1[/TD]
[TD="align: right"]3[/TD]
[/TR]
</tbody>[/TABLE]
needs to become:
[TABLE="width: 137"]
<tbody>[TR]
[TD]Material[/TD]
[TD]Qty[/TD]
[/TR]
[TR]
[TD]ABC1[/TD]
[TD="align: right"]1[/TD]
[/TR]
[TR]
[TD]ABC1[/TD]
[TD="align: right"]1[/TD]
[/TR]
[TR]
[TD]XYZ1[/TD]
[TD="align: right"]1[/TD]
[/TR]
[TR]
[TD]XYZ1[/TD]
[TD="align: right"]1[/TD]
[/TR]
[TR]
[TD]XYZ1[/TD]
[TD="align: right"]1[/TD]
[/TR]
</tbody>[/TABLE]
Any suggestions?
Thanks