
Originally Posted by
DonkeyOte
Networkdays won't obviously give you the duration in hours etc... for that you need to do some additional work with the NETWORKDAYS function:
=(NETWORKDAYS(A1,B1)-1)+(MOD(B1,1)-MOD(A1,1))
where A1 & B1 hold start & end datetime values respectively and holidays is an optional named range containing public holiday dates that are to be excluded from the calculation also.
note the above would not work were the start/end dates to fall on weekends/public holidays.
you can format the result as detailed previously to give duration in the requisite format.
check out daddylonglegs posts' on all things NETWORKDAY... you're bound to find a solution that works for you amongst that little goldmine of information...
Bookmarks