LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 358
Default work hours calculation Excel 2003

I am currently using the following formula to calculate work hours. However
when I do not have an end date / time it very large number is calculated

In the example below the start date is 2008/08/11 11:17 with no end date and
the calculation is 711311.22

How can I change the foluma to have a zero if no end date is completed?

IF(OR(O105<1,AND(INT(V105)=INT(O105),NOT(ISNA(MATC H(INT(V105),List!A$9:A$24,0))))),0,ABS(IF(INT(V105 )=INT(O105),ROUND(24*(O105-V105),2),
(24*(X105-W105)*
(MAX(NETWORKDAYS(V105+1,O105-1,List!A$9:A$24),0)+
INT(24*(((O105-INT(O105))-
(A105-INT(V105)))+(X105-W105))/(24*(X105-W105))))+
MOD(ROUND(((24*(O105-INT(O105)))-24*W105)+
(24*X105-(24*(V105-INT(V105)))),2),
ROUND((24*(X105-W105)),2))))))


--
Andrew
 
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
Determining work hours between dates / hours Andrew Excel Worksheet Functions 3 July 30th 08 06:38 PM
daily work schedule hours calculation leejb Excel Discussion (Misc queries) 2 June 21st 07 08:01 PM
Work hours calculation albertmb Excel Discussion (Misc queries) 3 February 28th 07 07:40 PM
Excel calculation of duration in hours and minutes [email protected] Excel Worksheet Functions 4 February 9th 07 04:25 PM
Removing non Work Hours from Excel calculation [email protected] Excel Worksheet Functions 23 March 11th 06 01:31 AM


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