I have four cells that require approval, I want to create a formula

10/29/21
Accepted

I have four cells that require approval, I want to create a formula that says if all four cells are blank then the cell for approval status is red. If all four cells are not blank then "Green" for approved.

I am a novice user and any help would be greatly appreciated.

Thanks,

Best Answer

  • Christina LamChristina Lam ✭✭✭✭✭
    Accepted Answer

    @Suzymae

    Please see below screenshot for the formula


    =IF(AND([Column1]@row = "", [Column2]@row = "", [Column3]@row = "",[Column4]@row = ""), "Red", IF(AND(NOT(ISBLANK([Column1]@row)), NOT(ISBLANK([Column2]@row)), NOT(ISBLANK([Column3]@row)), NOT(ISBLANK([Column4]@row))), "Green"))

Answers

  • Christina LamChristina Lam ✭✭✭✭✭

    Hi @Suzymae

    You can use nested IF with AND function:

    =IF(AND([Column1]@row = "", [Column2]@row = "", [Column3]@row = "",[Column4]@row = ""), "Red", IF(AND(NOT(ISBLANK([Column1]@row)), NOT(ISBLANK([Column2]@row,, NOT(ISBLANK([Column3]@row,, NOT(ISBLANK([Column4]@row))), "Green"))

  • Hi Christina that worked when I removed the extra commas, but when I put something in the cells it gives me an error message

  • The error says#incorrect argument set

  • Christina LamChristina Lam ✭✭✭✭✭

    @Suzymae

    Sorry, my mistake, I meant to put )), but put a ,

    =IF(AND([Column1]@row = "", [Column2]@row = "", [Column3]@row = "",[Column4]@row = ""), "Red", IF(AND(NOT(ISBLANK([Column1]@row)), NOT(ISBLANK([Column2]@row)), NOT(ISBLANK([Column3]@row)), NOT(ISBLANK([Column4]@row))), "Green"))

    Do you mind screenshot the error message and the formula?

  • =IF(AND([email protected] = "", [email protected] = "", [ECS Director]@row = "", [Operations Director]@row = ""), "Red", IF(AND(NOT(ISBLANK([email protected])), NOT(ISBLANK([email protected], NOT(ISBLANK([ECS Director]@row, NOT(ISBLANK([Operations Director]@row))), "Green"))))))



  • Christina LamChristina Lam ✭✭✭✭✭
    Accepted Answer

    @Suzymae

    Please see below screenshot for the formula


    =IF(AND([Column1]@row = "", [Column2]@row = "", [Column3]@row = "",[Column4]@row = ""), "Red", IF(AND(NOT(ISBLANK([Column1]@row)), NOT(ISBLANK([Column2]@row)), NOT(ISBLANK([Column3]@row)), NOT(ISBLANK([Column4]@row))), "Green"))

  • That works, thank you so much!!!!!!!

Sign In or Register to comment.