Hi, try this formula in A3:If we look at the formula in its pieces, we get:
If A1>=A2 (i.e. you didn't use as much as you had in inventory), then the formula remains as you have stated above (A1 - A2).
But if A1<A2 (i.e. you used more than you had in inventory), then an alternate formula is used (A2 - A1 + A2). This formula will switch the order of the original subtraction (to ensure a positive number is the result), and then adds the amount that was used within the period.
An alternate formula that would yield the same result isThis makes the difference A1 - A2 positive regardless of the sign (absolute value), and then adds the amount used only if it is larger than the amount in inventory.
Both formulas will work, it is completely up to you which one you choose to use.
Hope this helps you
Bookmarks