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
--
daddylongleg
-----------------------------------------------------------------------
daddylonglegs's Profile:
http://www.excelforum.com/member.php...fo&userid=3048
View this thread:
http://www.excelforum.com/showthread.php?threadid=52052