Hi,
I have been trying for hours and hours to solve this with the help of AI but I am giving up now. I need real intelligence, not artificial one, please.
I want to build a simple first in first out system for a storeroom. I have one sheet with the material coming in and one sheet with the stuff being taken out.
The list of items is sorted in rows. In columns then come three entries that repeat for every in and out transaction: date of in/out, number of boxes, expiry date of boxes. So, I have these three column repeating over and over again.
Then I have a third sheet with the summary of everything. In this, I have 5 groups of 2 columns which should show: number of boxes, expiry date.
The idea is now to have 2 formulae in these 5x2 cells that
- Checks the corresponding row in the in and out sheets and calculates how many boxes of the same expiry date are still in stock
- shows the expiry date corresponding to these boxes.
So, I would like 5x2 dynamic columns in which the quantity of goods with the same expiration date per row is provided. Columns P to Y in the “data” sheet are 5 sets of expiration date and quantity columns. I would like P to show the earliest expiration date and Q the quantity of items with this date. The next earliest is displayed in R and S, and so on. The formula should deduct the check-out from the check-in so that it is always clear what is still in stock and when it will expire, while at the same time keeping the record of old ins and outs that have already been used in the respective in and out sheets. One problem is that normally there is one larger in, and many smaller outs over time.
Here is an example sheet to help those who want to give it a try and proof that their job is not replaceable by AI:
Consumable Stock 2025 - formula development.ods (76.4 KB)
Thanks heaps.