Hi Guys,
I apologize if the Title is confusing as I didn't know how to explain the situation better in one line.
I have attached a sample file in which I have the columns, A, B, D, E, F, L and M. The first cell in F should check if M<D, if TRUE, it should return E+L-B, else E-B. But going downwards in Column F, the formula should check if values in Column A are repeating and if they are repeating it should first do the math E-B (Value in B should be from its previous usage) and then do the math similar to how it did before ( if M<D, if TRUE, it should return E+L-B, else E-B )
For ex: in the attached file, 102 is a value in Column A that repeats three times with an initial On Hand of 10 (Column E). It is being used in three different jobs 301, 306, 304 in Column C. So, in column F when the formula does the math, it will return 5 (as 5 parts are used in the job 301). Then as we down in Column F, when 102 appears again, it should consider that it now only has 5 On Hand because the other 5 is already used. Then it can do the math for M<D, if TRUE, it should return E+L-B, else E-B.
I tried my best to explain the situation above. If you guys think it is still not clear and have any questions, please feel free to ask.
Any help is appreciated
Thanks
VJ
Bookmarks