Hi. This is my first time posing a question on the Smartsheet Community. I will try to describe what I am looking for as I am trying to write a formula and not having much success. Your assistance is greatly appreciated.
Background:
I have a company that makes widgets for a multitude of projects (50+) at one time. Each widget takes a certain amount of time to build, and this time varies depending on complexity for example. The time it is projected to take to build a particular widget is contained on a column called "Budgeted Shop Hours" and the sheet where this information is stored is on each individual project's Job Log. The Job Log is also where the below columns originate.
The total shop hours available per week is variable depending on who shows up for work, for instance. This information is held on a sheet called Current Capacity which needs to be cross-referenced. The number of men times the hours they work is held in a column called "Weekly Hours Available." This sheet consists of up to 5 weeks of time for each month (depending on the number of days in a month, the 5th week may or may not be used. At the end of the month, it starts over. Here is a screenshot of this sheet:
The "Hours Remaining" is the difference between the "Weekly Hours Available" and the "Budgeted Shop Hours" of each widget. We compile this info by creating a report of all widgets that are ready for production during any particular week in order to aid in production scheduling . We call this report Demand Estimate.
Is it possible to write a formula (perhaps INDEX/COLLECT?) that gets the total number of hours available for each week (ie, week 1, week 2…), and then subtracts it from the time it takes to make whichever particular widget is scheduled to be produced that week as reflected on the report. Causing me even more difficulty, the "Hours Remaining" for the first item produced each week will start with the total hours available with overtime, but the next item will be dependent on how long it takes to make the first widget that is scheduled for that week so the formula will need to take into account the "Hours Remaining" from the previous widget on the report. I hope I have explained this clearly enough for help.
Does anyone have any thoughts on how to approach this or if it is even possible?