Hey all 👋
The subject may be confusing.
Basically, I have a column {Day}, {Day} is a single select field.
The options in {Day} includes the following strings:
- monday
- tuesday
- wednesday
- thursday
- friday
- saturday
- sunday
I want a formula field that returns the date, based on {Day}.
For example, this post is written on 13 Dec 2023, Wednesday.
If {Day} is "monday" then the cell should return 11 Dec 2023. (last monday)
If {Day} is "wednesday" then the cell should return 13 Dec 2023 (today)
If {Day} is "thursday" then cell should return 7 Dec 2023 (last thursday)
how should I write this formula?