?
Solved

Totaling current count of workdays in the month

Posted on 2008-06-24
4
Medium Priority
?
651 Views
Last Modified: 2010-04-21
Does anyone know what excel function or combination of functions to use to count the current number of workdays in a month?

i.e. June = 21 use networkday function

how do I count the total # of workdays so far this month?
6/24 = workday 16 out of 21

i am using office 2007

Thanks!

I am trying to setup a ratio of the count of current days over the count of total days
0
Comment
Question by:kpwhitte
  • 2
4 Comments
 
LVL 39

Accepted Solution

by:
nutsch earned 2000 total points
ID: 21861501
today's networkdays in the month:
=networkdays(DATE(YEAR(NOW()),MONTH(NOW()),1),NOW())
total networkdays in the month
=networkdays(DATE(YEAR(NOW()),MONTH(NOW()),1),DATE(YEAR(NOW()),MONTH(NOW())+1,1)-1)
0
 

Author Closing Comment

by:kpwhitte
ID: 31470413
Works perfectly - mucho thanks for the help.
0
 

Author Comment

by:kpwhitte
ID: 21865143
thanks
0
 
LVL 45

Expert Comment

by:patrickab
ID: 21865491
kpwhitte,

Or you could use:

=NETWORKDAYS(EOMONTH(TODAY(),-1)+1,EOMONTH(TODAY(),0),E2:E6)

where E2:E6 contains the list of dates which are public holidays. That formula will update automatically for whatever month it is - provided the list of public holidays in that month is correct.

I think you'll need the Analysis ToolPak installed for EOMONTH to work. Tools/Add-ins and tick the Analysis ToolPak option, press OK.

Patrick
0

Featured Post

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

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

This article describes how you can use Custom Document Properties to store settings and other information in your workbook so that they will be available the next time you open the workbook.
Ever visit a website where you spotted a really cool looking Font, yet couldn't figure out which font family it belonged to, or how to get a copy of it for your own use? This article explains the process of doing exactly that, as well as showing how…
The viewer will learn how to create two correlated normally distributed random variables in Excel, use a normal distribution to simulate the return on different levels of investment in each of the two funds over a period of ten years, and, create a …
Many functions in Excel can make decisions. The most simple of these is the IF function: it returns a value depending on whether a condition you describe is true or false. Once you get the hang of using the IF function, you will find it easier to us…

839 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