Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Qaspec
 
Posts: n/a
Default Work Hours Time Question

I have a date and time in cell a1-a100 i need a formula in b2 that will
provide me with the date and time it will be 8 hours later(deadline). the
deadline only counts for work hours between 9am and 9pm during workdays
mon-fri only. thanks.
  #2   Report Post  
LanceB
 
Posts: n/a
Default

=IF((A1+(8/24))-INT(A1+(8/24))0.875,A1+(8/24)+0.5,A1+(8/24))

"Qaspec" wrote:

I have a date and time in cell a1-a100 i need a formula in b2 that will
provide me with the date and time it will be 8 hours later(deadline). the
deadline only counts for work hours between 9am and 9pm during workdays
mon-fri only. thanks.

  #3   Report Post  
Qaspec
 
Posts: n/a
Default

That takes care of the 9 am to 9 pm issue but the workday only stipulation is
still mising. a deadline cannot fall on a weekend.

"LanceB" wrote:

=IF((A1+(8/24))-INT(A1+(8/24))0.875,A1+(8/24)+0.5,A1+(8/24))

"Qaspec" wrote:

I have a date and time in cell a1-a100 i need a formula in b2 that will
provide me with the date and time it will be 8 hours later(deadline). the
deadline only counts for work hours between 9am and 9pm during workdays
mon-fri only. thanks.

  #4   Report Post  
Daniel.M
 
Posts: n/a
Default

Hi,

Assuming:

A1: Start TimeStamp (date+time)
B1: task duration time
holidays: a range of holidays (this is optional)

C4: BegShift (9:00:00 in your case)
C5: EndShift (21:00:00 in your case)

The following gives the ending time of that task:

=WORKDAY(A1,ROUND(B1/(C5-C4),3)+N(MOD(A1,1)(C5-MOD(B1,C5-C4))),holidays)+(MOD(A
1,1)+MOD(B1,C5-C4)+IF(MOD(A1,1)C5-MOD(B1,C5-C4),C4-C5))

Regards,

Daniel M.

"Qaspec" wrote in message
...
That takes care of the 9 am to 9 pm issue but the workday only stipulation is
still mising. a deadline cannot fall on a weekend.

"LanceB" wrote:

=IF((A1+(8/24))-INT(A1+(8/24))0.875,A1+(8/24)+0.5,A1+(8/24))

"Qaspec" wrote:

I have a date and time in cell a1-a100 i need a formula in b2 that will
provide me with the date and time it will be 8 hours later(deadline). the
deadline only counts for work hours between 9am and 9pm during workdays
mon-fri only. thanks.



  #5   Report Post  
anonymous
 
Posts: n/a
Default

This doesn't work quite right.

If I enter a start date - time of 1/1/2005 14:00 and a
time duration of 8:00 the result is 1/3/2005 10:00.
Shouldn't the result be 1/3/2005 17:00 ? Did not use
holidays in the formula.

1/1/2005 - Sat
1/2/2005 - Sun

Excluding weekends and only using a time range of 9:00 AM
to 9:00 PM for weekdays. So the time duration should start
on 1/3/2005 9:00 AM and end on 1/3/2005 5:00 PM.


-----Original Message-----
Hi,

Assuming:

A1: Start TimeStamp (date+time)
B1: task duration time
holidays: a range of holidays (this is optional)

C4: BegShift (9:00:00 in your case)
C5: EndShift (21:00:00 in your case)

The following gives the ending time of that task:

=WORKDAY(A1,ROUND(B1/(C5-C4),3)+N(MOD(A1,1)(C5-MOD(B1,C5-

C4))),holidays)+(MOD(A
1,1)+MOD(B1,C5-C4)+IF(MOD(A1,1)C5-MOD(B1,C5-C4),C4-C5))

Regards,

Daniel M.

"Qaspec" wrote in

message
...
That takes care of the 9 am to 9 pm issue but the

workday only stipulation is
still mising. a deadline cannot fall on a weekend.

"LanceB" wrote:

=IF((A1+(8/24))-INT(A1+(8/24))0.875,A1+(8/24)+0.5,A1+

(8/24))

"Qaspec" wrote:

I have a date and time in cell a1-a100 i need a

formula in b2 that will
provide me with the date and time it will be 8

hours later(deadline). the
deadline only counts for work hours between 9am

and 9pm during workdays
mon-fri only. thanks.



.



  #6   Report Post  
Daniel.M
 
Posts: n/a
Default

Hi,

It will fail whenever your StartTimeStamp (A1) is already in non-working hours.

For traditional projects, you always start/assign (also end/stop) work at a
working period.

The formula can probably be adapted to handle those cases but my guess is it
would generate quite a big formula (probably better to be handled via VBA then).

One final note: I think there are some dedicated tools (project scheduling à la
MS Project) that handle those needs much better than Excel is.

Regards,

Daniel M.

"anonymous" wrote in message
...
This doesn't work quite right.

If I enter a start date - time of 1/1/2005 14:00 and a
time duration of 8:00 the result is 1/3/2005 10:00.
Shouldn't the result be 1/3/2005 17:00 ? Did not use
holidays in the formula.

1/1/2005 - Sat
1/2/2005 - Sun

Excluding weekends and only using a time range of 9:00 AM
to 9:00 PM for weekdays. So the time duration should start
on 1/3/2005 9:00 AM and end on 1/3/2005 5:00 PM.


-----Original Message-----
Hi,

Assuming:

A1: Start TimeStamp (date+time)
B1: task duration time
holidays: a range of holidays (this is optional)

C4: BegShift (9:00:00 in your case)
C5: EndShift (21:00:00 in your case)

The following gives the ending time of that task:

=WORKDAY(A1,ROUND(B1/(C5-C4),3)+N(MOD(A1,1)(C5-MOD(B1,C5-

C4))),holidays)+(MOD(A
1,1)+MOD(B1,C5-C4)+IF(MOD(A1,1)C5-MOD(B1,C5-C4),C4-C5))

Regards,

Daniel M.

"Qaspec" wrote in

message
...
That takes care of the 9 am to 9 pm issue but the

workday only stipulation is
still mising. a deadline cannot fall on a weekend.

"LanceB" wrote:

=IF((A1+(8/24))-INT(A1+(8/24))0.875,A1+(8/24)+0.5,A1+

(8/24))

"Qaspec" wrote:

I have a date and time in cell a1-a100 i need a

formula in b2 that will
provide me with the date and time it will be 8

hours later(deadline). the
deadline only counts for work hours between 9am

and 9pm during workdays
mon-fri only. thanks.



.



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
time formula question... Greg Excel Discussion (Misc queries) 5 February 25th 05 10:11 AM
Time - Hours and Minutes Mark Zak Excel Discussion (Misc queries) 4 February 18th 05 01:51 AM
calculate difference in time to hours Chris Excel Worksheet Functions 5 January 18th 05 06:07 PM
in excel totaling weekly hours military time mel Excel Worksheet Functions 1 January 17th 05 04:24 PM
Best time question Daniel Bonallack Excel Worksheet Functions 2 December 10th 04 11:37 PM


All times are GMT +1. The time now is 09:36 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"