• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

Logical operator

usr7501

New Member
Hello,

Can I use some kind of operand where I say that only score 71-80 will be assigned an "A" in the enclosed expression?

=IF(A12>71,"A",IF(A12>=57,"B",IF(A12>=40,"C","F")))
 
You can add AND like:
=IF(AND(A12>=71,A12<=80),"A",IF(A12>=57,"B",IF(A12>=40,"C","F")))
but that will produce wrong results if someone has 81 (and probably we are looking at grades).

Explain what shall be output when value exceeds 80.
 
E
You can add AND like:
=IF(AND(A12>=71,A12<=80),"A",IF(A12>=57,"B",IF(A12>=40,"C","F")))
but that will produce wrong results if someone has 81 (and probably we are looking at grades).

Explain what shall be output when value exceeds 80.

Just to clarify. Score 81 should not be evaluated. One of the solutions I have is the one you mention, like minded brains think the same. :)

I am, not sure what a good way is to cut off evaluation when entering 81+ and how the ending of evaluation is done in a neatly way. That is why I am posting. Is there a better way than IF statements or can it be done w/ an IF statement?

You are absolutely correct. It is about grades.
 
Back
Top