Originally Posted by
jmac1947
My problem is that the values I was originally told were days wheras the contract values (thanks lawyers for your help!!!!) now talk in hours (2 hours, 4 hours, 12 hours, 20 hours, 80 hours).
John, I'm still a little unclear but I'm guessing the above means you will be looking to adjust your "breakfixacknowledge" table such that the value are time based rather than day based, is that correct ?
Assuming that is the case... ie that you're now looking to add hours to a start date time where hours must be working hours then I suspect you should be able to adapt something along the lines of the below:
where:
F5 is your start datetime (presently just date)
VLOOKUP determines Time available based on Priory (ie switching from Day integer to Time allocation - eg 30:00 rather than 3 days)
D2 is start of working shift (08:00)
E2 is end of working shift (18:00)
you can modify the references as required of course...
Of course the main point would be that your Start Date should really become a Start DateTime - and I guess we would assume the Start Time to be within the working hour boundaries (ie between 08:00 and 18:00)
Is the above along the right lines ?
To elaborate by means of example...
If we assume the lookup value for severity 2 changes from 3 to say 30 hours and that the start datetime for your first incident becomes 13-Jan 09:00 (ie we add the time) ... then using the above formula the max completion datetime would become: 18-Jan 09:00
(we would use 9 hours on the 13th, 10 hours on the 14th, 10 hours on the 15th (Fri) and then 1 hour on the Monday)
It might be an idea to post an example which elaborates on the Hour element of your prior post - this is obviously the fundamental issue.
Note: the above is c/o daddylonglegs our resident genius on all things date-related - if you search with him as user and WORKDAY etc as search term you will find a veritable goldmine of examples.
Bookmarks