View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.misc
Rob Rob is offline
external usenet poster
 
Posts: 718
Default Modifying Networkdays

Hi,

I have the below code that utilizies the NETWORKDAYS capability of Excel. My
question is is it possible to Internally/Programaticaly modify how
NETWORKDAYS functions? I know that the "9.5" sets the hours per day, however,
I want to be able to set "When" the work day starts; "When" and "Howlong"
lunchtime is and "When the end of the day is.

Work Start - 7AM
Lunchtime - 11:30 till 12:30
End Day - 5PM


=IF(F14<FALSE,(9.5+(MOD(F14,1)-MOD(E14,1))*24+(NETWORKDAYS(E14,F14)-2)*9.5)/24,"")


Thanks In Advance,
R