Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Result should be the number of weekdays only

Status
Not open for further replies.

qwerty70

Technical User
Dec 13, 2005
73
GB
I have a form based on a query. This form contains a "StartDate","EndDate" and "NumberOfDays". On the "NumberOfDays" text box it should return only the number of week days (i.e. excluding Saturday & Sunday).

Appreciate your help in advance.

Thanks,

qwerty70
 
Check out the NETWORKDAYS() function. It handles only weekdays (i.e. no Saturdays or Sundays) and can handle optional predefined holidays as well.

You will need to install the Analysis Tool Pack (under Tools->Add-Ins) to have this function available.

Peace!! [americanflag] [peace] [americanflag]

Mike

Didn't get the answers that you wanted? Then . . . Click Here
 

You should also check out my FAQ on Excel's date functions:

What are some of Excel's date functions?

faq68-4037



Peace!! [americanflag] [peace] [americanflag]

Mike

Didn't get the answers that you wanted? Then . . . Click Here
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top