Formula with AND and OR
I'm fairly new to formulas. I created this one sucessfully so far:
=IF(AND([Contract Status]@row = "Existing Contract", [Credentialing Status]@row = "Approved"), [Credentialing status: As of date]@row)
So it takes the credentialing approved date from that 4th column and copies to the effective date in the 6th column (in blue).
However, I only want it to do that if the status is "DHCS Enrolled", "Not Applicable" or "DHCS Applied". I do not want it to copy it when it is any other status, such as "Docs Inadequate" for example. I don't know how to say AND when [Enrollment]@row is equal to x, OR y OR z.
Best Answer
-
Hi Deborah,
Try this AND that included OR as below. Hope it works for you.
=IF(AND([Contract Status]@row = "Existing Contract", [Credentialing Status]@row = "Approved", OR([Enrollment]@row="DHCS Enrolled",[Enrollment]@row="Not Applicable",[Enrollment]@row="DHCS Applied")), [Credentialing status: As of date]@row)
Gia Thinh Technology - Smartsheet Solution Partner.
Email : thinh.huynh@giathinh.tech
Answers
-
Hi Deborah,
Try this AND that included OR as below. Hope it works for you.
=IF(AND([Contract Status]@row = "Existing Contract", [Credentialing Status]@row = "Approved", OR([Enrollment]@row="DHCS Enrolled",[Enrollment]@row="Not Applicable",[Enrollment]@row="DHCS Applied")), [Credentialing status: As of date]@row)
Gia Thinh Technology - Smartsheet Solution Partner.
Email : thinh.huynh@giathinh.tech -
I thought I tried that before, but I must have messed up something along the way. It worked, thank you!
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 66K Get Help
- 429 Global Discussions
- 149 Industry Talk
- 488 Announcements
- 5.2K Ideas & Feature Requests
- 85 Brandfolder
- 153 Just for fun
- 74 Community Job Board
- 499 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 305 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!