Hi Everyone!
So I have an Excel doc that I print out for a hand written report. I have a week beginning cell that should always show the upcoming Monday date, UNLESS today is Monday, then it should show today's date. I usually print this out on Friday, but last week did not have time to get it done. So today I open it for the first time on a Monday and it is showing me next Monday's date.
This is the code I was using which worked great if not a opened on Monday:
So I attempted to modify it and at first thought I nailed it. To test I set my computer date to a Thursday and opened it up. It showed the date for that Thursday and not the upcoming Monday as expected. Here is that faulty code:
Any help is appreciated.
So I have an Excel doc that I print out for a hand written report. I have a week beginning cell that should always show the upcoming Monday date, UNLESS today is Monday, then it should show today's date. I usually print this out on Friday, but last week did not have time to get it done. So today I open it for the first time on a Monday and it is showing me next Monday's date.
This is the code I was using which worked great if not a opened on Monday:
Code:
=TODAY()+(7-WEEKDAY(TODAY(),2)+1)
So I attempted to modify it and at first thought I nailed it. To test I set my computer date to a Thursday and opened it up. It showed the date for that Thursday and not the upcoming Monday as expected. Here is that faulty code:
Code:
=IF(WEEKDAY(TODAY()=2),TODAY(),TODAY()+(7-WEEKDAY(TODAY(),2)+1))
Any help is appreciated.