Hello,
My team has a task sheet that outlines all of the recurring tasks to be completed. The sheet is pre-populated for the tasks required for the entire year, with their assigned due dates. As the staff member completes their assigned task, they record the completion date and the time in minutes to complete the task. The time in minutes is then converted to "Actual Time (H)" - actual time in hours. This is used for some other reporting we do.
Based on the actual time in hours to complete the task, I'm trying to determine a rolling average of the time it takes to complete the task over a rolling 90 days. Here's an example.
Task 1 - due 1/4/2024 - completed 1/4/2024 - 1.5 hours actual time
Task 1 - due 1/18/2024 - completed 1/18/2024 - .75 hours actual time
Task 1 - due 2/1/2024 - completed 2/1/2024 - .75 hours actual time
Task 1 - due 2/15/2024 - completed 2/15/2024 - .58 hours actual time
Task 1 - due 2/29/2024 - completed 2/29/2024 - .50 hours actual time
Task 1 - due 3/14/2024 - completed 3/14/2024 - .50 hours actual time
Task 1 - due 3/28/2024 - not due/completed
For task 1 due on 3/28/2024 - I want to calculate the average of the previously completed task in the last 90 days to estimate the amount of time it will take to complete on 3/28. The average is .76 hours of actual time. As you can see this staff member is improving their efficiency with processing this task, so I want the estimated time to complete the task to do a 90 look back to average the task time.
Lastly... since this sheet is built out for the entire year and we use the estimated time to project workload by staff member, I want all subsequent task lines not yet completed to report the same as the task due on 3/28. Once the task due on 3/28 is completed, it would auto-calculate the time for all the tasks in the future.
I've tried AverageIf and College/AVG formula. I have the majority of the formula... just cant get the date range to work with the completed date for the look back.
This formula works in my sheet, but it's not what I'm looking for:
=AVG(COLLECT([Actual Time (H)]:[Actual Time (H)], Task:Task, Task@row, [Completion Date]:[Completion Date], =[Completion Date]@row))
Any thoughts on how I can incorporate the 90-day look back and populate the future estimated time for the task?