If or and formula help

Hi,
Can anyone help with this formula? I'm stumped!
If (Second Apparatus) contains "PM01" or "LD01", and (Agency) contains "TFD," then populate "TFD Battalion 1"
=IF(OR(AND([Second Apparatus]@row = "PM01", ([Second Apparatus]@row = "LD01")), AND(Agency@row ) = "TFD"), "TFD Battalion 1", "")
Thank you!
Answers
-
Hey @Lily08
IF(AND(Agency@row = "TFD",OR([Second Apparatus]@row= "PM01",[Second Apparatus]@row= "LD01")),"TFD Battalion 1")
Does this work for you?
Kelly -
Hi @Lily08
Try this if you mean to use "contains" in the sense that you're looking for the given text within the entire cell:
=IF(AND(OR(CONTAINS("PM01", [Second Apparatus]@row ), CONTAINS("LD01", [Second Apparatus]@row )), CONTAINS("TFD", Agency@row )), "TFD Battalion 1", "")
Or this if you mean the value is exactly the specified text:
=IF(AND(OR([Second Apparatus]@row = "PM01", [Second Apparatus]@row = "LD01"), Agency@row = "TFD"), "TFD Battalion 1", "")Thanks,
Sam
—
Want to chat about a Smartsheet problem you're facing?
Grab time on my calendar here:
https://calendly.com/sam-samharwart/30min -
-
That's great! Happy to help.
Thanks,
Sam
—
Want to chat about a Smartsheet problem you're facing?
Grab time on my calendar here:
https://calendly.com/sam-samharwart/30min
Help Article Resources
Categories
Check out the Formula Handbook template!