Change the weekends

S

Sadad

Dears,
I want to calculate the working-days of my subordinates and I usually I use
the function NETWORKDAYS but in this country the weekends are Saturday and
Friday?!
What should I do?
BR
 
M

Mike H

Hi,

If you don't use the Holidays argument of Networkdays you can use

=SUMPRODUCT(1*(WEEKDAY(ROW(INDIRECT(A1&":"&B1)))<6 ))

Or to include the Holidays argument use this with holidays in C1:C8

=SUMPRODUCT(1*(WEEKDAY(ROW(INDIRECT(A1&":"&B1)))<6),--(ISNA(MATCH(ROW(INDIRECT(A1&":"&B1)),$C$1:$C$8,0))))

--
Mike

When competing hypotheses are otherwise equal, adopt the hypothesis that
introduces the fewest assumptions while still sufficiently answering the
question.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top