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
- Customer Resources
- 64.8K Get Help
- 434 Global Discussions
- 138 Industry Talk
- 470 Announcements
- 4.9K Ideas & Feature Requests
- 129 Brandfolder
- 148 Just for fun
- 65 Community Job Board
- 486 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 300 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!