I've been using this formula for a few weeks and I discovered an error in the calculations but don't know why.
G2=3/1/2022
The weekday 1 should equal the first Monday of the month (3/7/2022) but it returns (Saturday) 3/5/2022.
What am I doing wrong.
Code:
=LOOKUP(G2,DATE(YEAR(G2),{0,3,6,9,12;3,6,9,12,15},8)-WEEKDAY(DATE(YEAR(G2),{0,3,6,9,12;3,6,9,12,15},1)))
The weekday 1 should equal the first Monday of the month (3/7/2022) but it returns (Saturday) 3/5/2022.
What am I doing wrong.