GPA is a credit-weighted average of grade points — each course’s points (A=4, B=3…) times its credit hours, summed and divided by total credits. SUMPRODUCT handles the weighting.
The example
A(3cr), B(4cr), A(3cr).
| A | B | |
|---|---|---|
| 1 | Course | Points · Cr |
| 2 | Math | 4.0 · 3 |
| 3 | GPA | → 3.70 |
The formula
The formula:
How it works
How it works:
- Convert each letter to grade points (A=4, B=3, C=2, D=1, F=0) — a VLOOKUP table is ideal.
- Multiply each course’s points by its credit hours and sum — that’s
SUMPRODUCT. - Divide by total credits for the credit-weighted GPA.
- A 3-credit A and a 1-credit C don’t average to a C+ — weighting by credits is what makes it a GPA.
Plus/minus and weighted scales: many schools use A−=3.7, B+=3.3, etc., and honors/AP courses on a 5.0 scale. Drive the points from a lookup table of letter→points so a different scale is one edit. Cumulative GPA just extends the ranges across all terms.
Try it: interactive demo
Grade points and credits (comma-separated).
Variations
Letter to points
VLOOKUP table:
Unweighted GPA
Equal credits:
Cumulative GPA
All terms:
Pitfalls & errors
Weight by credits. A plain AVERAGE ignores credit hours and gives the wrong GPA.
Map the scale. Use a lookup table for letter→points so plus/minus is easy.
Zero credits. No credits gives #DIV/0! — ensure credit hours are entered.
Practice workbook
Frequently asked questions
How do I calculate GPA in Excel?
Why not just average the grade points?
How do I handle plus/minus grades?
Stop fighting formulas. Learn them in a day.
This recipe is one of hundreds of real-world formulas we teach. Our Excel Formulas & Functions class covers lookups, logic, text, and dynamic arrays hands-on — live in Dallas–Fort Worth, Houston, Austin, Oklahoma City, Denver, or online.
See the Formulas & Functions Class