Auto populate a date field when selecting a weekday
When I select Monday from a droplist column named WEEKDAY, I want next Mondays date to auto populate in date column named Date.
Same for each day of the week. Is this possible?
Best Answer
-
@John Kelly see if this fixes that until the date comes through
=iferror([Day Picked]@row +7 + ([Next Weekday]@row - Weekday([Day Picked]@row)),"")
of if your formula is different put that in the iferror
=Iferror( your current formula , "")
Answers
-
@John Kelly To accomplish this you would need some helper columns
Need one column to determine what date of the week you are picking by value(say its called "Next Weekday") =if(dropdown@row="Sunday",1, if(dropdown@row="Monday", 2, if(etc.......
Need a second column to identify what day you picked the dropdown (say it's called Day Picked), here you would use an automation to record a date when any value in drop down is changed (Like when you pick Monday).
Then in your future date column you would have a formula something like:
=[Day Picked]@row +7 + ([Next Weekday]@row - Weekday([Day Picked]@row))
See if that gets you the desired outcome.
-
Thanks Samuel, that got me most of the way. One issue I am finding is that while I am waiting on the automation to record a date, I am getting #INVALID DATA TYPE appearing in the future date column. It clears itself when the record a date automation comes through. Any idea how to prevent this from happening?
-
@John Kelly see if this fixes that until the date comes through
=iferror([Day Picked]@row +7 + ([Next Weekday]@row - Weekday([Day Picked]@row)),"")
of if your formula is different put that in the iferror
=Iferror( your current formula , "")
-
Thanks for the quick response Samuel. Yes that fixed it for me.
Appreciate the help.
-
happy to help!
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 62.9K Get Help
- 379 Global Discussions
- 212 Industry Talk
- 442 Announcements
- 4.6K Ideas & Feature Requests
- 140 Brandfolder
- 129 Just for fun
- 130 Community Job Board
- 449 Show & Tell
- 30 Member Spotlight
- 1 SmartStories
- 302 Events
- 33 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!