#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 20
Default Work days

Hello,

I am trying to get a formula that will calculate the number of workdays
(Monday to Friday) between two dates in the following format - if possible
this will also take into account a specified list of holidays (non-workdays),
e.g. 25/12/08, which I can specify in a list.

This will always revolve around date 1 - so if date 2 is after date 1 it
will be a positive number, if date 2 is before date one, it will be a
negative number

For example:

Date 1 Date2 No of working
days from date 1

Monday 2nd Feb Friday 30th Jan -1
Monday 2nd Feb Wednesday 4th Feb 2
Monday 2nd Feb Monday 9th Feb 5


Many thanks.

Bob
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,316
Default Work days

Use the =NETWORKDAYS(Start_Date,End_Date,[Holidays])

Holidays are an optional entry, where start and end dates are required.
--
Kevin Backmann


"Bob Freeman" wrote:

Hello,

I am trying to get a formula that will calculate the number of workdays
(Monday to Friday) between two dates in the following format - if possible
this will also take into account a specified list of holidays (non-workdays),
e.g. 25/12/08, which I can specify in a list.

This will always revolve around date 1 - so if date 2 is after date 1 it
will be a positive number, if date 2 is before date one, it will be a
negative number

For example:

Date 1 Date2 No of working
days from date 1

Monday 2nd Feb Friday 30th Jan -1
Monday 2nd Feb Wednesday 4th Feb 2
Monday 2nd Feb Monday 9th Feb 5


Many thanks.

Bob

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,420
Default Work days

=WORKDAYS(A2,B2,holidays)

where holidays is a range of holiday dates

--
__________________________________
HTH

Bob

"Bob Freeman" wrote in message
...
Hello,

I am trying to get a formula that will calculate the number of workdays
(Monday to Friday) between two dates in the following format - if possible
this will also take into account a specified list of holidays
(non-workdays),
e.g. 25/12/08, which I can specify in a list.

This will always revolve around date 1 - so if date 2 is after date 1 it
will be a positive number, if date 2 is before date one, it will be a
negative number

For example:

Date 1 Date2 No of
working
days from date 1

Monday 2nd Feb Friday 30th Jan -1
Monday 2nd Feb Wednesday 4th Feb 2
Monday 2nd Feb Monday 9th Feb 5


Many thanks.

Bob



  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,501
Default Work days

Hi,

Networkdays would normally give an answer 1 higher than you are asking for
so perhaps this

=IF(B1<A1,networkdays(A1,B1,Holidays)+1,networkday s(A1,B1,Holidays)-1)

If your results are an error or typo use the simpler

=networkdays(A1,B1,Holidays)

Holidays is a named range containing holiday dates. If you get a NAM error
then
Tools|Addins and load the analysis toolpak.

Mike

"Bob Freeman" wrote:

Hello,

I am trying to get a formula that will calculate the number of workdays
(Monday to Friday) between two dates in the following format - if possible
this will also take into account a specified list of holidays (non-workdays),
e.g. 25/12/08, which I can specify in a list.

This will always revolve around date 1 - so if date 2 is after date 1 it
will be a positive number, if date 2 is before date one, it will be a
negative number

For example:

Date 1 Date2 No of working
days from date 1

Monday 2nd Feb Friday 30th Jan -1
Monday 2nd Feb Wednesday 4th Feb 2
Monday 2nd Feb Monday 9th Feb 5


Many thanks.

Bob

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 20
Default Work days

Thanks Mike - this is great

"Mike H" wrote:

Hi,

Networkdays would normally give an answer 1 higher than you are asking for
so perhaps this

=IF(B1<A1,networkdays(A1,B1,Holidays)+1,networkday s(A1,B1,Holidays)-1)

If your results are an error or typo use the simpler

=networkdays(A1,B1,Holidays)

Holidays is a named range containing holiday dates. If you get a NAM error
then
Tools|Addins and load the analysis toolpak.

Mike

"Bob Freeman" wrote:

Hello,

I am trying to get a formula that will calculate the number of workdays
(Monday to Friday) between two dates in the following format - if possible
this will also take into account a specified list of holidays (non-workdays),
e.g. 25/12/08, which I can specify in a list.

This will always revolve around date 1 - so if date 2 is after date 1 it
will be a positive number, if date 2 is before date one, it will be a
negative number

For example:

Date 1 Date2 No of working
days from date 1

Monday 2nd Feb Friday 30th Jan -1
Monday 2nd Feb Wednesday 4th Feb 2
Monday 2nd Feb Monday 9th Feb 5


Many thanks.

Bob



  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 20
Default Work days

Thank you

"Kevin B" wrote:

Use the =NETWORKDAYS(Start_Date,End_Date,[Holidays])

Holidays are an optional entry, where start and end dates are required.
--
Kevin Backmann


"Bob Freeman" wrote:

Hello,

I am trying to get a formula that will calculate the number of workdays
(Monday to Friday) between two dates in the following format - if possible
this will also take into account a specified list of holidays (non-workdays),
e.g. 25/12/08, which I can specify in a list.

This will always revolve around date 1 - so if date 2 is after date 1 it
will be a positive number, if date 2 is before date one, it will be a
negative number

For example:

Date 1 Date2 No of working
days from date 1

Monday 2nd Feb Friday 30th Jan -1
Monday 2nd Feb Wednesday 4th Feb 2
Monday 2nd Feb Monday 9th Feb 5


Many thanks.

Bob

  #7   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 20
Default Work days

Thank you

"Bob Phillips" wrote:

=WORKDAYS(A2,B2,holidays)

where holidays is a range of holiday dates

--
__________________________________
HTH

Bob

"Bob Freeman" wrote in message
...
Hello,

I am trying to get a formula that will calculate the number of workdays
(Monday to Friday) between two dates in the following format - if possible
this will also take into account a specified list of holidays
(non-workdays),
e.g. 25/12/08, which I can specify in a list.

This will always revolve around date 1 - so if date 2 is after date 1 it
will be a positive number, if date 2 is before date one, it will be a
negative number

For example:

Date 1 Date2 No of
working
days from date 1

Monday 2nd Feb Friday 30th Jan -1
Monday 2nd Feb Wednesday 4th Feb 2
Monday 2nd Feb Monday 9th Feb 5


Many thanks.

Bob




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
Work Days Richard Excel Discussion (Misc queries) 2 July 2nd 08 07:48 PM
Work Days Formula Hany ElKady Excel Discussion (Misc queries) 10 July 23rd 06 01:35 PM
work days function tom Excel Worksheet Functions 3 July 20th 06 08:30 PM
Net Work Days Bryan Excel Discussion (Misc queries) 0 April 19th 06 09:23 PM
Counting work days Hausma Excel Discussion (Misc queries) 1 April 10th 05 10:13 PM


All times are GMT +1. The time now is 01:23 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"