# Networkdays

#### makinsond

##### New Member
I use the NETWORKDAYS command to calculate the number of working days between 2 dates. NETWORKDAYS treats Saturday and Sunday as non-working days and omits them from the calculation.

I have a client who regards Saturday as a working day so I either need to find a version of Networkdays which only regards Sunday as a non-working day or a calculation which will count the number of Sundays between 2 dates.

### Excel Facts

Which Excel functions can ignore hidden rows?
The SUBTOTAL and AGGREGATE functions ignore hidden rows. AGGREGATE can also exclude error cells and more.

#### 2rrs

##### Active Member
have a look here: http://www.mrexcel.com/board2/viewtopic.php?t=72395

The following formula from Harlan Grove (Microsoft Excel MVP)
mimics Excel’s Networkdays function:
=SUMPRODUCT(--(COUNTIF(Holidays,ROW(INDIRECT(A2&":"&B2)))=0),--(WEEKDAY(ROW(INDIRECT(A2&":"&B2)),3)<6))

Where:
A2: 1 November 03 (start date)
B2: 31 March 04 (end date)

“Holidays” is a named range that covers holidays for the year.

The above formula returns an identical result to:
=NETWORKDAYS(A2,B2,Holidays) but includes Saturdays and excludes Sundays.

Replies
0
Views
192
Replies
12
Views
2K
Replies
2
Views
103
Replies
5
Views
183
Replies
2
Views
137

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

1,151,871
Messages
5,766,857
Members
425,382
Latest member
IronM

### We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.

### Which adblocker are you using?

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

### Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

### Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back