Solved

Workdays in a month based on 6 day work weeks

Posted on 2013-01-31
5
420 Views
Last Modified: 2013-01-31
Our work week is Monday through Saturday.  So, I need a formula in Excel 2003 that will calculate the number of workdays in the month based on 6 days in a work week.  I will still need to exclude holidays.
0
Comment
Question by:jmkbrown
  • 2
  • 2
5 Comments
 
LVL 7

Expert Comment

by:karunamoorthy
ID: 38839497
You told your work starts on monday through saturday. then suppose the month starts on wednesday then for that week, can you take 4 days in that week(wed+thu+fri+sat) or whole 6 days in that week.

You can try this link to get more help

http://www.teachexcel.com/excel-help/excel-how-to.php?i=412138
0
 

Author Comment

by:jmkbrown
ID: 38839549
Yes I would want 4 days in that week.
0
 
LVL 7

Expert Comment

by:karunamoorthy
ID: 38839706
Adding days but excluding Sunday's

Just to exclude Sundays try

=IF(WEEKDAY(A1+B1)=1,1)+A1+B1

where A1 is start date and b1 contains the number of days to add

If you want to exclude holidays too then the formula becomes a little trickier. If you have holiday dates listed in the range H1:H10 you can use this formula

=MIN(IF(WEEKDAY(A1+B1+{0,1,2,3,4})<>1,IF(ISNA(MATCH(A1+B1+{0,1,2,3,4},H$1:H$10,0)),A1+B1+{0,1,2,3,4})))

This is an "array formula" that needs to be confirmed with CTRL+SHIFT+ENTER so that curly braces like { and } appear around the formula in the formula bar. That will accommodate up to 4 successive Sundays/holidays
0
 
LVL 50

Accepted Solution

by:
barry houdini earned 500 total points
ID: 38839812
To count the number of workdays in a month you can put first day of month in A2 and use this formula in B2

=28-DAY(A2+31)-(DAY(A2+34)<WEEKDAY(A2-1))-SUMPRODUCT((H$2:H$9>=A2)*(H$2:H$9<=A2+31-DAY(A2+31)))

Assuming that H2:H9 contains holiday dates - see attached

regards, barry
count-workdays.xls
0
 

Author Comment

by:jmkbrown
ID: 38840243
barryhoudini your formula works perfectly!  Thank you very much!
0

Featured Post

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Approximate matching with VLOOKUP and MATCH seems to me to be a greatly under-used technique, and one which is vital for getting good performance out of large lookups. Until recently I would always have advised using an exact match for simplicity an…
Some code to ensure data integrity when using macros within Excel. Also included code that helps secure your data within an Excel workbook.
This Micro Tutorial will demonstrate the scrolling table in Microsoft Excel using the INDEX function.
This Micro Tutorial will demonstrate how to create pivot charts out of a data set. I also added a drop-down menu which allows to choose from different categories in the data set and the chart will automatically update.

785 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question