francoiscj1
New Member
- Joined
- Aug 21, 2017
- Messages
- 33
- Office Version
- 365
- Platform
- Windows
This is my formula:
=IF(ISERROR(MATCH(A1+37,$E$1:$E$12,0)),IF(WEEKDAY(A1+37)=7,A1+37-1,IF(WEEKDAY(A1+37)=1,A1+37-2,A1+37)),IF(WEEKDAY(A1+37-1)=7,A1+37-2,IF(WEEKDAY(A1+37-1)=1,A1+37-3,A1+37-1)))
My holidays are E1:E12
I would like to amend this formula so that if the date lands on Tuesday through Friday, it will land on the following Monday. For example, if the date is 02/07/18, the date will land on 02/12/18.
Thank you for the help.
=IF(ISERROR(MATCH(A1+37,$E$1:$E$12,0)),IF(WEEKDAY(A1+37)=7,A1+37-1,IF(WEEKDAY(A1+37)=1,A1+37-2,A1+37)),IF(WEEKDAY(A1+37-1)=7,A1+37-2,IF(WEEKDAY(A1+37-1)=1,A1+37-3,A1+37-1)))
My holidays are E1:E12
I would like to amend this formula so that if the date lands on Tuesday through Friday, it will land on the following Monday. For example, if the date is 02/07/18, the date will land on 02/12/18.
Thank you for the help.