Gradelu › Guides › How to calculate GPA in Excel
How to calculate GPA in Excel
Put grade points in one column and credits in another, then divide =SUMPRODUCT(points, credits) by =SUM(credits). For the four-course college example below, exported from Gradelu, that is =SUMPRODUCT(D2:D5,F2:F5)/SUM(F2:F5) = 48.3 ÷ 14 = 3.45. You can export your own rows the same way or start from the free template.
Why SUMPRODUCT is the right function
A GPA is total quality points ÷ total credits, where each class’s quality points are its grade points × its credits (the University of Illinois registrar’s method). Microsoft’s SUMPRODUCT documentation describes the function as multiplying corresponding cells of the ranges and adding the results, which is exactly the quality-point total in one cell.
=SUMPRODUCT(points_range, credits_range) / SUM(credits_range)
Route 1: export the rows from Gradelu
Enter your courses in the college GPA calculator (or the high school one) and press Download CSV. The file opens in Excel with one row per graded course.

This is what the exported gpa.csv looks like in Excel (column letters across the top):
| A Class | B Percent | C Letter | D Points | E Bonus | F Credits | G Quality points | H Weighted quality points | |
|---|---|---|---|---|---|---|---|---|
| 2 | Calculus I | B+ | 3.3 | 0 | 4 | 13.2 | 13.2 | |
| 3 | English Composition | A- | 3.7 | 0 | 3 | 11.1 | 11.1 | |
| 4 | General Chemistry | B | 3 | 0 | 4 | 12 | 12 | |
| 5 | Intro to Psychology | A | 4 | 0 | 3 | 12 | 12 | |
| 9 | Unweighted GPA | 3.45 | (rows 7–8 hold the scale name and total credits) | |||||
So in that file the points are in column D and the credits in column F:
- Unweighted GPA:
=SUMPRODUCT(D2:D5,F2:F5)/SUM(F2:F5)→ 48.3 ÷ 14 = 3.45.=SUM(G2:G5)/SUM(F2:F5)gives the same, since column G already holds points × credits. - Weighted GPA from a high school export, where column E holds the honors or AP bonus:
=SUM(H2:H6)/SUM(F2:F6), or=SUMPRODUCT((D2:D6+E2:E6)*F2:F6)/SUM(F2:F6). Microsoft’s page shows this operator form. For the high school calculator’s five-class example that is 17.5 ÷ 5 = 3.5. - Check: the Unweighted GPA line the export writes under the table must match your formula. If it does not, a range is off by a row.

=SUM(H2:H6)/SUM(F2:F6) returns on the downloaded file. Open this example in the calculator →Adjust the last row number to your own number of courses.
Route 2: the free template
Download the GPA template (.xlsx)
The template has two sheets. Scale holds the letter-to-points table (the plus/minus scale from Rochester Christian University, A+ counted as 4.0); type your school’s values over it. GPA has 20 course rows:
| Column | Content | Formula (row 2) |
|---|---|---|
| A | Course | you type |
| B | Letter grade | you type |
| C | Credits | you type |
| D | Counts in GPA? (Y/N) | you type; N for pass/fail or W |
| E | Grade points | =IF(OR(B2="",D2="N"),"",VLOOKUP(B2,Scale!$A$2:$B$14,2,FALSE)) |
| F | Quality points | =IF(E2="","",E2*C2) |
| G | Credits counted | =IF(E2="",0,C2) |
The GPA cell is =SUMPRODUCT(E2:E21,G2:G21)/SUM(G2:G21). Because column G is 0 for any row without points, pass/fail rows and empty rows stay out of both the top and the bottom of the fraction. The template opens with the four-course example filled in, so the GPA cell should read 3.45 before you change anything.
Four spreadsheet mistakes, with the wrong numbers
| Mistake | Wrong result | Right result |
|---|---|---|
=AVERAGE(D2:D5) on the points | (3.3 + 3.7 + 3.0 + 4.0) ÷ 4 = 3.50 | 3.45: the 4-credit B+ and B count more than the 3-credit A- and A |
A pass/fail row with 1 credit and no points, divided by SUM of all credits | 48.3 ÷ 15 = 3.22 | 3.45: leave ungraded credits out of the denominator |
VLOOKUP without FALSE | Can return the wrong letter’s points | Use FALSE for an exact match |
=ROUND(…,2) where the school truncates | 2.1875 → 2.19 | =TRUNC(…,2) → 2.18 |
- Pass/fail rows: SUMPRODUCT treats non-numeric entries as zeros (Microsoft), so a blank or “P” in the points column adds 0 quality points while its credits still sit in
SUM. That is how 3.45 becomes 3.22. - VLOOKUP: Microsoft’s VLOOKUP page says approximate match (TRUE) is the default when you leave the last argument out, and that it expects the first column to be sorted. A letter table in grade order (A, A-, B+ …) is not sorted that way. With
FALSE, a letter that is not in the table returns #N/A, which is the error you want to see. - Rounding: the Illinois registrar reports 35 ÷ 16 = 2.1875 as 2.18, truncated, not rounded. Use
TRUNCif your school does the same.
When to stay in the calculator
A spreadsheet is useful for keeping four years of grades in one file. For percents, weighted courses or a target GPA, the calculators already do the lookup and the arithmetic and print every step: the weighted GPA calculator for honors and AP, the cumulative calculator for several terms, and percentage to GPA if your grades are percents.
Sources
Next step
Sources opened 11 November 2026. All guides · How the scales were chosen.