Calculating the difference between hours

S

Sambusa

Thanks for u myrna,

I have used this formula:

=IF(AND(INT(StartDT)=INT(EndDT),NOT(ISNA(MATCH(IN
(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))))))


Pls try & reply
SAM
 
M

Myrna Larson

Do what I told you: you must add 2 to each and every one of your references to
StartDT and EndDt. My newsgroup reader doesn't have search and replace to do
it for you. Excel does.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top