Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4
Default exact differnce between 2 dates & time networkdays give round off

I would like to calculate differnce between two time instance without holidays.
so @ 4th july 2008 14:22:30 work started and it ended on 29th July 16:20:44
Then i want to calculate exact working time spent on the task. It should not
include holidays. I know networkdays give the answer but it rounds off the
result and I want exact differnce in fractions so that i can count upto exact
seconds spent on process.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 10,593
Default exact differnce between 2 dates & time networkdays give round off

=(NETWORKDAYS(date1,date2,holidays))
-(WEEKDAY(date1,2)<6)*(NOT(ISNUMBER(MATCH(INT(date1 ),holidays,0))))
-(WEEKDAY(date2,2)<6)*(NOT(ISNUMBER(MATCH(INT(date2 ),holidays,0))))
+((WEEKDAY(date1,2)<6)*(NOT(ISNUMBER(MATCH(INT(dat e1),holidays,0))))*(MIN(MAX(0,1-MOD(date1,1)),1)))
+((WEEKDAY(date2,2)<6)*(NOT(ISNUMBER(MATCH(INT(dat e2),holidays,0))))*(MIN(MAX(MOD(date2,1),0),1)))

--
HTH

Bob

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

"panks" wrote in message
...
I would like to calculate differnce between two time instance without
holidays.
so @ 4th july 2008 14:22:30 work started and it ended on 29th July
16:20:44
Then i want to calculate exact working time spent on the task. It should
not
include holidays. I know networkdays give the answer but it rounds off the
result and I want exact differnce in fractions so that i can count upto
exact
seconds spent on process.



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
Round, but give at least a value of 1 Q Sean Excel Worksheet Functions 2 November 2nd 07 09:08 AM
How do I calculate exact difference between two dates in y,m,d. Muhammad Javaid Hassan Excel Worksheet Functions 8 September 23rd 06 10:02 PM
How do I calculate exact difference between two dates in y,m,d. Muhammad Javaid Hassan Excel Worksheet Functions 3 September 19th 06 01:42 PM
NETWORKDAYS calc with 3 columns of dates Mendz5 Excel Worksheet Functions 26 August 18th 06 09:21 PM
Calculating Dates Using Different Values for NETWORKDAYS Kelly Excel Worksheet Functions 9 April 22nd 06 03:10 PM


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