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, IT Business Analyst & Project Coordinator, Mitsubishi Electric Trane US
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
Check out the Formula Handbook template!