Formula question - time calc

  • Thread starter Thread starter Steve Grosz
  • Start date Start date
S

Steve Grosz

I am using the basic excel formula to calculate the difference between 2
dates using =(b2-b1)*1440 to get the number of minutes

Is there a way to have it calculate only weekdays? Without holidays?
(holidays might be a stretch....) and from 9am - 5pm??

Thanks!
Steve
 
What about number of minutes between 2 dates, minus weekends and
holidays? Is there a formula that will figure that one out?

Steve
 
Not quite, that ignores the time portion, and includes both days.

I think this does it

=(NETWORKDAYS(B1,C1)-1)*1440-((WEEKDAY(B1,2)<5)*(MOD(B1,1)*1440))+((WEEKDAY(
C1,2)<5)*(MOD(C1,1)*1440))
 
Back
Top