Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3
Default Count the Number of Workdays

Trying to figure how I can take a start and end date and count the number of
work days based on a Monday through Thursday work schedule. Does NetWorkdays
function have a special operative that will enable me to perform the above
condition.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default Count the Number of Workdays

One way...

A1 = start date
B1 = end date

=SUM(INT((WEEKDAY(A1-{1,2,3,4},2)+B1-A1)/7))

--
Biff
Microsoft Excel MVP


"Rocetman" wrote in message
...
Trying to figure how I can take a start and end date and count the number
of
work days based on a Monday through Thursday work schedule. Does
NetWorkdays
function have a special operative that will enable me to perform the above
condition.



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 7,247
Default Count the Number of Workdays

I have a number of formulas on my web site that perform a task similar
to NETWORKDAYS but allow you to excude any number of days of the week
from the calculation. One set of formulas is simple but doesn't
support a list of holidays to exclude. The other set is more
complicated but allows a list of holidays to exclude. These functions
do not require NETWORKDAYS or the Analysis ToolPak. See
http://www.cpearson.com/excel/BetterNetworkDays.aspx for details and
examples.

Cordially,
Chip Pearson
Microsoft Most Valuable Professional,
Excel, 1998 - 2010
Pearson Software Consulting, LLC
www.cpearson.com



On Thu, 25 Feb 2010 15:02:03 -0800, Rocetman
wrote:

Trying to figure how I can take a start and end date and count the number of
work days based on a Monday through Thursday work schedule. Does NetWorkdays
function have a special operative that will enable me to perform the above
condition.

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default Count the Number of Workdays

Some clarification...

=SUM(INT((WEEKDAY(A1-{1,2,3,4},2)+B1-A1)/7))


{1,2,3,4} represents the weekday numbers that you want the count for.

Whe

1 = Monday
2 = Tuesday
3 = Wednesday
4 = Thursday
5 = Friday
6 = Saturday
7 = Sunday

--
Biff
Microsoft Excel MVP


"T. Valko" wrote in message
...
One way...

A1 = start date
B1 = end date

=SUM(INT((WEEKDAY(A1-{1,2,3,4},2)+B1-A1)/7))

--
Biff
Microsoft Excel MVP


"Rocetman" wrote in message
...
Trying to figure how I can take a start and end date and count the number
of
work days based on a Monday through Thursday work schedule. Does
NetWorkdays
function have a special operative that will enable me to perform the
above
condition.





  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3
Default Count the Number of Workdays



"T. Valko" wrote:

Some clarification...

=SUM(INT((WEEKDAY(A1-{1,2,3,4},2)+B1-A1)/7))


{1,2,3,4} represents the weekday numbers that you want the count for.

Whe

1 = Monday
2 = Tuesday
3 = Wednesday
4 = Thursday
5 = Friday
6 = Saturday
7 = Sunday

--
Biff
Microsoft Excel MVP


"T. Valko" wrote in message
...
One way...

A1 = start date
B1 = end date

=SUM(INT((WEEKDAY(A1-{1,2,3,4},2)+B1-A1)/7))

--
Biff
Microsoft Excel MVP


"Rocetman" wrote in message
...
Trying to figure how I can take a start and end date and count the number
of
work days based on a Monday through Thursday work schedule. Does
NetWorkdays
function have a special operative that will enable me to perform the
above
condition.





.
This helps a great deal, but is there a way to exclude the major holidays such as Christmas, New Years, Labor Day, Thanksgiving, Memorial Day, and 4th of July. Even though this would be a simple task for one year by setting up a string in a seperate column, but I would need to count for several years since the job that I am on would last at least 10 years. Have any suggestions that Excel could automatically exclude the above holidays in "count the Number of workdays"?



  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default Count the Number of Workdays

Excluding holidays complicates things a bit!

Let's try a different formula for that.

A1 = start date
B1 = end date
C1:C10 = list of holiday DATES to be excluded

=SUMPRODUCT(--(WEEKDAY(ROW(INDIRECT(A1&":"&B1)),2)<5),--(ISNA(MATCH(ROW(INDIRECT(A1&":"&B1)),C1:C10,0))))

--
Biff
Microsoft Excel MVP


"Rocetman" wrote in message
...


"T. Valko" wrote:

Some clarification...

=SUM(INT((WEEKDAY(A1-{1,2,3,4},2)+B1-A1)/7))


{1,2,3,4} represents the weekday numbers that you want the count for.

Whe

1 = Monday
2 = Tuesday
3 = Wednesday
4 = Thursday
5 = Friday
6 = Saturday
7 = Sunday

--
Biff
Microsoft Excel MVP


"T. Valko" wrote in message
...
One way...

A1 = start date
B1 = end date

=SUM(INT((WEEKDAY(A1-{1,2,3,4},2)+B1-A1)/7))

--
Biff
Microsoft Excel MVP


"Rocetman" wrote in message
...
Trying to figure how I can take a start and end date and count the
number
of
work days based on a Monday through Thursday work schedule. Does
NetWorkdays
function have a special operative that will enable me to perform the
above
condition.




.
This helps a great deal, but is there a way to exclude the major holidays
such as Christmas, New Years, Labor Day, Thanksgiving, Memorial Day, and
4th of July. Even though this would be a simple task for one year by
setting up a string in a seperate column, but I would need to count for
several years since the job that I am on would last at least 10 years.
Have any suggestions that Excel could automatically exclude the above
holidays in "count the Number of workdays"?



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Calculating number of workdays between 2 dates Gibbyky2 Excel Worksheet Functions 15 April 1st 11 12:31 PM
Calculating number of workdays PO Excel Worksheet Functions 1 August 31st 06 01:40 PM
Count workdays remaining in a month Ads Excel Discussion (Misc queries) 2 August 14th 06 12:40 AM
Dislpay count of workdays in a month? DB Explorer Excel Worksheet Functions 2 March 21st 06 04:19 PM
Calculate the number of workdays between 2 dates Tegid77 Excel Worksheet Functions 2 November 4th 04 11:09 PM


All times are GMT +1. The time now is 08:58 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"