Thread: Counting hours
View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
vanilla_bean_orange via OfficeKB.com vanilla_bean_orange via OfficeKB.com is offline
external usenet poster
 
Posts: 6
Default Counting hours

Works great hurrah!

Thanks so much

Forever in your debt

T

daddylonglegs wrote:
Not sure what my original suggestion was ( ) but this should wor
for you

=IF(B29*D29,(INT(D29)-INT(B29)-INT((WEEKDAY(B29-1)+INT(D29)-INT(B29))/7))*($F$3-$E$3)+IF(WEEKDAY(D29)=1,$F$3,MEDIAN(MOD(D29,1),$F$ 3,$E$3))-IF(WEEKDAY(B29)=1,$E$3,MEDIAN(MOD(B29,1),$F$3,$E$3 )),"")

Note: as I've said before the custom format

dd"days" hh"hours" mm"minutes"

won't show any time period above 31days 23hours 59minutes but I thin
you were OK with that.

I assume you're not expecting any negative time periods so yo
shouldn't need to use 1904 date syste


--
Message posted via OfficeKB.com
http://www.officekb.com/Uwe/Forums.a...mming/200603/1