# 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

Select range. Press Ctrl+1. On Number tab, choose Custom. Type Alt+7 then space then @ sign (using 7 on numeric keypad)

#### 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
343
Replies
3
Views
771
Replies
3
Views
113
Replies
3
Views
85
Replies
3
Views
221

1,127,199
Messages
5,623,321
Members
415,966
Latest member
ctorohuamanchumo

### 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