jdellasala
Well-known Member
- Joined
- Dec 11, 2020
- Messages
- 755
- Office Version
- 365
- Platform
- Windows
- Mobile
- Web
There's a web site (Market Holidays for United States for 2022) that has a small table of the list of Market Holidays. Long story short, I was able to pull in all the tables from 1900 to 2100 using a Power Query function. In doing that I discovered that 56 years (including 2017) are missing the Market being closed for New Year's Day on January 2nd when the 1st falls on a Saturday or Sunday.
The table is simply 2 rows - Date and Holiday. The question is how can add a row in the function if the Holiday "New Year's Day" doesn't exist in the 2nd column, giving the first (Date) column the value of the first Tuesday in January (it can be either the 2nd or the 3rd depending on when the 1st was), and "New Year's Day" to the second (Holiday) column?
Thanks
The table is simply 2 rows - Date and Holiday. The question is how can add a row in the function if the Holiday "New Year's Day" doesn't exist in the 2nd column, giving the first (Date) column the value of the first Tuesday in January (it can be either the 2nd or the 3rd depending on when the 1st was), and "New Year's Day" to the second (Holiday) column?
Thanks