#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
JSE
 
Posts: n/a
Default "workinghours"


I'm looking for a function that calculate the total amount of hours
between to time-stemps BUT only the working hours (office-hours 09:00
to 17:00)
For workings days there is a function "networkdays" but I'm looking for
such a function but then for hours.


--
JSE
------------------------------------------------------------------------
JSE's Profile: http://www.excelforum.com/member.php...o&userid=33030
View this thread: http://www.excelforum.com/showthread...hreadid=528507

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Duke Carey
 
Posts: n/a
Default "workinghours"

See if Chip Pearson's page about working hours has what you want

http://www.cpearson.com/excel/datetime.htm#WorkHours



"JSE" wrote:


I'm looking for a function that calculate the total amount of hours
between to time-stemps BUT only the working hours (office-hours 09:00
to 17:00)
For workings days there is a function "networkdays" but I'm looking for
such a function but then for hours.


--
JSE
------------------------------------------------------------------------
JSE's Profile: http://www.excelforum.com/member.php...o&userid=33030
View this thread: http://www.excelforum.com/showthread...hreadid=528507


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
daddylonglegs
 
Posts: n/a
Default "workinghours"


If you have a start time/date in A2 and an end time/date in B2 you can
calculate the working hours between them with this formula

=(NETWORKDAYS(A2,B2)-1)*("17:00"-"09:00")+MOD(B2,1)-MOD(A2,1)

format as [h]:mm

note: the above is only guaranteed to work if your "time stamps" are
within working hours, post back if not, you'll need a more complex
formula.....


--
daddylonglegs
------------------------------------------------------------------------
daddylonglegs's Profile: http://www.excelforum.com/member.php...o&userid=30486
View this thread: http://www.excelforum.com/showthread...hreadid=528507

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



All times are GMT +1. The time now is 03:48 AM.

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"