#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 132
Default Dates formula

Hi

I want to deduct 2 dates. I also want to deduct weekend days if they are
within the period of time of the calculation. e.i

10/23/07 - 10/18/07 = 5 days minus 2 weekend days = 3 days

I want to get 3 days result.

Could someone help with this formula please.

Thanks
Orquidea
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 179
Default Dates formula

Hi Orquidea

try this formula

=((A1-A2-WEEKDAY(A1)+WEEKDAY(A2)-7)/7*5)+WEEKDAY(A1)-WEEKDAY(A2)+5

where A1 is the later date.

hth

Carlo

"orquidea" wrote:

Hi

I want to deduct 2 dates. I also want to deduct weekend days if they are
within the period of time of the calculation. e.i

10/23/07 - 10/18/07 = 5 days minus 2 weekend days = 3 days

I want to get 3 days result.

Could someone help with this formula please.

Thanks
Orquidea

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 40
Default Dates formula

Take a look at the help on the NETWORKDAYS function. It will give you
the difference between 2 dates. It will exclude weekends and allow
you to have a 'range of holidays' to exclude as well. -pb

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,480
Default Dates formula

Hi

With 10/23/07 in A1 and 18/10/07 in B1
=NETWORKDAYS(B1,A1)-1
You need to deduct 1 if you want a result of 3, as Networkdays includes the
whole of the first and last days.

Networkdays is part of the Analysis Toolpak.
ToolsAddinscheck Analysis Toolpak

--
Regards
Roger Govier



"orquidea" wrote in message
...
Hi

I want to deduct 2 dates. I also want to deduct weekend days if they are
within the period of time of the calculation. e.i

10/23/07 - 10/18/07 = 5 days minus 2 weekend days = 3 days

I want to get 3 days result.

Could someone help with this formula please.

Thanks
Orquidea



  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 132
Default Dates formula

Thanks Carlo

"Carlo" wrote:

Hi Orquidea

try this formula

=((A1-A2-WEEKDAY(A1)+WEEKDAY(A2)-7)/7*5)+WEEKDAY(A1)-WEEKDAY(A2)+5

where A1 is the later date.

hth

Carlo

"orquidea" wrote:

Hi

I want to deduct 2 dates. I also want to deduct weekend days if they are
within the period of time of the calculation. e.i

10/23/07 - 10/18/07 = 5 days minus 2 weekend days = 3 days

I want to get 3 days result.

Could someone help with this formula please.

Thanks
Orquidea



  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 132
Default Dates formula

Thanks Roger. It worked.

"Roger Govier" wrote:

Hi

With 10/23/07 in A1 and 18/10/07 in B1
=NETWORKDAYS(B1,A1)-1
You need to deduct 1 if you want a result of 3, as Networkdays includes the
whole of the first and last days.

Networkdays is part of the Analysis Toolpak.
ToolsAddinscheck Analysis Toolpak

--
Regards
Roger Govier



"orquidea" wrote in message
...
Hi

I want to deduct 2 dates. I also want to deduct weekend days if they are
within the period of time of the calculation. e.i

10/23/07 - 10/18/07 = 5 days minus 2 weekend days = 3 days

I want to get 3 days result.

Could someone help with this formula please.

Thanks
Orquidea




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
Dates formula davey Excel Worksheet Functions 6 July 21st 07 08:18 PM
How Do I Add Dates in a formula? Rogue Excel Worksheet Functions 3 January 9th 06 07:12 AM
Need a Formula for DATES Debbie Excel Worksheet Functions 2 November 8th 05 02:46 PM
formula for dates pascot Excel Discussion (Misc queries) 1 June 21st 05 08:33 AM
Dates in Formula John G Excel Discussion (Misc queries) 10 January 15th 05 03:48 PM


All times are GMT +1. The time now is 09:02 AM.

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

About Us

"It's about Microsoft Excel"