Rounding to nearest Thursday in the past or current day if it's Thursday
Hello! Long time listener, first time caller —
We have a weekly update dashboard that is presented on Thursdays. We'd like to have the date displayed be either the previous weeks Thursday or the current Thursday, if today is Thursday.
In other words, the date should always display a Thursday date; if today == Thursday, display that date, if today != Thursday, display previous week's Thursday date.
I've been able to get the previous week's Thursday displaying via "=TODAY() - WEEKDAY(TODAY()) - 2" in a field in the sheet summary view, however it does consider if today is Thursday or not. Is there a way to do both in one formula?
Best Answer
-
Melissa Yamada
melissa@insightfulsheets.com
Data made simple, spreadsheets reimagined
Answers
-
Melissa Yamada
melissa@insightfulsheets.com
Data made simple, spreadsheets reimagined -
@Melissa Yamada you're a wizard, that worked!
Is my read on what each part of the formula doing correct? The original formula I used I found on the forum and tweaked until it worked, but I admittedly am not wrapping my head around the how.
If today is a weekday = 5 (which means Thursday), display today's date.
Else display today's date minus ???
-
@aparadowski yes correct!
Melissa Yamada
melissa@insightfulsheets.com
Data made simple, spreadsheets reimagined
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 67.1K Get Help
- 450 Global Discussions
- 155 Industry Talk
- 505 Announcements
- 5.4K Ideas & Feature Requests
- 85 Brandfolder
- 156 Just for fun
- 80 Community Job Board
- 514 Show & Tell
- 34 Member Spotlight
- 2 SmartStories
- 308 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!