Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
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 |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Dates formula | Excel Worksheet Functions | |||
How Do I Add Dates in a formula? | Excel Worksheet Functions | |||
Need a Formula for DATES | Excel Worksheet Functions | |||
formula for dates | Excel Discussion (Misc queries) | |||
Dates in Formula | Excel Discussion (Misc queries) |