sharpold78
New Member
- Joined
- Sep 8, 2012
- Messages
- 3
I am relativly new to VBA. I am in need of some code that will assist me in looking up information on a sheet (Orders) from a sheet (Supply) and subtracting the order value from the supply value. If Order Qty < Supply Qty and the deduction is calculated I also need it to place an x in an additional column next to the order. In the event that there is not supply I need it to ignore the line and move to the next. Also if Vlookup is not the most efficient way I am open to other suggestions. Any help would be greatly appreciated.
Supply
<tbody>
</tbody>
Order
<tbody>
</tbody>
Supply
Part # | Qty |
SKU 1 | 200 |
SKU 2 | 32 |
SKU 3 | 1 |
SKU 4 | 45 |
SKU 5 | 36 |
<tbody>
</tbody>
Order
Part # | Qty | Deducted |
SKU 2 | 1 | |
SKU 1 | 3 | |
SKU 3 | 1 | |
SKU 5 | 6 | |
SKU 6 | 1 | |
SKU 4 | 5 | |
SKU 1 | 4 | |
SKU 1 | 20 | |
SKU 1 | 9 |
<tbody>
</tbody>