[Solved] auto less cn

Hello Devroy,

To do FIFO allocation of minus values against plus values for each customer, you can use a helper column with a formula to track cumulative amounts.
  • Sort your data by Customer and Date.
  • Use a formula like this in your helper column (assuming amounts in F2):
=IF(F2>0,
MAX(0, F2 - SUMIFS(F$2:F2, A$2:A2, A2, F$2:F2, "<0")),
MIN(0, F2 + SUMIFS(F$2:F2, A$2:A2, A2, F$2:F2, ">0"))
)
 

Online statistics

Members online
1
Guests online
231
Total visitors
232

Forum statistics

Threads
459
Messages
2,056
Members
2,787
Latest member
go88ccme
Back
Top