Need a fix for IF AND/OR formula

Options

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

  • Mike TV
    Mike TV ✭✭✭✭✭✭
    Options

    @keesuri25

    =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.

  • Jeff Reisman
    Jeff Reisman ✭✭✭✭✭✭
    Options

    @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

Want to practice working with formulas directly in Smartsheet?

Check out the Formula Handbook template!