"IF/And" formula

This discussion was created from comments split from: Multiple IF/AND statements.

Answers

  • Ross Novotny
    Ross Novotny ✭✭✭✭✭

    Im working on a "IF/And" formula myself that references whether or not certain boxes are checked.

    =IF(AND([Column1]@row <> 1, [Column2]@row <> 1), "Status 1 ", IF(AND([Column1]@row = 1, "Status 2"), IF(AND([Column2]@row = 1, "Status 3")))). When I check the boxes I get an "Invalid Data Type". It's a drop-down menu that works when the boxes aren't check and it returns "Status 1". When I check either of the boxes in Column 1 or Column 2 I get "#Invalid Data Type". Any help is appreciated.

  • Hi @Ross Novotny

    The first statement is correct, but the second two statements don't need the AND portion. Try this:

    =IF(AND([Column1]@row <> 1, [Column2]@row <> 1), "Status 1 ", IF([Column1]@row = 1, "Status 2", IF([Column2]@row = 1, "Status 3")))

    Cheers,

    Genevieve

    Need more help? 👀 | Help and Learning Center

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

Help Article Resources

Want to practice working with formulas directly in Smartsheet?

Check out the Formula Handbook template!