Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / Worksheet Functions / March 2006

Tip: Looking for answers? Try searching our database.

Dislpay count of workdays in a month?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
DB Explorer - 21 Mar 2006 16:34 GMT
I have an excel sheet with the month and year in the A row..Like

Jan-06 Feb-06 Mar-06 Apr-06

How do i insert a formula in B row, to display the number of weekdays
in that corresponding month, like this?

Jan-06 Feb-06 Mar-06 Apr-06
 22       20       23        20

Please advise

Cheers
Sunny
daddylonglegs - 21 Mar 2006 17:02 GMT
Here's one way....

assume that your your row 1 contains dates - the first day of eac
month - formatted as mmm-yy, with Jan-06 in A1

in A2 use this formula

=NETWORKDAYS(A1,EOMONTH(A1,0))

formatted as general, copied across row.

Note both NETWORKDAYS and EOMONTH are part of Analysis ToolPak add-in
An alternative formula which doesn't require Analysis ToolPak

=32-DAY(A1+31)-SUM(INT((WEEKDAY(A1-{0,1})+31-DAY(A1+31))/7)
Duke Carey - 21 Mar 2006 17:19 GMT
Make sure you have the Analysis Toolpak isntalled (Tools->Add-ins.. and make
sure the Analysis Toolpak is checked), then use the formula

=networkdays(--"1/1/2006",--"2/1/2006")

If A1 & B1 contain the dates Jan 1 & Feb 1 of 2006, use

=networkdays(A1,B1)

> I have an excel sheet with the month and year in the A row..Like
>
[quoted text clipped - 10 lines]
> Cheers
> Sunny
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.