Auto populate a date field when selecting a weekday

Options

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

  • Samuel Mueller
    Samuel Mueller Overachievers
    edited 02/06/23 Answer ✓
    Options

    @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

  • Samuel Mueller
    Samuel Mueller Overachievers
    Options

    @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.

  • John Kelly
    John Kelly ✭✭✭
    Options

    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?

  • Samuel Mueller
    Samuel Mueller Overachievers
    edited 02/06/23 Answer ✓
    Options

    @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 , "")

  • John Kelly
    John Kelly ✭✭✭
    Options

    Thanks for the quick response Samuel. Yes that fixed it for me.


    Appreciate the help.

  • Samuel Mueller
    Samuel Mueller Overachievers
    Options

    happy to help!

Help Article Resources

Want to practice working with formulas directly in Smartsheet?

Check out the Formula Handbook template!