Note: The other languages of the website are Google-translated. Back to English

## How To Calculate or Assign Letter Grade In Excel?

To assign letter grade for each student based on their scores may be a common task for a teacher. For example, I have a grading scale defined where the score 0-59 = F, 60-69 = D, 70-79 = C, 80-89 = B, and 90-100 = A as following screenshot shown. In Excel, how could you calculate letter grade based on the numeric score quickly and easily? #### Calculate letter grade based on score values with IF function

The generic syntax is:

=IF (condition1, value_if_true1, IF (condition2, value_if_true2, IF (condition3, value_if_true3, value_if_false3)))
• condition1, condition2, condition3: The conditions you want to test.
• value_if_true1, value_if_true2, value_if_true3: The value that you want to return if the result of the conditions are TRUE.
• value_if_false3: The value that you want to return if the result of the condition is FALSE.

1. Please enter or copy the below formula into a blank cell where you want to get the result:

=IF(B2>=90,"A",IF(B2>=80,"B",IF(B2>=70,"C",IF(B2>=60,"D","F"))))

Explanation of this complex nested IF formula:

• If the Score (in cell B2) is equal or greater than 90, then the student gets an A.
• If the Score is equal or greater than 80, then the student gets a B.
• If the Score is equal or greater than 70, then the student gets a C..
• If the Score is equal or greater than 60, then the student gets a D.
• Otherwise the student gets an F.

Tips: In the above formula:

• B2: is the cell which you want to convert the number to letter grade.
• the numbers 90, 80, 70, and 60: are the numbers you need to assign the grading scale.

2. Then, drag the fill handle down to the cells to apply this formula, and the letter grade has been displayed in each cell as follows: Click to know more IF function... ## Layoff season is coming, still work slowly? -- Office Tab boosts your pace, saves 50% work time!

•  Amazing! The operation of multiple documents is even more relaxing and convenient than single document;
•  Compared with other web browsers, the interface of Office Tab is more powerful and aesthetic;
•  Reduce thousands of tedious mouse clicks, say goodbye to cervical spondylosis and mouse hand;
•  Be chosen by 90,000 elites and 300+ well-known companies!

#### Calculate letter grade based on score values with VLOOKUP function

If the above nested if function is somewhat difficult for you to understand, here, the Vlookup function in excel also can do you a favor.

The generic syntax is:

=VLOOKUP(lookup_value, table_array, col_index_num, [range_lookup])
• lookup_value: The value that you want to search and find in the table_array.
• table_array: A range of cells in the source table containing the data you want to use.
• col_index_num: The column number in the table_array that you want to return the matched value from.
• range_lookup: A value is either TRUE or FALSE.
• if TRUE or omitted, Vlookup returns either an exact or approximate match
• if FALSE, Vlookup will only find an exact match

1. Firstly, you should create a lookup table as below screenshot shown, and then use the Vlookup function with approximate math to get the result. Note: It is important that the lookup table must be sorted in ascending order for the VLOOKUP formula to get proper result with an approximate match.

2. Then, enter or copy the following formula into a blank cell – C3, for instance:

=VLOOKUP(B2,\$F\$2:\$G\$6,2,TRUE)

Tips: In the above formula:

• B2: refers to the student score that you want to calculate the letter grade.
• \$F\$2:\$G\$6: It is the table where lookup value will be returned from.
• 2: The column number in the lookup table to return the matched value.
• TRUE: Indicates to find the approximate match value.

3. And then, drag the fill handle down to the cells that you want to apply this formula, now, you can see all the letter grades based on the corresponding grade scale table are calculated at once, see screenshot: Click to know more VLOOKUP function...

#### Calculate letter grade based on score values with IFS function (Excel 2019 and Office 365)

If you have Excel 2019 or Office 365, the new IFS function also can help you to finish this job.

The generic syntax is:

=IFS( logical_test1, value_if_true1, [logical_test2, value_if_true2],... )
• logical_test1: The first condition that evaluates to TRUE or FALSE.
• value_if_true1: Returns the result if logical_test1 is TRUE. It can be empty.
• logical_test2: The second condition that evaluates to TRUE or FALSE.
• value_if_true2: Returns the second result if logical_test2 is TRUE. It can be empty.

1. Please enter or copy the below formula into a blank cell:

