How to Calculate Grades in Excel

If you just need to calculate grades in excel and move on, the boxed answer at the top is all you need. The rest of this page is for when you want to understand why it works in Excel, adapt it to a trickier version, or make it robust enough to hand to a colleague. We keep the opening short on purpose — the depth is here when you want it, not in your way when you don’t.

Exact answer

In Excel: put the cut-offs in a small table sorted ascending and use approximate-match VLOOKUP: =VLOOKUP(B2,$E$2:$F$6,2,TRUE).

On this page7
▤Annotated stepsExcel
1

Build a two-column table: the lower bound of each band on the left, the label on the right.

2

Sort it ascending by the bound, and start it at zero so no score falls below the table.

3

Enter =VLOOKUP(B2,$E$2:$F$6,2,TRUE) beside the first score and fill down; the dollar signs keep the table fixed.

4

On Microsoft 365, use XLOOKUP with match mode -1 instead, which does not require the table to be sorted.

5

For plus and minus grades, add the extra rows to the table — the formula needs no change at all.

=VLOOKUP(B2,$E$2:$F$6,2,TRUE)
Ctrl+CthenCtrl+Shift+V⌘+Cthen⌘+Ctrl+VPaste values · WindowsMac

What this does

Approximate-match lookup is built for banded conversions. Given a sorted table of lower bounds and their labels, VLOOKUP with TRUE as the last argument finds the largest bound not greater than the score and returns its label. Compared with a chain of nested IFs, the boundaries live on the sheet where anyone can see and change them, and adding a grade is a new row rather than a rewritten formula. Keep the inputs visible and clearly labelled and the whole thing stays auditable — anyone who opens the file later, including you, can see at a glance exactly what feeds the result and change one assumption without hunting through the formula. Treat “calculate grades in excel” as a small repeatable workflow rather than a one-off click you hope to remember next time. Use a small test block before the live file, so any surprise in the affected cells shows up while it is still harmless. When a formula is involved, keep the inputs labelled beside it, reference cells instead of typing values, and apply number formatting only after the result checks out. That turns a calculation you can defend to a CFO or an auditor into a method you can reuse, explain, and defend when the workbook leaves your screen.

A worked example

E2:F6 holds 0/F, 60/D, 70/C, 80/B and 90/A. A score of 87 in B2 with =VLOOKUP(B2,$E$2:$F$6,2,TRUE) returns B. The modern equivalent is =XLOOKUP(B2,$E$2:$E$6,$F$2:$F$6,,-1), where match mode -1 means exact match or the next smaller item. The cut-offs are the policy, and a lookup table puts them where they can be reviewed instead of burying them inside a formula nobody re-reads. Check the referenced cells, argument order and result type in your workbook. Start with the worked example before changing an input, then compare the changed result with the calculation you expected. An error value or a result of a different type is a reason to inspect the inputs and arguments.

In Google Sheets

Function availability: XLOOKUP: Excel 2021+; IFS: Excel 2019+. These are Microsoft's version markers; earlier perpetual releases do not include these functions. Check the actual product and update channel before using the formula. A marker does not establish an identical Web/Mac workflow or Google Sheets support. Nothing on this page is behind a login or a download: the exact answer is at the top, and the detail below it is there for when you need it. That is the whole promise here — the answer first, and just enough context to make it stick. For “calculate grades in excel”, keep the input cells and the result visible while you check the formula in Excel. Follow the worked example and change one input at a time. The steps explain the workbook calculation; this page does not run a live calculator for that task.

Common mistakes

  • Leaving the cut-off table unsorted while using TRUE, which returns wrong grades with no error at all.
  • Omitting the zero row, so any score below the lowest bound returns #N/A.
  • Using FALSE for an exact match, which only ever matches a score that equals a cut-off exactly.
  • Nesting IFs in the wrong order — testing >=60 before >=90 gives every high score a D.

Frequently asked questions

How do I write it with IF instead?

=IFS(B2>=90,"A",B2>=80,"B",B2>=70,"C",B2>=60,"D",TRUE,"F"). The tests must run from the highest boundary down.

How do I add plus and minus grades?

Add rows to the lookup table at 87, 83, 77 and so on. The formula is untouched.

What if the scores are percentages stored as text?

The lookup silently misbehaves. Convert them first with Data ▸ Text to Columns ▸ Finish, or wrap the lookup value in VALUE.

How do I grade on a weighted total first?

Compute the weighted score with =SUMPRODUCT(scores,weights)/SUM(weights), then feed that cell to the lookup.