If Statement....HELP!

Tapout

New Member
Joined
Aug 8, 2010
Messages
2
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

How to fill five years of quarters?
Type 1Q-2023 in a cell. Grab the fill handle and drag down or right. After 4Q-2023, Excel will jump to 1Q-2024. Dash can be any character.

dave3009

Well-known Member
Joined
Jun 23, 2006
Messages
7,122
Office Version
  1. 365
  2. 2021
Platform
  1. Windows
  2. Mobile
  3. Web
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
Joined
Aug 8, 2010
Messages
2
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.
 

Forum statistics

Threads
1,176,345
Messages
5,902,614
Members
434,981
Latest member
sheils

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.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

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

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

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
Top