Returning 1 or 0, based on multiple conditions.

Mohammed Sulaiman
Mohammed Sulaiman ✭✭✭✭
edited 02/11/20 in Smartsheet Basics

I'm trying to return a value 1 if the following conditions are met,

  1. Expected % Complete < 40%, and Expected % Complete - Actual % Complete > 25%
  2. Expected % Complete > 40%, and Expected % Complete < 60%, Expected % Complete - Actual % Complete > 20%
  3. Expected % Complete > 60%, and Expected % Complete < 85%, Expected % Complete - Actual % Complete > 10%
  4. Expected % Complete > 85%, Expected % Complete - Actual % Complete > 5%

For any other condition, the cell would return 0.

The column, will be checkbox column, and it will check At Risk task, when the number is 1.


Formula Used:

=IF(OR(AND([Expected % Complete]@row - [Actual % Complete]@row > 0.25, [Expected % Complete]@row < 0.4), IF(OR(AND([Expected % Complete]@row - [Actual % Complete]@row > 0.20, [Expected % Complete]@row > 0.4, [Expected % Complete]@row < 0.6), IF(OR(AND([Expected % Complete]@row - [Actual % Complete]@row > 0.1, [Expected % Complete]@row > 0.6, [Expected % Complete]@row < 0.85), IF(OR(AND([Expected % Complete]@row - [Actual % Complete]@row > 0.05, [Expected % Complete]@row > 0.85) 1, 0)))))))))


Thanks for your suggestions.

Best Answer

Answers

  • Thanks, that worked perfect.

  • Great! Happy to help.

    Need more help? 👀 | Help and Learning Center

    こんにちは (Konnichiwa), Hallo, Hola, Bonjour, Olá, Ciao! 👋 | Global Discussions