ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Calculating the difference between hours (https://www.excelbanter.com/excel-programming/312382-calculating-difference-between-hours.html)

Sambusa[_5_]

Calculating the difference between hours
 

It's give's me this error: #VALUE!


Pls help !
SAM

--
Sambus
-----------------------------------------------------------------------
Sambusa's Profile: http://www.excelforum.com/member.php...fo&userid=1496
View this thread: http://www.excelforum.com/showthread.php?threadid=26588


mark

Calculating the difference between hours
 
the #VALUE indicator means that Excel knows it should
evaluate to a number, but cannot, for some reason.

To have any idea as to specifically WHY not, you need to
at least post your formula.


-----Original Message-----

It's give's me this error: #VALUE!


Pls help !
SAMI


--
Sambusa
----------------------------------------------------------

--------------


Tom Ogilvy

Calculating the difference between hours
 
He did - here it is:

=IF(AND(INT(StartDT)=INT(EndDT),NOT(ISNA(MATCH(INT (StartDT),HolidayList,0)))
)
,0,ABS(IF(INT(StartDT)=INT(EndDT),ROUND(24*(EndDT-StartDT),2),
(24*(DayEnd-DayStart)*
(MAX(NETWORKDAYS(StartDT+1,EndDT-1,HolidayList),0)+
INT(24*(((EndDT-INT(EndDT))-
(StartDT-INT(StartDT)))+(DayEnd-DayStart))/(24*(DayEnd-DayStart))))+
MOD(ROUND(((24*(EndDT-INT(EndDT)))-24*DayStart)+
(24*DayEnd-(24*(StartDT-INT(StartDT)))),2),
ROUND((24*(DayEnd-DayStart)),2))))))

I am working with it from yesterday but still i am facing a problem,
Can u do favor for me & write one example pls pls as soon as possible


I am waiting for u

SAMI

--
Regards,
Tom Ogilvy

"mark" wrote in message
...
the #VALUE indicator means that Excel knows it should
evaluate to a number, but cannot, for some reason.

To have any idea as to specifically WHY not, you need to
at least post your formula.


-----Original Message-----

It's give's me this error: #VALUE!


Pls help !
SAMI


--
Sambusa
----------------------------------------------------------

--------------





All times are GMT +1. The time now is 01:38 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com