I'm working on an excel file to track attendance. The excel sheet should have the flexibility of dynamically changing the year of dates. The user can enter the current year in a cell and it should update the year on all existing dates.
Let's say we have inputted year 2022 in cell O17. All the dates in every month should change to year 2022. From January - December.
I am close to finalizing the formula.
My formula for January 2022 is =DATE($O17,MONTH(1),DAY(1))
However, when I drag the formula in one cell to another to fill it, the day won't increment. Using the formula above, when I drag it, it just puts January 1, 2022 in all cells. I can't get a January 2, 2022, January 3, 2022.... an so on.
I'd appreciate any suggestions.
Thank you.