Hello Experts,
I would like ask some help regarding the remaining value 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 if a "PN" only one time in a list and that if the value: e.g. in A2 > 0 and B2=0 because I get #REF! error message. How should I modify it?
Here is the formulae: IF(AND(A2>0,B2>0),A2-B2,OFFSET($C$1,LARGE(($D2=$D$1:$D1)*ROW($D$1:D1),1)-1,0)-OFFSET(E2,0,IF(D2<>"c",1,0))) with ctrl+shift+enter.
The explanatation to the formulae: for C is that if there are non zero values in A and B then the formula is A-B otherwise if in column D there is an A or B then find the previous value in C for that value in D and subtract the value in column F and if there is a C in column D then find the previous value in column C for a C in D and subtract the value in column E.
The table:
Stock Delivered Remaining stock PN Confirmed quantity Open quantity after delivery
2000 2000 0 A 1000 0
0 0 -2000 A 3000 2000
0 0 -4000 A 2000 2000
2500 2500 0 B 500 0
0 0 -8000 A 4000 4000
3000 1500 1500 C 1500 0
0 0 500 C 1000 0
0 0 0 B 1500 0
0 0 -2000 B 2500 2000
0 0 -5500 B 3500 3500
0 0 -2000 C 2500 2000
Thanks in advance for the help!
Bookmarks