shahsavand
Board Regular
- Joined
- Dec 8, 2014
- Messages
- 74
i wanna decrease my stock with the last time i used my inventory.
for example ID no 1. my need is 200 and my stock is 5000 so my shortage is 5000-200=4800 then you can see we have this Id in another row in which my requirement is 54.here i wanna calculate it like this 4800-54=4746
(stock quantity is stable for each ID)
i need a macro for doing it.please somebody help me.
<tbody>
</tbody>
for example ID no 1. my need is 200 and my stock is 5000 so my shortage is 5000-200=4800 then you can see we have this Id in another row in which my requirement is 54.here i wanna calculate it like this 4800-54=4746
(stock quantity is stable for each ID)
i need a macro for doing it.please somebody help me.
Product | ID | NEED | STOCK | Shortage |
A | 1 | 200 | 5000 | 4800 |
A | 2 | 200 | 200 | 0 |
A | 3 | 25 | 12 | -13 |
A | 4 | 5 | 36 | 31 |
A | 5 | 6 | 254 | 248 |
B | 6 | 4 | 23 | 19 |
B | 7 | 21 | 36 | 15 |
B | 1 | 54 | 5000 | 4946 |
B | 2 | 6 | 200 | 194 |
c | 65 | 69 | 100 | 31 |
c | 3 | 54 | 12 | -42 |
c | 14 | 265 | 88 | -177 |
c | 26 | 32 | 99 | 67 |
<tbody>
</tbody>