#1   Report Post  
Posted to microsoft.public.excel.misc
JMB JMB is offline
external usenet poster
 
Posts: 2,062
Default Date time difference

Have tried all of the formulas relating to time date diff but cannot get the
weekend hours out of the equation eg
C3 = 14-Mar-2008 07:30
C4 = 17-Mar-2008 07:30
C5 = should equal 8
How or what determains the hrs which are output. I have tried the formular
using netwokdays & workdays.

Thanks JMB.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 10,593
Default Date time difference

Why should it be 8. When does the day start and end?

--
---
HTH

Bob


(there's no email, no snail mail, but somewhere should be gmail in my addy)



"JMB" wrote in message
...
Have tried all of the formulas relating to time date diff but cannot get
the
weekend hours out of the equation eg
C3 = 14-Mar-2008 07:30
C4 = 17-Mar-2008 07:30
C5 = should equal 8
How or what determains the hrs which are output. I have tried the formular
using netwokdays & workdays.

Thanks JMB.



  #3   Report Post  
Posted to microsoft.public.excel.misc
JMB JMB is offline
external usenet poster
 
Posts: 2,062
Default Date time difference

As I am ultimatly trying to get a cost for labour and the day starts @ 07:30
and finishes @ 16:00

JMB

"Bob Phillips" wrote:

Why should it be 8. When does the day start and end?

--
---
HTH

Bob


(there's no email, no snail mail, but somewhere should be gmail in my addy)



"JMB" wrote in message
...
Have tried all of the formulas relating to time date diff but cannot get
the
weekend hours out of the equation eg
C3 = 14-Mar-2008 07:30
C4 = 17-Mar-2008 07:30
C5 = should equal 8
How or what determains the hrs which are output. I have tried the formular
using netwokdays & workdays.

Thanks JMB.




  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 10,593
Default Date time difference

I make that 8.5. So where does the break kick in? It al matters for the
solution.

--
---
HTH

Bob


(there's no email, no snail mail, but somewhere should be gmail in my addy)



"JMB" wrote in message
...
As I am ultimatly trying to get a cost for labour and the day starts @
07:30
and finishes @ 16:00

JMB

"Bob Phillips" wrote:

Why should it be 8. When does the day start and end?

--
---
HTH

Bob


(there's no email, no snail mail, but somewhere should be gmail in my
addy)



"JMB" wrote in message
...
Have tried all of the formulas relating to time date diff but cannot
get
the
weekend hours out of the equation eg
C3 = 14-Mar-2008 07:30
C4 = 17-Mar-2008 07:30
C5 = should equal 8
How or what determains the hrs which are output. I have tried the
formular
using netwokdays & workdays.

Thanks JMB.






  #5   Report Post  
Posted to microsoft.public.excel.misc
JMB JMB is offline
external usenet poster
 
Posts: 2,062
Default Date time difference

Bob,
OK, yes it's 8.5 Hrs...The break starts @ 16:00 on a Friday afternoon
and ends on Mondays @ 07:30. The idea is that we have supplimentry labour on
site and need to calculate the number of hours X payrate to get a total cost
for a given time period.

JMB



"Bob Phillips" wrote:

I make that 8.5. So where does the break kick in? It al matters for the
solution.

--
---
HTH

Bob


(there's no email, no snail mail, but somewhere should be gmail in my addy)



"JMB" wrote in message
...
As I am ultimatly trying to get a cost for labour and the day starts @
07:30
and finishes @ 16:00

JMB

"Bob Phillips" wrote:

Why should it be 8. When does the day start and end?

--
---
HTH

Bob


(there's no email, no snail mail, but somewhere should be gmail in my
addy)



"JMB" wrote in message
...
Have tried all of the formulas relating to time date diff but cannot
get
the
weekend hours out of the equation eg
C3 = 14-Mar-2008 07:30
C4 = 17-Mar-2008 07:30
C5 = should equal 8
How or what determains the hrs which are output. I have tried the
formular
using netwokdays & workdays.

Thanks JMB.








  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 10,593
Default Date time difference

Try this

=(NETWORKDAYS(A1,A2)-(WEEKDAY(A1,2)<6)-(WEEKDAY(A2,2)<6))*8.5+
(IF(WEEKDAY(A1,2)<6,MIN(MAX((TIME(16,0,0)-MOD(A1,1))*24,0),8.5),0))+
(IF(WEEKDAY(A2,2)<6,MIN(MAX((MOD(A2,1)-TIME(7,30,0))*24,0),8.5),0))

--
---
HTH

Bob


(there's no email, no snail mail, but somewhere should be gmail in my addy)



"JMB" wrote in message
...
Bob,
OK, yes it's 8.5 Hrs...The break starts @ 16:00 on a Friday afternoon
and ends on Mondays @ 07:30. The idea is that we have supplimentry labour
on
site and need to calculate the number of hours X payrate to get a total
cost
for a given time period.

JMB



"Bob Phillips" wrote:

I make that 8.5. So where does the break kick in? It al matters for the
solution.

--
---
HTH

Bob


(there's no email, no snail mail, but somewhere should be gmail in my
addy)



"JMB" wrote in message
...
As I am ultimatly trying to get a cost for labour and the day starts @
07:30
and finishes @ 16:00

JMB

"Bob Phillips" wrote:

Why should it be 8. When does the day start and end?

--
---
HTH

Bob


(there's no email, no snail mail, but somewhere should be gmail in my
addy)



"JMB" wrote in message
...
Have tried all of the formulas relating to time date diff but cannot
get
the
weekend hours out of the equation eg
C3 = 14-Mar-2008 07:30
C4 = 17-Mar-2008 07:30
C5 = should equal 8
How or what determains the hrs which are output. I have tried the
formular
using netwokdays & workdays.

Thanks JMB.








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
date and time difference vito Excel Worksheet Functions 8 August 10th 07 06:58 PM
Difference in date and time Arun2902 Excel Discussion (Misc queries) 0 March 9th 07 03:17 PM
Date and time difference Danieljesse Excel Worksheet Functions 1 January 23rd 06 12:47 PM
Calculating Difference Between Start Date & Time And End Date & Ti Samwar Excel Discussion (Misc queries) 2 December 19th 05 12:42 PM
Difference of date & time in minutes ramsdesk Excel Worksheet Functions 2 November 10th 04 06:01 AM


All times are GMT +1. The time now is 07:25 PM.

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

About Us

"It's about Microsoft Excel"