# IF/And for compliance percentage

#### Drexl88

##### Board Regular
Hi,

I am using the below formula to return text base on the percentage in a cell H12; however, whatever the percentage in H12 the cell with the formula returns "Unsatisfactory (1)"

=IF(AND(H11>=0,H11<=40),"Unsatisfactory (1)",IF(AND(H11>=40.01,H11<=59.9),"Weak (2)",IF(AND(H11>=60,H11<=69.9),"Adequate (3)",IF(AND(H11>=70,H11<=84.9),"Good (4)",IF(AND(H11>=85,H11<=95.9),"Very Good (5)",IF(AND(H11>=96,H11<=100),"Excellent (6)"," ""Zero"))))))

Thanks

Simon

### Excel Facts

Using Function Arguments with nested formulas
If writing INDEX in Func. Arguments, type MATCH(. Use the mouse to click inside MATCH in the formula bar. Dialog switches to MATCH.

#### arthurbr

##### Well-known Member
How is you percentage expressed in H11? Like 40% or 0.4 or 40 ? Depending on that you will have to adapt the value in H11 ( or the values in the formula)
After that, you can also shorten your formula to something like
Excel Formula:
``=LOOKUP(A11,{0;40;60;70;85;96;100},{"Unsatisfactory (1)";"Weak (2)";"Adequate (3)";"Good (4)";"Very Good (5)";"Very Good (5)"})``
(I don't see where "zero" would fit in)

Replies
4
Views
375
Replies
3
Views
945
Replies
4
Views
104
Replies
3
Views
139
Replies
3
Views
91

1,129,372
Messages
5,635,880
Members
416,886
Latest member
coreyalaurence37

### We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.

### Which adblocker are you using?

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

### Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

### Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back