Hello everyone.
I am creating a production plan, where I need to automatically identify breaks, date changes and holidays, to omit these from the production cycle time.
Imagine that I have to produce 11 modules in 10 working days. With a 37 hour working week this gives a cycle time of 403 min pr. module.
I have manually created a 2 week timetable, where I have simply added the breaks and date changes to the time intervals.
But I need this 2 week cycle to continue for 5 month, and want to automate the process.
I'm thinking the process would be something like this:
enter cycle time in cell 1 ( maybe a different cycle time, for each module, depending on it's complexity)
enter start date and time in cell 2
sum cell 2 with cell 1 to get end time without breaks
Identifying date, weekday number and time of day
Use formula or VBA to look at my holiday table and working week table to identify breaks, day changes, weekends and holidays, between end time and start time.
adding these to create new end time.
repeating the process for the next end time.
The process of identifying breaks etc. needs to happen several times, as you may pass a new break when you add the first break to the end time.
I don't know which way to go in order to automate the process.
I've been looking at the new "xlookup" formula i Excel365, but am thinking VBA and filling arrays is a better way to go.
What do you think? Please help me.
I am creating a production plan, where I need to automatically identify breaks, date changes and holidays, to omit these from the production cycle time.
Imagine that I have to produce 11 modules in 10 working days. With a 37 hour working week this gives a cycle time of 403 min pr. module.
I have manually created a 2 week timetable, where I have simply added the breaks and date changes to the time intervals.
But I need this 2 week cycle to continue for 5 month, and want to automate the process.
I'm thinking the process would be something like this:
enter cycle time in cell 1 ( maybe a different cycle time, for each module, depending on it's complexity)
enter start date and time in cell 2
sum cell 2 with cell 1 to get end time without breaks
Identifying date, weekday number and time of day
Use formula or VBA to look at my holiday table and working week table to identify breaks, day changes, weekends and holidays, between end time and start time.
adding these to create new end time.
repeating the process for the next end time.
The process of identifying breaks etc. needs to happen several times, as you may pass a new break when you add the first break to the end time.
I don't know which way to go in order to automate the process.
I've been looking at the new "xlookup" formula i Excel365, but am thinking VBA and filling arrays is a better way to go.
What do you think? Please help me.