=IFS(B2>=90,"A",B2>=80,"B",B2>=70,"C",B2>=60,"D",B2<60,"F")

2. Then, drag the fill handle down to the cells to apply this formula, and the letter grade has been displayed as following screenshot shown: Click to know more IFS function...

#### More relative text category articles:

• Categorize Data Based On Values In Excel
• Supposing, you need to categorize a list of data based on values, such as, if data is greater than 90, it will be categorized as High, if is greater than 60 and less than 90, it will be categorized as Medium, if is less than 60, categorized as Low, how could you solve this task in Excel?
• Assign A Value Or Category Based On A Number Range
• This article is talking about assigning value or category related to a specified range in Excel. For example, if the given number is between 0 and 100, then assign value 5, if between 101 and 500, assign 10, and for range 501 to 1000, assign 15. Method in this article can help you get through it.
• Assign Serial Number To Duplicate Or Unique Values
• If you have a list of values which contains some duplicates, is it possible for us to assign sequential number to the duplicate or unique values? It means giving a sequential order for the duplicate values or unique values. This article, I will talk about some simple formulas to help you solving this task in Excel.
• Convert Letter Grade To Number In Excel
• If you have a sheet which contains student names and the letter grades, now you want to convert the letter grades to the relative number grades as below screenshot shown. You can convert them one by one, but it is time-consuming while there are so many to convert.

## The Best Office Productivity Tools

### Kutools for Excel Solves Most of Your Problems, and Increases Your Productivity by 80%

• Super Formula Bar (easily edit multiple lines of text and formula); Reading Layout (easily read and edit large numbers of cells); Paste to Filtered Range...
• Merge Cells/Rows/Columns and Keeping Data; Split Cells Content; Combine Duplicate Rows and Sum/Average... Prevent Duplicate Cells; Compare Ranges...
• Select Duplicate or Unique Rows; Select Blank Rows (all cells are empty); Super Find and Fuzzy Find in Many Workbooks; Random Select...
• Exact Copy Multiple Cells without changing formula reference; Auto Create References to Multiple Sheets; Insert Bullets, Check Boxes and more...
• Favorite and Quickly Insert Formulas, Ranges, Charts and Pictures; Encrypt Cells with password; Create Mailing List and send emails...
• Extract Text, Add Text, Remove by Position, Remove Space; Create and Print Paging Subtotals; Convert Between Cells Content and Comments...
• Super Filter (save and apply filter schemes to other sheets); Advanced Sort by month/week/day, frequency and more; Special Filter by bold, italic...
• Combine Workbooks and WorkSheets; Merge Tables based on key columns; Split Data into Multiple Sheets; Batch Convert xls, xlsx and PDF...
• Pivot Table Grouping by week number, day of week and more... Show Unlocked, Locked Cells by different colors; Highlight Cells That Have Formula/Name... ### Office Tab - brings tabbed interface to Office, and make your work much easier

• Enable tabbed editing and reading in Word, Excel, PowerPoint, Publisher, Access, Visio and Project.
• Open and create multiple documents in new tabs of the same window, rather than in new windows.
• Increases your productivity by 50%, and reduces hundreds of mouse clicks for you every day! No ratings yet. Be the first to rate!
This comment was minimized by the moderator on the site
This comment was minimized by the moderator on the site
hello! sometimes students are absent. how can i write the IF statement so that the student who is absent is graded Abs and not A?That is; under the Score i write Abs or i leave it blank and i what the IF statement to return Abs
This comment was minimized by the moderator on the site
Trying to build a formula for Excel for University Transcript but little bit confusecause, other Courses 3 Credit hours equivalent to 12 points and 12 point also equal A For Math 4 Credit Hours equivalent to 16 Points and 16 Point also equal A (But for Math B also equal 12 points ROTC & PE 1 Credit hour equivalent to 4 Points . Can you please help?
This comment was minimized by the moderator on the site
THANKS a lot.
This comment was minimized by the moderator on the site
thank you so much
This comment was minimized by the moderator on the site
Thank You So much
This comment was minimized by the moderator on the site
so nice Dear
This comment was minimized by the moderator on the site
This comment was minimized by the moderator on the site
i want if there is 30% then fail more then it grade c more then 45% its D more then 60% its A more then 80% its A+. Please make sure it is using on percentage row
This comment was minimized by the moderator on the site
Hi, satish,
The above two methods both can work well for percentage cells, please try it. Thank you！

If you have any other problems, please comment here.
This comment was minimized by the moderator on the site
I am trying to add one more IF statement to this formula and need some help please!

=IF(G3<\$S\$4,\$R\$4,IF(G3<\$S\$5,\$R\$5,IF(G3<\$S\$6,\$R\$6,IF(G3<\$S\$7,\$R\$7,IF(G3<\$S\$8,\$R\$8,IF(G3<\$S\$9,\$R\$9,IF(G3<\$S\$10,\$R\$10,IF(G3<\$S\$11,\$R\$11,\$R\$12))))))))
This comment was minimized by the moderator on the site
It was helpful for me. Thanks :-)
This comment was minimized by the moderator on the site
Thank You Very Much..
This comment was minimized by the moderator on the site
If student is absent then how to count percentage???
This comment was minimized by the moderator on the site
could there be step by step instructions...it was helpfull though
This comment was minimized by the moderator on the site
Trying to convert 10%-29% as a value 1, 30%-39% as a value 2, 40%-49% as a value 3, 50%-59% as a value 4 etc, Help with excel formulae
This comment was minimized by the moderator on the site
=IF(A2>=60%," ",IF(A2>=50%,"4",IF(A2>=40%,"3",IF(A2>=30%,"2",IF(A2>=10%,"1"," ")))))

