Villalobos
New Member
- Joined
- Sep 5, 2013
- Messages
- 44
Hello, I would like ask some help regarding the remaining stock calculation. Could somebody offer a formulae into the column C "Remaing stock"?! The sample table can be seen below. The formulae what I use now can be seen below also, but unfortunately does not take into account the deliveries, my problem is that I can not integrate it. How should I modify it?
<TBODY>
</TBODY><COLGROUP><COL><COL><COL><COL><COL><COL></COLGROUP>
Stock</SPAN> | Delivered</SPAN> | Remaining stock</SPAN> | PN</SPAN> | Confirmed quantity</SPAN> | Open quantity after delivery</SPAN> |
2000</SPAN> | 2000</SPAN> | 0</SPAN> | A</SPAN> | 1000</SPAN> | 0</SPAN> |
0</SPAN> | 0</SPAN> | -2000</SPAN> | A</SPAN> | 3000</SPAN> | 2000</SPAN> |
0</SPAN> | 0</SPAN> | -4000</SPAN> | A</SPAN> | 2000</SPAN> | 2000</SPAN> |
2500</SPAN> | 2500</SPAN> | 0</SPAN> | B</SPAN> | 500</SPAN> | 0</SPAN> |
0</SPAN> | 0</SPAN> | -8000</SPAN> | A</SPAN> | 4000</SPAN> | 4000</SPAN> |
3000</SPAN> | 1500</SPAN> | 1500</SPAN> | C</SPAN> | 1500</SPAN> | 0</SPAN> |
0</SPAN> | 0</SPAN> | 500</SPAN> | C</SPAN> | 1000</SPAN> | 0</SPAN> |
0</SPAN> | 0</SPAN> | 0</SPAN> | B</SPAN> | 1500</SPAN> | 0</SPAN> |
0</SPAN> | 0</SPAN> | -2000</SPAN> | B</SPAN> | 2500</SPAN> | 2000</SPAN> |
0</SPAN> | 0</SPAN> | -5500</SPAN> | B</SPAN> | 3500</SPAN> | 3500</SPAN> |
0</SPAN> | 0</SPAN> | -2000</SPAN> | C</SPAN> | 2500</SPAN> | 2000</SPAN> |
=IFERROR(SUMIF('Sheet2'!$A$1:$B$2;'Sheet1'!D2;'Sheet2'!$A$1:$B$2)-(SUMIF($D$2:$D2;D2;$F$2:$F2));-(F2))</SPAN> |
<TBODY>
</TBODY><COLGROUP><COL><COL><COL><COL><COL><COL></COLGROUP>