Total hours with NETWORKDAYS

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I am trying to figure out a formula to calculate how many hours are between
two dates. assuming 24 hour days, not 8 hour working days

A1 = 2/16/05 11:00 AM
B1 = 2/22/05 11:32 AM

NETWORKDAYS returns 4, since this monday is a holiday. So is there a
formula that can answer the question, "how many hours are there between A1
and B1 not including saturday, sunday and this monday 2/21. thank you.
 
Try:

=NETWORKDAYS(A1,B1,J1:J10)-2+(1-MOD(A1,1))+MOD(B1,1)

where J1:J10 is your list of holiday dates. You can
simplify the formula further with:

=NETWORKDAYS(A1,B1,J1:J10)-1-MOD(A1,1)+MOD(B1,1)

Custom format the formula cell as [hh]:mm.

HTH
Jason
Atlanta, GA
 
Back
Top