Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
JQS JQS is offline
external usenet poster
 
Posts: 1
Default Calculate minutes between dates based on 9hr work days

Need to calculate "business minutes" between dates.
ie...08/29/08 4:00p to 9/2/08 9:00a result in 120 minutes (due to 8a-5p
work day, less weekends and holidays). Can you help? thank you
--
JQS
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,420
Default Calculate minutes between dates based on 9hr work days

If you want it in minutes

=((NETWORKDAYS(A1,A2)-(WEEKDAY(A1,2)<6)-(WEEKDAY(A2,2)<6))*9
+((WEEKDAY(A1,2)<6)*(MIN(MAX(0,TIME(17,0,0)-MOD(A1,1)),TIME(8,0,0)))
+(WEEKDAY(A2,2)<6)*(MIN(MAX(MOD(A2,1)-TIME(8,0,0),0),TIME(8,0,0))))*24
-SUMPRODUCT(--(WEEKDAY(holidays,2)<5),--(ISNUMBER(MATCH(holidays,ROW(INDIRECT(INT(A1)+1&": "&INT(A2)-1)),0))))*9)*60

--
__________________________________
HTH

Bob

"JQS" wrote in message
...
Need to calculate "business minutes" between dates.
ie...08/29/08 4:00p to 9/2/08 9:00a result in 120 minutes (due to 8a-5p
work day, less weekends and holidays). Can you help? thank you
--
JQS



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 do I calculate a difference in work days? Work Days Excel Worksheet Functions 17 January 9th 09 06:07 PM
How do i Calculate minutes between two different dates Ali Excel Discussion (Misc queries) 5 September 13th 07 04:28 PM
calculate time in days:hours:minutes Stice Excel Discussion (Misc queries) 1 February 5th 07 09:55 PM
How do I calculate work days? ciccia Excel Discussion (Misc queries) 4 July 20th 05 04:42 AM
How to calculate days:Hours:Minutes: Hood Excel Worksheet Functions 1 January 17th 05 11:11 AM


All times are GMT +1. The time now is 12:43 AM.

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"