> 1) Does it mean that I have to set a list of holidays to be used as
> holidays argument ???
[quoted text clipped - 3 lines]
> To add (or subtract) a certain number of years, months, and/or days to
> a date in a Works spreadsheet.
Your formula (2) works in XL as well to add days, months and years
without skipping weekends or holidays. HOWEVER, note that adding months
is problematic, since months have different numbers of days. For
instance, adding 1 month to 31 January 2005 might logically mean 28
February 2005 to some (e.g., that's what VBA's DateAdd function
returns), but XL, using
A1: 1/31/2005
A2: =DATE(YEAR(A1),MONTH(A1)+1,DAY(A1)
will return the "31st of February", or 3/3/05.
If you have just want to add a number of days, without skipping weekends
or holidays, you can use arithmetic:
=ref + days
If you want to skip weekends, but not holidays, use
=WEEKDAY(ref, days)
If you want to skip weekends and holidays, use
=WEEKDAY(ref, days, holidays)
where holidays is either an array:
=WEEKDAY(ref,days,{"1/1/2005","5/30/2005","7/4/2005","12/25/2005"})
or holidays is a range of cells with date entries.
RYAN - 24 Jun 2005 17:27 GMT
Thanks for your clarification. I will try to use WEEKDAY formula to
calculate production schedules, and WEEKDAY(ref,days.....) formula to
calculate delivery lead time. I will update my post with the result.
Thanks again.