excel conditional formatting if equals 0 code example Example: if equal to excel =IF(A1="red",true result,false result)