View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Mike H Mike H is offline
external usenet poster
 
Posts: 11,501
Default Change the weekends

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.


"Sadad" wrote:

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