Help

Welcome to the Airtable Community! If you're new here, check out our Getting Started area to get the most out of your community experience.

IF/OR Statement involving a single select field

Topic Labels: Formulas
Solved
Jump to Solution
457 2
cancel
Showing results for 
Search instead for 
Did you mean: 

I’m looking to create a datestamp field based on if a Single Select field is either COMPLETE or CANCELED, otherwise it should remain empty.

I’ve searched through this site and tried a variety of options but have had no success.

IF(OR(Status=“COMPLETE”,“CANCELED”,LAST_MODIFIED_TIME())) **This returns all cells as blank

Thanks in advance!

1 Solution

Accepted Solutions

Since you put the timestamp within the OR and you haven’t connected ‘cancelled’ to the field {Status}, you’re asking “if {Status} = ‘COMPLETE’, if the phrase ‘CANCELED’ is not blank, or if the record has ever been modified”. That is guaranteed to always be “true” since the phrase ‘CANCELED’ has a value. Your formula does’t output anything for “true” or for “false”. The proper formula would be

IF(
OR(Status="COMPLETE", Status="CANCELED"),
LAST_MODIFIED_TIME()
)

See Solution in Thread

2 Replies 2

Since you put the timestamp within the OR and you haven’t connected ‘cancelled’ to the field {Status}, you’re asking “if {Status} = ‘COMPLETE’, if the phrase ‘CANCELED’ is not blank, or if the record has ever been modified”. That is guaranteed to always be “true” since the phrase ‘CANCELED’ has a value. Your formula does’t output anything for “true” or for “false”. The proper formula would be

IF(
OR(Status="COMPLETE", Status="CANCELED"),
LAST_MODIFIED_TIME()
)

Thanks that worked! I tried so many options that I had lost count of the variations. :slightly_smiling_face:
I can’t believe I missed this one as it makes so much sense.