AND(OR Statement Help
I'm getting stuck on this one. I have a working OR statement formula based on no information from two different columns. I want to add a third variable based on another column having a specific statement. I've tried this a few ways but, nothing has worked.
Working Original statement:
=IF(OR([ePRG Training]@row <> "", [Attestation Delivery]@row <> ""), "Completed", "Training Needed")
Non-working New Statement:
=IF(AND(OR([QISA Status]@row = "Signed QISA - Complete", [ePRG Training]@row <> "", [Attestation Delivery]@row <> ""), "Completed", "Training Needed", ))
Logic:
If Column1 = "X" and Column2 is not blank or Column3 is not blank then "Completed" else "Training Needed".
Also, would like to work in: If Column1 does not equal X then do nothing.
Best Answer
-
The issue appears to be with the separation of AND and OR functions, as well as proper placement of ().
Give this a try:
=IF([Column 1]@row <> "Signed QISA - Complete", "", IF(AND([Column 1]@row = "Signed QISA - Complete", OR([Column 2]@row <> "", [Column 3]@row <> "")), "Completed", "Training Needed"))
Answers
-
Looks like just a little syntax issue. Try this...
=IF(AND([QISA Status]@row = "Signed QISA - Complete", OR([ePRG Training]@row <> "", [Attestation Delivery]@row <> "")), "Completed", "Training Needed")
-
Ah, that did the trick. Thanks!
-
The issue appears to be with the separation of AND and OR functions, as well as proper placement of ().
Give this a try:
=IF([Column 1]@row <> "Signed QISA - Complete", "", IF(AND([Column 1]@row = "Signed QISA - Complete", OR([Column 2]@row <> "", [Column 3]@row <> "")), "Completed", "Training Needed"))
-
That is exactly what I was looking for. Thank you, Tim!
-
Happy to help. 👍️
When nesting AND and OR functions, thing of (in this particular case) the OR is one of the "logical statements".
AND(logical statement, OR(.......))
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 65.1K Get Help
- 444 Global Discussions
- 142 Industry Talk
- 472 Announcements
- 5K Ideas & Feature Requests
- 83 Brandfolder
- 150 Just for fun
- 71 Community Job Board
- 489 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 301 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!