Calculate days, but exclude weekends

Started by mcvpjd3, March 13, 2014, 03:24:04 PM

Previous topic - Next topic

mcvpjd3

Just being lazy (efficient?) here, has anyone got a bit of script for calculating the number of days between 2 dates, but excluding weekends?

Thanks

stanl

If you have Office Installed just call the WorkSheetFunction NetWorkDays(). It even has an optional argument to exclude holidays between 2 dates.

hdsouza

You can loop through each day during the period
Then with the Timedate() function  if the first item == "sat" or == "sun"  dont count that day

Deana

Deana F.
Technical Support
Wilson WindowWare Inc.