Share via

Nested IF AND statements

Anonymous
2015-04-06T14:43:20+00:00

Hi,

I am building a spreadsheet that averages score cards and then will print a statement next to the average column based on the one of four ranges of the average.

So the average cell is E3. I tried a nested IF AND statement as follows but excel wont accept it.

=IF(e3<4, "BELOW EXPECTATIONS", IF(AND(e3>0.4, e3<0.6), "Meets Expectations", IF(AND(e3>0.6, e3<0.8),"Above Expectations", IF(AND(e3>0.9, e3<1). "Exceeds Expectations"))))

What am I doing wrong?

Is there a better way to create a range of numbers to equal a statement versus using the AND (IE: IF e3 = 0.01 to 0.39 then "Below Expectations")?

Thanks,

Kevin

Microsoft 365 and Office | Excel | For home | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

Answer accepted by question author

Anonymous
2015-04-06T14:48:12+00:00

Hi,

Try this.

=IF(E3<>"",LOOKUP(E3,{0,0.4,0.6,0.9},{"Below Expectation","Meets Expectation","Above Expectation","Exceeds Expectation"}),"")

Was this answer helpful?

0 comments No comments

2 additional answers

Sort by: Most helpful
  1. Anonymous
    2015-04-06T15:14:48+00:00

    Hi,

    In addition to what Mike and Hans already replied, you have gaps in your formula.

    e3<4, e3>0.4, e3<0.6, e3>0.6, e3<0.8, e3>0.9, e3<1

    What with the exact values 0.4, 0.6, 0.8 and between 0.8 & 0.9?

    I guess Mike's formula will be one you need.

    EDIT: ignore this post, Hans has covered it. Should read it all. Sorry Hans!

    Was this answer helpful?

    0 comments No comments
  2. HansV 462.6K Reputation points
    2015-04-06T14:51:34+00:00

    You have 4 instead of 0.4 in the first condition, and a . instead of a , before "Exceeds Expectations".

    Moreover, the conditions don't cover all possible values of E3 between 0 and 1. Try this somewhat shorter formula:

    =IF(E3<0.4, "BELOW EXPECTATIONS", IF(E3<0.6, "Meets Expectations", IF(E3<0.8, "Above Expectations",  "Exceeds Expectations")))

    Was this answer helpful?

    0 comments No comments