I'm trying to build a spreadsheet out that allows me to calculate and adjust the end date of a project based on Time-Off. I have a simply calculator that works for M-F 8 hour workdays.
=WORKDAY((B1+ROUND((B9/8), 0)), (B2/8), B13:B32)
B1=Start date
B2= project length in hours
B9=Time Off taken
B13:B32=holidays
Sample:
start date: 1/1/2011
Length: 960 hours
Time-Off: 0
holidays: 2/14/2011
End date= 6/20/2011
What I want to be able to do is be able to change three variables:
length of workday - customer may request 10 hour day vs. 8 hour day
length of work week - say 4 day or 6 day week vs. 5 day
workdays - Tue-Sat or Fri-Mon vs. Mon-Fri
I've looked at some of the existing UDFs available and while I can find ones that allow me to include/exclude particular days and modify hours all of them seem to be based on networkdays and require an end date which is the information I'm trying to determine.
Any help is appreciated. If someone can point me in the right direction and/or provide the how the solution works as I prefer to use solutions I understand, mainly so I can modify as needed in the future.
Thanks
=WORKDAY((B1+ROUND((B9/8), 0)), (B2/8), B13:B32)
B1=Start date
B2= project length in hours
B9=Time Off taken
B13:B32=holidays
Sample:
start date: 1/1/2011
Length: 960 hours
Time-Off: 0
holidays: 2/14/2011
End date= 6/20/2011
What I want to be able to do is be able to change three variables:
length of workday - customer may request 10 hour day vs. 8 hour day
length of work week - say 4 day or 6 day week vs. 5 day
workdays - Tue-Sat or Fri-Mon vs. Mon-Fri
I've looked at some of the existing UDFs available and while I can find ones that allow me to include/exclude particular days and modify hours all of them seem to be based on networkdays and require an end date which is the information I'm trying to determine.
Any help is appreciated. If someone can point me in the right direction and/or provide the how the solution works as I prefer to use solutions I understand, mainly so I can modify as needed in the future.
Thanks