IF Formula for Class Grades

silky939

New Member
Joined
Apr 16, 2013
Messages
3
I am attempting to create an IF or IF(AND formula that I can use to display the letter grade I earned based off of a certain percentage criteria. I have had trouble creating this formula myself. Hopefully someone can help. Please refer to my notes below to examine the criteria. Let me know if you have any questions.

"A" D11>=93%
"A-" D11>= 90%, D11<93%
"B+" D11>=87%, D11<90%
"B" D11>=83%, D11<87%
"B-" D11>=80%, D11<83%
"C+" D11>=77%, D11<80%
"C" D11>=73%, D11<77%
"C-" D11>=70%, D11<73%
"D+" D11>=67%, D11<70%
"D" D11>=63%, D11<67%
"D-" D11>=60%, D11<63%
"F" D11<60%
 

Excel Facts

Highlight Duplicates
Home, Conditional Formatting, Highlight Cells, Duplicate records, OK to add pink formatting to any duplicates in selected range.
Hi and welcome to the forum

Try, where A2 holds the grade in %age form

=LOOKUP(A2, {0,0.6,0.63,0.67,0.7,0.73,0.77,0.8,0.83,0.87,0.9,0.93}, {"F","D-","D","D+","C-","C","C+","B-","B","B+","A-","A"})
 
Upvote 0
Hi,

Try

=IF(A1>=93%,"A",IF(AND(A1>=90%,A1<93%),"A-",IF(AND(A1>=87%,A1<90%),"B+")))

Jai
 
Upvote 0
Thank you both for you reply. Dave3009,I tried your formula and it returned an F for 97.50% so something is off. jai9, I extended your formula to include all of my criteria and it returned a #NAME? in the display box. Below is the formula I used. Can you look it over and tell me if you see any mistakes that would cause the #NAME? response? D11 is the percentage cell I am referring to.

=IF(D11>=93%,"A",IF(AND(D11>=90%,D11<93%),"A-",IF(AND(D11>=87%,D11<90%),"B+",IF(AND(D11>=83%,D11<87%),”B”,IF(AND(D11>=80%,D11<83%),”B-“,IF(AND(D11>=77%,D11<80%),”C+”,IF(AND(D11>=73%,D11<77%),”C”,IF(AND(D11>=70%,D11<73%),”C-“,IF(AND(D11>=67%,D11<70%),”D+”,IF(AND(D11>=63%,D11<67%),”D”,IF(AND(D11>=60%,D11<63%),”D-“,IF(D11<60%,”F”))))))))))))
 
Upvote 0
It worked for me so I'm not sure what was wrong. Using the IF method you don't need the AND but you may run into difficulties if you nest more than 7 and you're using Excel2003 or lower


Excel 2007
EF
297.5%A
Sheet4
Cell Formulas
RangeFormula
F2=LOOKUP(E2, {0,0.6,0.63,0.67,0.7,0.73,0.77,0.8,0.83,0.87,0.9,0.93}, {"F","D-","D","D+","C-","C","C+","B-","B","B+","A-","A"})
 
Upvote 0
88%B+
99%A
75%C
57%F



<colgroup><col width="64" span="2" style="width:48pt"> </colgroup><tbody>
</tbody>
PercentageLetter Grade
60%F
60%D-
63%D
67%D+
70%C-
73%C
77%C+
80%B-
83%B
87%B+
90%A-
93%A

<colgroup><col><col></colgroup><tbody>
</tbody>
I created this table and used =IFERROR(INDEX($B$4:$B$15,MATCH(D5,A4:A15)),"F")
 
Upvote 0
dave3009, I was referring to the wrong cell it did work thank you very much! And to jai9, my quotations were slanted and that caused the #NAME? error. Thanks to both of you for your help!
 
Upvote 0
You could make a lookup table like this also, same thing but a little more flexible if your grading rules change


Excel 2007
HI
1LimitGrade
20%F
360%D-
463%D
567%D+
670%C-
773%C
877%C+
980%B-
1083%B
1187%B+
1290%A-
1393%A
14
15%ageGrade
1697.50%A
Sheet4
Cell Formulas
RangeFormula
I16=VLOOKUP(H16, H2:I13, 2, 1)
 
Upvote 0

Forum statistics

Threads
1,215,575
Messages
6,125,629
Members
449,241
Latest member
NoniJ

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
Back
Top