Hi,
I have some data containing date columns and a column showing a 1 to represent in stock and a 2 to represent out of stock. I am trying to find a formula that allows me to measure the time in days for a specific item between the occurrence of a 2 (going out of stock) and then the next occurrence of a 1 (when it comes back into stock). The same item may come in and out of stock several times so it must treat each pairing of a 2 and 1 as its own instance. I have filled in the first example in the attached workbook. You will see a tab called pivot also, I thought this might be part way to a solution but I think its a dead end, feel free to disregard.
Not sure if this is actually possible but would be great to know either way. If anyone can help it will be much appreciated.
Bookmarks