JumboCactuar
Well-known Member
- Joined
- Nov 16, 2016
- Messages
- 788
- Office Version
- 365
- Platform
- Windows
Hi,
i have the following data
[TABLE="width: 359"]
<tbody>[TR]
[TD]ITEM NO[/TD]
[TD]TYPE[/TD]
[TD]LOCATION[/TD]
[TD]QTY[/TD]
[TD]MAX QTY[/TD]
[/TR]
[TR]
[TD]11224[/TD]
[TD]PRIORITY[/TD]
[TD]AL4401[/TD]
[TD]4[/TD]
[TD]14[/TD]
[/TR]
[TR]
[TD]11224[/TD]
[TD]RESERVE[/TD]
[TD]GL1202[/TD]
[TD]12[/TD]
[TD]14[/TD]
[/TR]
[TR]
[TD]55322[/TD]
[TD]PRIORITY[/TD]
[TD]AL5503[/TD]
[TD]8[/TD]
[TD]23[/TD]
[/TR]
[TR]
[TD]55322[/TD]
[TD]RESERVE[/TD]
[TD]GL1104[/TD]
[TD]10[/TD]
[TD]23[/TD]
[/TR]
[TR]
[TD]55322[/TD]
[TD]RESERVE[/TD]
[TD]GL1105[/TD]
[TD]2[/TD]
[TD]23[/TD]
[/TR]
[TR]
[TD]43112[/TD]
[TD]PRIORITY[/TD]
[TD]AL5512[/TD]
[TD]6[/TD]
[TD]100[/TD]
[/TR]
[TR]
[TD]43112[/TD]
[TD]RESERVE[/TD]
[TD]GL4401[/TD]
[TD]55[/TD]
[TD]100[/TD]
[/TR]
[TR]
[TD]67442[/TD]
[TD]PRIORITY[/TD]
[TD]AL5212[/TD]
[TD]14[/TD]
[TD]15[/TD]
[/TR]
[TR]
[TD]67442[/TD]
[TD]RESERVE[/TD]
[TD]GL1201[/TD]
[TD]5[/TD]
[TD]15[/TD]
[/TR]
[TR]
[TD]57743[/TD]
[TD]PRIORITY[/TD]
[TD]AL5603[/TD]
[TD]0[/TD]
[TD]5[/TD]
[/TR]
[TR]
[TD]57743[/TD]
[TD]RESERVE[/TD]
[TD]HL1201[/TD]
[TD]4[/TD]
[TD]5[/TD]
[/TR]
[TR]
[TD]80888[/TD]
[TD]PRIORITY[/TD]
[TD]BL0102[/TD]
[TD]5[/TD]
[TD]9[/TD]
[/TR]
[TR]
[TD]80888[/TD]
[TD]RESERVE[/TD]
[TD]GL1203[/TD]
[TD]1[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]80888[/TD]
[TD]RESERVE[/TD]
[TD]HL1204[/TD]
[TD]1[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]80888[/TD]
[TD]RESERVE[/TD]
[TD]GL5503[/TD]
[TD]1[/TD]
[TD]1[/TD]
[/TR]
</tbody>[/TABLE]
I need to do the following:
If Reserve QTY fits into Priority Location then output them like this:
[TABLE="width: 287"]
<tbody>[TR]
[TD]ITEM NO[/TD]
[TD]FROM[/TD]
[TD]TO[/TD]
[TD]QTY[/TD]
[/TR]
[TR]
[TD]11224[/TD]
[TD]GL1202[/TD]
[TD]AL4401[/TD]
[TD]10[/TD]
[/TR]
[TR]
[TD]55322[/TD]
[TD]GL1104[/TD]
[TD]AL5503[/TD]
[TD]10[/TD]
[/TR]
[TR]
[TD]55322[/TD]
[TD]GL1105[/TD]
[TD]AL5503[/TD]
[TD]2[/TD]
[/TR]
[TR]
[TD]43112[/TD]
[TD]GL4401[/TD]
[TD]AL5512[/TD]
[TD]55[/TD]
[/TR]
[TR]
[TD]57743[/TD]
[TD]HL1201[/TD]
[TD]AL5603[/TD]
[TD]4[/TD]
[/TR]
[TR]
[TD]80888[/TD]
[TD]GL1203[/TD]
[TD]BL0102[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]80888[/TD]
[TD]HL1204[/TD]
[TD]BL0102[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]80888[/TD]
[TD]GL5503[/TD]
[TD]BL0102[/TD]
[TD]1[/TD]
[/TR]
</tbody>[/TABLE]
Not even sure how to go about doing this, i thought probably using pivots but its tricky
Appreciate any help
i have the following data
[TABLE="width: 359"]
<tbody>[TR]
[TD]ITEM NO[/TD]
[TD]TYPE[/TD]
[TD]LOCATION[/TD]
[TD]QTY[/TD]
[TD]MAX QTY[/TD]
[/TR]
[TR]
[TD]11224[/TD]
[TD]PRIORITY[/TD]
[TD]AL4401[/TD]
[TD]4[/TD]
[TD]14[/TD]
[/TR]
[TR]
[TD]11224[/TD]
[TD]RESERVE[/TD]
[TD]GL1202[/TD]
[TD]12[/TD]
[TD]14[/TD]
[/TR]
[TR]
[TD]55322[/TD]
[TD]PRIORITY[/TD]
[TD]AL5503[/TD]
[TD]8[/TD]
[TD]23[/TD]
[/TR]
[TR]
[TD]55322[/TD]
[TD]RESERVE[/TD]
[TD]GL1104[/TD]
[TD]10[/TD]
[TD]23[/TD]
[/TR]
[TR]
[TD]55322[/TD]
[TD]RESERVE[/TD]
[TD]GL1105[/TD]
[TD]2[/TD]
[TD]23[/TD]
[/TR]
[TR]
[TD]43112[/TD]
[TD]PRIORITY[/TD]
[TD]AL5512[/TD]
[TD]6[/TD]
[TD]100[/TD]
[/TR]
[TR]
[TD]43112[/TD]
[TD]RESERVE[/TD]
[TD]GL4401[/TD]
[TD]55[/TD]
[TD]100[/TD]
[/TR]
[TR]
[TD]67442[/TD]
[TD]PRIORITY[/TD]
[TD]AL5212[/TD]
[TD]14[/TD]
[TD]15[/TD]
[/TR]
[TR]
[TD]67442[/TD]
[TD]RESERVE[/TD]
[TD]GL1201[/TD]
[TD]5[/TD]
[TD]15[/TD]
[/TR]
[TR]
[TD]57743[/TD]
[TD]PRIORITY[/TD]
[TD]AL5603[/TD]
[TD]0[/TD]
[TD]5[/TD]
[/TR]
[TR]
[TD]57743[/TD]
[TD]RESERVE[/TD]
[TD]HL1201[/TD]
[TD]4[/TD]
[TD]5[/TD]
[/TR]
[TR]
[TD]80888[/TD]
[TD]PRIORITY[/TD]
[TD]BL0102[/TD]
[TD]5[/TD]
[TD]9[/TD]
[/TR]
[TR]
[TD]80888[/TD]
[TD]RESERVE[/TD]
[TD]GL1203[/TD]
[TD]1[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]80888[/TD]
[TD]RESERVE[/TD]
[TD]HL1204[/TD]
[TD]1[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]80888[/TD]
[TD]RESERVE[/TD]
[TD]GL5503[/TD]
[TD]1[/TD]
[TD]1[/TD]
[/TR]
</tbody>[/TABLE]
I need to do the following:
If Reserve QTY fits into Priority Location then output them like this:
[TABLE="width: 287"]
<tbody>[TR]
[TD]ITEM NO[/TD]
[TD]FROM[/TD]
[TD]TO[/TD]
[TD]QTY[/TD]
[/TR]
[TR]
[TD]11224[/TD]
[TD]GL1202[/TD]
[TD]AL4401[/TD]
[TD]10[/TD]
[/TR]
[TR]
[TD]55322[/TD]
[TD]GL1104[/TD]
[TD]AL5503[/TD]
[TD]10[/TD]
[/TR]
[TR]
[TD]55322[/TD]
[TD]GL1105[/TD]
[TD]AL5503[/TD]
[TD]2[/TD]
[/TR]
[TR]
[TD]43112[/TD]
[TD]GL4401[/TD]
[TD]AL5512[/TD]
[TD]55[/TD]
[/TR]
[TR]
[TD]57743[/TD]
[TD]HL1201[/TD]
[TD]AL5603[/TD]
[TD]4[/TD]
[/TR]
[TR]
[TD]80888[/TD]
[TD]GL1203[/TD]
[TD]BL0102[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]80888[/TD]
[TD]HL1204[/TD]
[TD]BL0102[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]80888[/TD]
[TD]GL5503[/TD]
[TD]BL0102[/TD]
[TD]1[/TD]
[/TR]
</tbody>[/TABLE]
Not even sure how to go about doing this, i thought probably using pivots but its tricky
Appreciate any help