ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Future date with six day week including holidays (https://www.excelbanter.com/excel-worksheet-functions/258231-future-date-six-day-week-including-holidays.html)

ajitexcel

Future date with six day week including holidays
 
can anyone help me with this
a. how to get future date (like WORKDAY Function) but the formula should include saturdays as work day excluding sundays and holidays.

for example if 2 mar 10 is the starting date then plus 15 days including 2 holidays (say 5 mar 10 & 9 mar 10) and sundays (i.e. 7 mar & 14 mar) the to be arrived should be 20 mar 10.
and the formula should also check if the date arrived is a saturday then it should add following sunday i.e in above case it should become 21 mar 10
:)

Roger Govier[_8_]

Future date with six day week including holidays
 
Hi

The following array entered formula is based upon one written by the
late Frank Kabel.

It depends upon some defined names.
Use InsertNameDefine
Days =cell with number of days to add
Start_date =cell containing the start date
holidays =range of cells containing holiday dates

Then use the array entered formula
{=start_date+IF(days=0,0,SIGN(days)*SMALL(IF((WEEK DAY(start_date+SIGN(days)*
(ROW(INDIRECT("1:"&ABS(days)*10))),2)<7)*ISNA(MATC H(start_date+SIGN(days)*
(ROW(INDIRECT("1:"&ABS(days)*10))),holidays,0)),RO W(INDIRECT("1:"&ABS(days)*
10))),ABS(days)))}

Use Control+Shift+Enter (CSE) not just Enter when you save or amend the
formula. Do not type the curly braces { } yourself, Excel will insert
them when you use CSE.

I believe that you meant, when the result ends on a Saturday, use the
following Monday, which would be the 22nd March, not the 21st.
--
Regards
Roger Govier

ajitexcel wrote:
can anyone help me with this
a. how to get future date (like WORKDAY Function) but the formula
should include saturdays as work day excluding sundays and holidays.

for example if 2 mar 10 is the starting date then plus 15 days
including 2 holidays (say 5 mar 10 & 9 mar 10) and sundays (i.e. 7 mar
& 14 mar) the to be arrived should be 20 mar 10.
and the formula should also check if the date arrived is a saturday
then it should add following sunday i.e in above case it should become
21 mar 10
:)






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

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com