arturo s
arturo s

Reputation: 5

Nested IF statements on Excel

I'm trying to code the following on excel:

I have tried this:

=IF(AH2>=3,"mild burnout",IF(AH2>3.5,"severe burnout",IF(AH2<3,"no burnout")))

However, it does not return "severe burnout" values.

I believe thats because I can't seem to enbed the "and" in this formula.

What i would like to achieve(without success) is:

=IF(AH2>=3 AND AH2<3.5,"mild burnout",IF(AH2>=3.5,"severe burnout",IF(AH2<3,"no burnout")))

This one does not work

Upvotes: 0

Views: 62

Answers (3)

Solar Mike
Solar Mike

Reputation: 8405

Try:

=IF(AH2>=3.5,"severe burnout",IF(AH2>=3,"mild burnout",IF(AH2<3,"no burnout")))

This way you don't need the extra complication of and()

You can also use a table and vlookup like so to achieve the same result, but it is not an answer to the question about nested if:

enter image description here

Which has the advantage of being easier to edit and you can extend the categories easily.

Upvotes: 0

JvdV
JvdV

Reputation: 75960

Try:

=IF(A1<3,"no",IF(A1<3.5,"mild","severe"))&" burnout"

Upvotes: 1

Harun24hr
Harun24hr

Reputation: 37050

Try-

=IF(AH2<3,"no burnout",IF(AND(AH2>=3,AH2<3.5),"mild burnout",IF(AH2>=3.5,"severe burnout","something else")))

Upvotes: 0

Related Questions