=IF(A1=5, "green apple","red apple")

Add to this new condition:

=IF(A2=5,"green apple","red apple")

Basically if A1 and A2 = 5 then "green apple", otherwise "red apple".

1 Answer 1


I figured it out.

=IF(AND(A1=5, B1=5), "green apple", "red apple")

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.