Gradelu › Guides › How to calculate GPA in Excel

How to calculate GPA in Excel

By the Gradelu team · Published

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.

Gradelu college GPA calculator with four courses (B+ 4 credits, A- 3, B 4, A 3), a GPA of 3.45 and the Download CSV, Print and Copy share link buttons.
Figure 1. The four-course example: 48.3 quality points ÷ 14 credits = 3.45. Download CSV sits under the step table. Open this example in the calculator →

This is what the exported gpa.csv looks like in Excel (column letters across the top):

A ClassB PercentC LetterD PointsE BonusF CreditsG Quality pointsH Weighted quality points
2Calculus IB+3.30413.213.2
3English CompositionA-3.70311.111.1
4General ChemistryB3041212
5Intro to PsychologyA4031212
9Unweighted GPA3.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:

Gradelu high school GPA calculator with five classes including honors English and AP Biology: unweighted 3.20, weighted 3.50, and a step table with a + Bonus column.
Figure 2. A high school export also fills the bonus column: +0.5 for the honors A and +1 for the AP B. The weighted line, 17.5 ÷ 5 = 3.5, is what =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:

ColumnContentFormula (row 2)
ACourseyou type
BLetter gradeyou type
CCreditsyou type
DCounts in GPA? (Y/N)you type; N for pass/fail or W
EGrade points=IF(OR(B2="",D2="N"),"",VLOOKUP(B2,Scale!$A$2:$B$14,2,FALSE))
FQuality points=IF(E2="","",E2*C2)
GCredits 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

MistakeWrong resultRight result
=AVERAGE(D2:D5) on the points(3.3 + 3.7 + 3.0 + 4.0) ÷ 4 = 3.503.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 credits48.3 ÷ 15 = 3.223.45: leave ungraded credits out of the denominator
VLOOKUP without FALSECan return the wrong letter’s pointsUse FALSE for an exact match
=ROUND(…,2) where the school truncates2.1875 → 2.19=TRUNC(…,2) → 2.18

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

College GPA calculator →Enter courses, then Download CSV.How to calculate GPA →The same formula on paper.Which grades count →Why W and pass/fail rows stay out.

Sources opened 11 November 2026. All guides · How the scales were chosen.