Hi Dimonium_Anonimo. Welcome to the forum.
One way would be to modify your YEAR(NOW()) formula. Make a contiguous row of years. Use that as both a reference in place of YEAR(NOW()) and as a lookup range. Then make a 7 cell range below each of those with holidays unique to that year. Put that lookup table in the sheet 'Holidays'.
A short example:
|
A |
B |
C |
D |
E |
F |
G |
H |
I |
J |
1 |
2014 |
2015 |
2016 |
2017 |
2018 |
2019 |
2020 |
2021 |
2022 |
|
2 |
12/25/2014 |
12/25/2015 |
12/25/2016 |
12/25/2017 |
12/25/2018 |
12/25/2019 |
12/25/2020 |
12/25/2021 |
12/25/2022 |
In A2 : =DATE(A$1,12,25) |
3 |
7/4/2014 |
7/4/2015 |
7/4/2016 |
7/4/2017 |
7/4/2018 |
7/4/2019 |
7/4/2020 |
7/4/2021 |
7/4/2022 |
In A3 : =DATE(A$1,7,4) |
4 |
11/27/2014 |
11/26/2015 |
11/24/2016 |
11/23/2017 |
11/22/2018 |
11/28/2019 |
11/26/2020 |
11/25/2021 |
11/24/2022 |
In A4 : =DATE(A$1,11,1)+21+CHOOSE(WEEKDAY(DATE(A$1,11,1)),4,3,2,1,0,6,5) |
Formula:
=WORKDAY(A1,1,INDEX(Holidays!$A$2:$I$8,,MATCH(YEAR(A1),Holidays!$A$1:$I$1,0)))
Bookmarks