This comment was minimized by the moderator on the site
it can't help
This comment was minimized by the moderator on the site
I am building a report sheet for student but I cn't find the position using excel (1st, 2nd, .......................)
This comment was minimized by the moderator on the site
My students' grades are based on the following-how would the formula need to be to handle this?

A 630 and higher
B 560 to 629
C 490 to 559
D 420 to 489
F 419 and below
This comment was minimized by the moderator on the site
Hello, John,
=IF(A1>=630,"A",IF(A1>=560,"B",IF(A1>=490,"C",IF(A1>=420,"D","F"))))

This comment was minimized by the moderator on the site
Thank you so much- it works great.
This comment was minimized by the moderator on the site
This comment was minimized by the moderator on the site
I wish to assign value to letter grades, how do I go about it? For instance, My students' scores are A, A-, B+ B, B- all the way to E, with A=12, A-=11, B+=10 and E=1. What formular can I use please?
This comment was minimized by the moderator on the site
=IF(A2>97,"A+",IF(A2>93,"A",IF(A2>90,"A-",IF(A2>87,"B+",IF(A2>83,"B",IF(A2>80,"B-",IF(A2>77,"C+",IF(A2>73,"C",IF(A2>70,"C-",IF(A2>67,"D+",IF(A2>63,"D",IF(A2>60,"D-","F"))))))))))))
This comment was minimized by the moderator on the site
A1-91to 100,
A2-81to 90,
B1-71to80,
B2-61to70,
C1-51to60,
C2-41to50,
D1-35to40,
D2-0TO34.
This comment was minimized by the moderator on the site
Hello, HARI,

=IF(A1>=91,"A1",IF(A1>=81,"A2",IF(A1>=71,"B1",IF(A1>=61,"B2",IF(A1>=51,"C1",IF(A1>=41,"C2",IF(A1>=35,"D1","D2")))))))

This comment was minimized by the moderator on the site
I am using this formula but it dosent seem to work. There is no error message but it just converts the students grades in the order of PP MP MM DM and so on it doesn't seem to take the number into account and i can't seem to see what's going wrong any advice?

840-879 PP

880-919 MP

920-959 MM

960-999 DM

1000-1029 DD

1030-1059 D*D

1060+ D*D*

=IF(Y3>=840,AB3,IF(Y3>=880,AB4,IF(Y3>=920,AB5,IF(Y3>=960,AB6,IF(Y3>=1000,AB7,IF(Y3>=1030,AB8,IF(Y3>=1060,AB9"NYA")))))))
This comment was minimized by the moderator on the site
Hello, Natasha,
You should change your formula as this:
=IF(A1>=1060,"D*D*",IF(A1>=1030,"D*D",IF(A1>=1000,"DD",IF(A1>=960,"DM",IF(A1>=920,"MM",IF(A1>=880,"MP",IF(A1>=840,"PP","NYA")))))))
Or you can reference the cells of the grade, but you should add absolute reference to the cell, such as:\$AB\$3.