Weekend / Non Weekend Days

A

Andrew

Hi

I would appreciate it if someone could tell me the formaula to retrieve the
number of weekend days in any given month e.g. January 2011.

Many thanks,

Andrew
 
B

Bob Umlas

=SUMPRODUCT(1*(WEEKDAY(ROW(INDIRECT(DATE(YEAR(A1),MONTH(A1),1)&":"&DATE(YEAR(A1),MONTH(A1)+1,0))))={1,7}))

Bob Umlas
Excel MVP
 
P

Pete_UK

If you have Excel 2007, or if you have the Analysis ToolPak installed
for earlier versions, then NETWORKDAYs will give you the number of
working days between a start and end date, so you could subtract this
from the number of days in the month to get weekend days.

Hope this helps.

Pete
 
R

Rick Rothstein

Give this formula a try...

=SUMPRODUCT((WEEKDAY(A1-DAY(A1)+ROW(1:31),2)>5)*(MONTH(A1-DAY(A1)+ROW(1:31))=MONTH(A1)))
 

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