# If Statement....HELP!

#### Tapout

##### New Member
Is it possible to set an IF statement that searches for a range.

For example grading homework. If cell A1 contained the students grade and I want cell A2 to say: If A1 is equal to or less than 79.9%, then A2 would say "Needs Improvement," but if A1 was 80-89.9% then A2, would say "Good Job", but if A1 was 90-94.9% then A2 would say "Great Work", and finally if A1 was 95% or greater then A2 would say "Fantastic Job"?

Is it an IF statement such as this possible? Thank you in advance!

### Excel Facts

Did you know Excel offers Filter by Selection?
Add the AutoFilter icon to the Quick Access Toolbar. Select a cell containing Apple, click AutoFilter, and you will get all rows with Apple

#### dave3009

##### Well-known Member
Hi and welcome

=IF(A8>=95%, "Fantastic Job", IF(A8>=90%, "Great Work", IF(A8>=80%, "Good Job", "Needs Improvement")))

or

=LOOKUP(A8,{0,0.8,0.9,0.95},{"Needs Improvement","Good Job","Great Work","Fantastic"})

HTH

Dave

Last edited:

#### Tapout

##### New Member
Dave3009, Thanks a lot!

That worked out perfect, I was using the actual range before and could only get the first and last argument to calculate.

Replies
7
Views
247
Replies
1
Views
178
Replies
6
Views
362
Replies
0
Views
297
Replies
10
Views
376

1,133,158
Messages
5,657,160
Members
418,363
Latest member
Debating_Earth

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