Adding OR to Formula with IF AND
Hello Community,
I am trying to add an OR option to this formula which currently works for provisioning without it. Basically I want to add Customer Country is not blank OR Project Type = Demo / Customer Evaluation.
Formula should allow provisioning if Project Manager at row is not blank, Project Keyword is not blank, (Customer Country Ship to is not blank OR Project Type is Demo / Customer Evaluation), Project State not Rejected
=IF(AND([Ready for Provisioning]@row = 1, NOT(ISBLANK([Project Manager]@row)), NOT(ISBLANK([Project Keyword]@row)), NOT(ISBLANK([Customer Country (Ship to)]@row)), [Project State]@row <> "Rejected"), 1, 0)
Everything I have tried has resulted in errors. :(
Best Answers
-
Hi @MarjorieP
If the Project Type is Demo, then Customer Country (Ship to) is not needed.
Do you mean ''If the Project Type is Demo / Customer Evaluation, then Customer Country (Ship to) is not needed. ?"
If so;
=IF(AND([Ready for Provisioning]@row = 1, NOT(ISBLANK([Project Manager]@row)), NOT(ISBLANK([Project Keyword]@row)), [Project State]@row <> "Rejected", OR(NOT(ISBLANK([Customer Country (Ship to)]@row)), [Project Type]@row = "Demo / Customer Evaluation")), 1, 0)
=IF( AND( [Ready for Provisioning]@row = 1, NOT(ISBLANK([Project Manager]@row)), NOT(ISBLANK([Project Keyword]@row)), [Project State]@row <> "Rejected", OR( NOT(ISBLANK([Customer Country (Ship to)]@row)), [Project Type]@row = "Demo / Customer Evaluation" ) ), 1, 0 )
-
Happy to help!😁 @MarjorieP
Answers
-
Hi @MarjorieP
If "Project Type is Demo / Customer Evaluation), Project State not Rejected" means "Project Type is "Demo" or "Customer Evaluation" or "Demo / Customer Evaluation", and Projet State not Rejected, the formula is as follows;
=IF(
OR(
AND([Ready for Provisioning]@row = 1, NOT(ISBLANK([Project Manager]@row)), NOT(ISBLANK([Project Keyword]@row)), NOT(ISBLANK([Customer Country (Ship to)]@row)), [Project State]@row <> "Rejected"),
AND(OR([Project Type]@row = "Customer Evaluation", [Project Type]@row = "Demo", [Project Type]@row = "Demo / Customer Evaluation"), [Project State]@row <> "Rejected")
),
1, 0)
-
Thank you for providing a solution. Apologies for the delay in response. I used the formula as presented and it seems to work. The Option "Demo / Customer Evaluation" is one selection. When I removed the other selections "Demo" and "Customer Evaluation" the formula returned "unparseable" . What am I missing?
I want to be sure that:
If the Project Type is Demo, then Customer Country (Ship to) is not needed. All else (Project Manager and Project Keyword are not blank and Project State is not Rejected) are needed.
=IF(OR(AND([Ready for Provisioning]@row = 1, NOT(ISBLANK([Project Manager]@row)), NOT(ISBLANK([Project Keyword]@row)), NOT(ISBLANK([Customer Country (Ship to)]@row)), [Project State]@row <> "Rejected"), AND(OR([Project Type]@row = “Demo / Customer Evaluation”), [Project State]@row <> “Rejected”)), 1, 0)
-
Hi @MarjorieP
If the Project Type is Demo, then Customer Country (Ship to) is not needed.
Do you mean ''If the Project Type is Demo / Customer Evaluation, then Customer Country (Ship to) is not needed. ?"
If so;
=IF(AND([Ready for Provisioning]@row = 1, NOT(ISBLANK([Project Manager]@row)), NOT(ISBLANK([Project Keyword]@row)), [Project State]@row <> "Rejected", OR(NOT(ISBLANK([Customer Country (Ship to)]@row)), [Project Type]@row = "Demo / Customer Evaluation")), 1, 0)
=IF( AND( [Ready for Provisioning]@row = 1, NOT(ISBLANK([Project Manager]@row)), NOT(ISBLANK([Project Keyword]@row)), [Project State]@row <> "Rejected", OR( NOT(ISBLANK([Customer Country (Ship to)]@row)), [Project Type]@row = "Demo / Customer Evaluation" ) ), 1, 0 )
-
-
Happy to help!😁 @MarjorieP
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 64.3K Get Help
- 422 Global Discussions
- 221 Industry Talk
- 461 Announcements
- 4.8K Ideas & Feature Requests
- 143 Brandfolder
- 143 Just for fun
- 59 Community Job Board
- 462 Show & Tell
- 32 Member Spotlight
- 1 SmartStories
- 300 Events
- 39 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!