If formula with Date and Time

Hi. I created the formula below to close a dynamic view on Oct.30th.

=IF(TODAY() <= DATE(2024, 10, 30), "Open View", "Lock View")

How do I adjust that formula so that the view can be locked at 5pm on that day?

Tags:

Best Answer

  • AravindGP
    AravindGP ✭✭✭✭✭✭
    Answer ✓

    Hi @User251

    You can create a helper checkbox column and an automation workflow that checks this box at 5 pm on the last working day or a specific day (which will be your trigger). You can then modify the formula as =IF(AND(TODAY() <= DATE(2024, 10, 30), [Helper column]@row = true), "Open View", "Lock View")

    Thanks,

    Aravind GP| Principal Consultant

    Atturra Data & Integration

    M: +61493337445

    E:Aravind.GP@atturra.com

    W: www.atturra.com

Answers

  • AravindGP
    AravindGP ✭✭✭✭✭✭
    Answer ✓

    Hi @User251

    You can create a helper checkbox column and an automation workflow that checks this box at 5 pm on the last working day or a specific day (which will be your trigger). You can then modify the formula as =IF(AND(TODAY() <= DATE(2024, 10, 30), [Helper column]@row = true), "Open View", "Lock View")

    Thanks,

    Aravind GP| Principal Consultant

    Atturra Data & Integration

    M: +61493337445

    E:Aravind.GP@atturra.com

    W: www.atturra.com

  • User251
    User251 ✭✭✭✭

    @AravindGP Thank you so much! Very good idea!

Help Article Resources

Want to practice working with formulas directly in Smartsheet?

Check out the Formula Handbook template!