Exclude Saturday and Sunday in Excel

Solved
Karlum -  
 Lo -
Bonjour,

I work for a road transport company and I was wondering if I could calculate the delivery time based on the pickup day, delivery day, and especially by excluding Saturdays and Sundays.

For example, I have the following data for a shipment:
- Pickup date: 04/09/2008
- Delivery date: 08/09/2008

The calculated delay is 4 days
Actual delay: 2 days because there is 1 Saturday and 1 Sunday.

Do you know how I can apply this in a formula?

Thank you in advance for your responses and have a great weekend.
Configuration: Windows Vista Internet Explorer 7.0 Office Excel 2003 SP3

11 answers

  1. michel_m Posted messages 18903 Registration date   Status Contributor Last intervention   3 320
     
    Hello,

    No need for VBA for this classic calculation with Excel!...

    in the additional macro tool
    check "analysis utility"

    if the first day is in C2 (09/18/08)
    the last day in D2 (09/22/08)

    =NETWORKDAYS(C2,D2) returns 3

    by creating a holiday table, you can also exclude them
    =NETWORKDAYS(first day;last day; holidays)

    Michel
    9