Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
gus gus is offline
external usenet poster
 
Posts: 5
Default Add the specified number of work days to the a date.

Can someone know how i can get the date after adding to another date some
working days?

Let's say that now we have 2005-10-13, if i add 5 working days i must get
as a result the 2005-10-20 .(not include sun and sat).
Can anyone have a forumula. (Not with the analysis toolpack) just simple
formula or vba for excel 97.




  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default Add the specified number of work days to the a date.

Why not the ATP?

=start_date+SIGN(B1)*SMALL(IF((WEEKDAY(start_date+ SIGN(days)*(ROW(INDIRECT("
1:"&ABS(days)*10))))={1,2,3,4,5})*
ISNA(MATCH(start_date+SIGN(days)*(ROW(INDIRECT("1: "&ABS(days)*10))),holidays
,0)),ROW(INDIRECT("1:"&ABS(days)*10))),ABS(days))

it is an array formula, so commit with Ctrl-Shift-Enter.

--
HTH

Bob Phillips

"gus" wrote in message
...
Can someone know how i can get the date after adding to another date some
working days?

Let's say that now we have 2005-10-13, if i add 5 working days i must

get
as a result the 2005-10-20 .(not include sun and sat).
Can anyone have a forumula. (Not with the analysis toolpack) just simple
formula or vba for excel 97.






  #3   Report Post  
Posted to microsoft.public.excel.programming
gus gus is offline
external usenet poster
 
Posts: 5
Default Add the specified number of work days to the a date.



Thanks it worked


"Bob Phillips" wrote in message
...
Why not the ATP?

=start_date+SIGN(B1)*SMALL(IF((WEEKDAY(start_date+ SIGN(days)*(ROW(INDIRECT("
1:"&ABS(days)*10))))={1,2,3,4,5})*
ISNA(MATCH(start_date+SIGN(days)*(ROW(INDIRECT("1: "&ABS(days)*10))),holidays
,0)),ROW(INDIRECT("1:"&ABS(days)*10))),ABS(days))

it is an array formula, so commit with Ctrl-Shift-Enter.

--
HTH

Bob Phillips

"gus" wrote in message
...
Can someone know how i can get the date after adding to another date some
working days?

Let's say that now we have 2005-10-13, if i add 5 working days i must

get
as a result the 2005-10-20 .(not include sun and sat).
Can anyone have a forumula. (Not with the analysis toolpack) just simple
formula or vba for excel 97.








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
Date minus work days HK[_3_] Excel Worksheet Functions 8 February 9th 10 02:52 AM
Date Formula for number of days between a date and today BrendaP Excel Discussion (Misc queries) 7 July 2nd 09 07:30 PM
business day date from a specific date based on a number of days Jana Excel Worksheet Functions 2 January 2nd 08 06:21 PM
Excel Formula to calulate number of days passed from date to date K. Mack Excel Discussion (Misc queries) 8 January 4th 07 11:27 PM
Number of work days/month Vanna Excel Worksheet Functions 1 March 16th 06 04:35 AM


All times are GMT +1. The time now is 10:45 PM.

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"