kyddrivers
Board Regular
- Joined
- Mar 22, 2013
- Messages
- 64
- Office Version
- 365
- Platform
- Windows
I am building a list of events that occur on set weekends each year and trying to calculate the dates of each event moving forward.
This is the base formula I am using (where E2 is the Year) and adjusting the weeks and months as needed:
=DATE($E$2,6,1)+CHOOSE(WEEKDAY(DATE($E$2,6,1)),6,5,4,3,2,1,0)
This is working until mid-June 2024. Please help me understand why June 15 and 16 are not playing nice and what I need to do to make it work for 2024 and forward.
Thanks in advance!
This is the base formula I am using (where E2 is the Year) and adjusting the weeks and months as needed:
=DATE($E$2,6,1)+CHOOSE(WEEKDAY(DATE($E$2,6,1)),6,5,4,3,2,1,0)
This is working until mid-June 2024. Please help me understand why June 15 and 16 are not playing nice and what I need to do to make it work for 2024 and forward.
Thanks in advance!
Event Dates.xlsx | |||||
---|---|---|---|---|---|
M | N | O | |||
48 | |||||
49 | Event Date | Event Date Calc | DOW | ||
50 | 1-Jun | 6/1/2024 | Saturday | ||
51 | 1-Jun | 6/1/2024 | Saturday | ||
52 | 2-Jun | 6/2/2024 | Sunday | ||
53 | 2-Jun | 6/2/2024 | Sunday | ||
54 | 14-Jun | 6/14/2024 | Friday | ||
55 | 14-Jun | 6/14/2024 | Friday | ||
56 | 15-Jun | 6/8/2024 | Saturday | ||
57 | 15-Jun | 6/8/2024 | Saturday | ||
58 | 16-Jun | 6/9/2024 | Sunday | ||
59 | 16-Jun | 6/9/2024 | Sunday | ||
2024 |
Cell Formulas | ||
---|---|---|
Range | Formula | |
N50:N51 | N50 | =DATE($E$2,6,1)+CHOOSE(WEEKDAY(DATE($E$2,6,1)),6,5,4,3,2,1,0) |
O50:O59 | O50 | =WEEKDAY(N50) |
N52:N53 | N52 | =DATE($E$2,6,1)+CHOOSE(WEEKDAY(DATE($E$2,6,1)),0,6,5,4,3,2,1) |
N54:N55 | N54 | =DATE($E$2,6,1)+7+CHOOSE(WEEKDAY(DATE($E$2,6,1)),5,4,3,2,1,0,6) |
N56:N57 | N56 | =DATE($E$2,6,1)+7+CHOOSE(WEEKDAY(DATE($E$2,6,1)),6,5,4,3,2,1,0) |
N58:N59 | N58 | =DATE($E$2,6,1)+7+CHOOSE(WEEKDAY(DATE($E$2,6,1)),0,6,5,4,3,2,1) |