Project week of finish based on hours allotted vs hours available

Keljoe2804

New Member
Joined
Nov 5, 2014
Messages
25
Office Version
  1. 365
Platform
  1. Windows
Hi, I have a table of tasks scheduled to my employees, and I need simple view of a 5 week forecast of those tasks. What I'm looking for is a way for excel to tell me what week a task should be completed by based on the hours allotted/required to complete the task minus the amount of work hours left in the week, and I'm trying to get it to do this in one column. I don't have a problem adding a ghost column I can hide to make it work. I'm also open to VBA as well. Here is an example of what I'm looking for.

Week 1 hrs available = 30
Week 2 hrs available = 44
Week 3 hrs available = 34
Week 4 hrs available = 44
Week 5 hrs available = 35

Col A | Col B | Col C
Task # | Allotted Hrs | Week #
1 | 15 hrs | Wk 1 (15 hrs left in week 1)
2 | 15 hrs | Wk 1 (0 hrs left in week 1)
3 | 20 hrs | Wk 2 (24 hrs left in week 2)
4 | 26 hrs | Wk 3 (0 hrs left in week 2 & 32 hrs left in week 3)
5 | 77 hrs | Wk 5 (0 hrs left in week 3 & week 4, with 34 hrs left in week 5)

The notes in parenthesis are just that. They're not apart of the table

In Col C I have the following formula, but I have to use an assumed amount of available hours for every week instead of using the unique hours available for each week.
=Rounddown(WeekNum(Today()),+((Sum($A$2:$A2)-1)/40),-0.1))
This fills down to other rows ($A$2:$A3) and so on
40 work hrs is assumed, but my employees don't always have 40 hrs available. Sometimes they have scheduled OT, training, or vacation that I would like to consider as well. I realize that I may be dealing with a circular reference, but I'm looking for way around it even if it's not perfect but close.

I'm wondering if I need to just sum up the available hrs for all 5 weeks and just do a bunch of nested if functions. For instance if sum of Allotted hrs is less than 44 hrs, then week 1, if less than 74, then week 2, if less than 108 then week 3, if less than 152 then week 4, if less than 187 then week 5. I'm gonna try this tomorrow, but I'm curious if there is a better way.

Thanks
 

Excel Facts

Copy formula down without changing references
If you have =SUM(F2:F49) in F50; type Alt+' in F51 to copy =SUM(F2:F49) to F51, leaving the formula in edit mode. Change SUM to COUNT.

Forum statistics

Threads
1,224,820
Messages
6,181,157
Members
453,021
Latest member
Justyna P

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top