Hopefully this gives what you need
It formats the date into a date format based on the status selection
IF({Status for date}=“A”,FORMAT_DATE(“2022-11-16”,“D-MMM-YY”),IF({Status for date}=“B”,FORMAT_DATE(“2022-11-28”,“D-MMM-YY”),IF({Status for date}=“C”,FORMAT_DATE(“2022-11-30”,“D-MMM-YY”),“”)))
If you need any additional help, just let me know
Many thanks in advance
Dan
Hey Dan! @DanIngham-IOI , I’m looking for a formula if a TEXT column field has data in it to set a date for today?..is there a way?..i’ve not figured out the proper syntax to use but i’m playing around and could use some knowledge…thanks!
GCavin
(Gilles Cavin - Reinventing Formulas in monday.com)
5
Hi Rich,
Since formulas are calculated dynamically, today’s date would change every day. If your idea is to store the date text was entered (and freeze it forever), this won’t work.
You could use an automation like this (The 3rd line is only necessary if you don’t want the date to be updated every time someone edits the text):
Looking for a simpler way to write complex formulas? Check out the Advanced Formula Booster at https://mdboosters.com. It’s a convenient third-party app that simplifies formula writing. With it, you can spread your formulas across several lines, utilize variables, and access dozens of functions not found in the standard formula column.
@GCavin yes, exactly what i’m seeing the date writes over and over. So I tried your suggestion and it works better, however, can I also do the converse that if someone removes the text AND the text is empty how can I remove the today date?..yea, its like a reset? otherwise i will end up with mismatch of data columns especially these dates.
example that I’m testing but its not working:
When TEXT changes
and if TEXT is empty
and if DATE is empty
Then ???
I tried this… “Then clear COLUMN” and that didn’t work…how can i remove the date if the text was removed?
Thanks very much!
GCavin
(Gilles Cavin - Reinventing Formulas in monday.com)
7
Create another automation:
Want to get rid of the formula column? and write formulas that support multiple lines, variables and can update various columns at once? Take a look at the Advanced Formula Booster at https://mdboosters.com*