Need a fix for IF AND/OR formula
IF(AND([Phase]@row = "COMPLETED”, OR Hand-off]@row = "N/A", [Hand-off]@row = 0),0,1)
So for Phase set to completed and where Hand-off is N/A or 0 or blank .. need to set 0, or else 1.
Or For Phase set to completed, where Hand-off is 1 - put 1.. for everything else put 0 ..
Answers
-
=IF(AND(Phase@row="COMPLETED", [Hand-off]@row=1), 1, IF(AND(Phase@row="COMPLETED", OR([Hand-off]@row="N/A", [Hand-off]@row=0, ISBLANK([Hand-off]@row))), 0, 1)
This may or may not work because your first conditions you say "or else 1" and your second conditions you say "for everything else put 0". Very confusing.
-
@keesuri25 You are close, just a little syntax fix and a bit more criteria needed.
IF(AND([Phase]@row = "COMPLETED”, OR([Hand-off]@row = "N/A", [Hand-off]@row = 0, ISBLANK([Hand-off]@row))), 0, 1)
Logic: If Phase equals COMPLETED and Hand-off is either "N/A", 0, or blank, set the cell to 0; otherwise, set the cell to 1. (The OR statement containing the options for Hand-off has to be enclosed within the AND statement.)
Regards,
Jeff Reisman
Link: Smartsheet Functions Help Pages Link: Smartsheet Formula Error Messages
If my answer helped solve your issue, please mark it as accepted so that other users can find it later. Thanks!
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 64.9K Get Help
- 439 Global Discussions
- 138 Industry Talk
- 471 Announcements
- 4.9K Ideas & Feature Requests
- 129 Brandfolder
- 148 Just for fun
- 67 Community Job Board
- 486 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 300 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!