Ok, so I’m trying to come up with a single cell formula that will find for me the value corresponding to the first weekday of a daily time series – ignoring specified holidays.
In the attached worksheet under “Current State,” you can see the formula I’m using to determine the first weekday (cell K5) and retrieve the inventory level corresponding to that day (cell K6).
The section underneath, “Ideal State,” shows what I want to accomplish (all hardwired of course for now). Note the specified holidays (name: arrayHolidays). Cell K17 should refer to this array and see that 4/1 is a designated holiday and move on. 4/2 and 4/3 is the weekend so it lands on 4/4 as the first applicable weekday.
Any advice on how to formulate cell K17 would be greatly appreciated – and please don’t feel obligated to follow the same logic as K5 (which I suspect could be more elegant in itself).
Bookmarks