Solved

Totaling current count of workdays in the month

Posted on 2008-06-24
4
618 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 39

Accepted Solution

by:
nutsch earned 500 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

The new Microsoft OS looks great, is easier than ever to upgrade to, it is even free.  So what's the catch?  If you don't change the privacy settings, Microsoft will, in accordance with the (EULA) you clicked okay to without reading, collect all the…
Access developers frequently have requirements to interact with Excel (import from or output to) in their applications.  You might be able to accomplish this with the TransferSpreadsheet and OutputTo methods, but in this series of articles I will di…
The viewer will learn how to use the =DISCRINV command to create a discrete random variable, use this command to model a set of probabilities and outcomes in a Monte Carlo simulation, and learn how to find the standard deviation of a set of probabil…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

730 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