Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8
Default net no of hours bewtween tow dates

I wanted to know net no of working hours between following two dates;

Time Start 23-Sep-2008 13:43
Time End 30-Sep-2008 18:24
Holiday 29-Sep-08


Kashif
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,501
Default net no of hours bewtween tow dates

Hi,

The answer depends on how long a day is. Is it 24 hours or limited to the
hours in your working day.

If a day is 24 hours long use this
=(NETWORKDAYS(A1,B1,Holidays)-1)+MOD(B1,1)-MOD(A1,1)

If a day is (say) 08:00 - 17:00 use this
=(NETWORKDAYS(A1,B1,Holidays)-1)*("17:00"-"08:00")+MOD(B1,1)-MOD(A1,1)

In both case the start time is in A1. End time in B1 and Holidays is a named
range that contains your holiday dates.

Format both as [hh]:mm

Mike



"Kashif" wrote:

I wanted to know net no of working hours between following two dates;

Time Start 23-Sep-2008 13:43
Time End 30-Sep-2008 18:24
Holiday 29-Sep-08


Kashif

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,651
Default net no of hours bewtween tow dates

How are you defining working hours?
--
David Biddulph

"Kashif" wrote in message
...
I wanted to know net no of working hours between following two dates;

Time Start 23-Sep-2008 13:43
Time End 30-Sep-2008 18:24
Holiday 29-Sep-08


Kashif



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
How to calculate Hours between two dates? Jon Excel Discussion (Misc queries) 7 January 18th 09 04:29 PM
Determining work hours between dates / hours Andrew Excel Worksheet Functions 3 July 30th 08 06:38 PM
dates to hours Champ Excel Discussion (Misc queries) 2 July 3rd 08 07:07 PM
Time / Each Second Bewtween 9:30 AM and 4:15 PM carl Excel Worksheet Functions 3 May 14th 07 07:05 PM
get total hours from 2 dates LU Excel Worksheet Functions 1 July 15th 05 03:03 AM


All times are GMT +1. The time now is 07:25 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"