How to Calculate a Running Average Grade with Missing Test Results in Excel
Question details
The user needs a method to calculate a running average for student grades where some test scores are missing or haven't been entered yet.

- Product
- Excel
- Device & OS
- not provided
- Scenario
- Calculating ongoing student grades using a grade-to-points lookup table while ignoring test scores that are currently blank.
- Observed behavior
- The formula must return zero for missing tests and divide the total grade points only by the number of completed tests, rather than the total number of assignments, to maintain an accurate running average.
Ensure your grade-to-points lookup table is set up correctly in your worksheet (e.g., in cells R2:S22) and that missing test scores are left completely blank, rather than filled with text or spaces.
Use SUM, IF, VLOOKUP, and COUNT to Calculate the Running Average
Combine conditional lookups with the COUNT function to dynamically calculate the average based only on completed tests.
This method uses the IF function to check if a test cell is blank. If it is blank, it assigns a 0. If it contains a grade, VLOOKUP finds the corresponding grade points from your reference table. Finally, the COUNT function divides the sum of those points by the number of cells that actually contain numeric test scores, successfully ignoring the blanks.
Set up a grade-to-points table in a specific range, such as R2:S22, where the first column contains the letter grade and the second column contains the corresponding point value.
Select the cell where you want the running average to appear. Enter the part of the formula that sums the points conditionally: =SUM(IF(E2="",0,VLOOKUP(G2,$R$2:$S$22,2,FALSE)), IF(H2="",0,VLOOKUP(J2,$R$2:$S$22,2,FALSE)), IF(K2="",0,VLOOKUP(M2,$R$2:$S$22,2,FALSE)), IF(N2="",0,VLOOKUP(P2,$R$2:$S$22,2,FALSE)))
Add the division part of the formula to the end: /COUNT(E2,H2,K2,N2). This ensures that you only divide the total points by the number of tests that actually have numeric percentage scores entered.
Press Enter to calculate the running average. You can then click and drag the fill handle at the bottom right of the cell to apply this formula to other students in your spreadsheet.

Use WPS Spreadsheet to Track Running Averages
WPS Spreadsheet offers full support for advanced formulas like VLOOKUP, IF, and COUNT, making it perfectly suited for tracking running averages, gradebooks, and complex datasets. It is a lightweight, highly compatible alternative to Microsoft Excel.
- 1. Open your gradebook file: Launch WPS Spreadsheet and open your existing .xlsx gradebook document.
- 2. Input the calculation formula: Click on the target cell and paste your combined =SUM(...) / COUNT(...) formula exactly as you would in Excel.
- 3. Calculate and save: Press Enter to get the accurate running average and save your file seamlessly in the standard .xlsx format.

Frequently Asked Questions
Why am I getting a #DIV/0! error when using this running average formula?
This error occurs if all of the test score cells referenced in the COUNT function (e.g., E2, H2, K2, N2) are blank, causing the function to divide by zero. You can wrap your entire formula in the IFERROR function, like =IFERROR(your_formula, 0) or =IFERROR(your_formula, ""), to display a zero or a blank cell instead of the error.
Can I use the standard AVERAGE function instead of dividing SUM by COUNT?
While the standard AVERAGE function automatically ignores blank cells, it cannot natively handle non-contiguous VLOOKUP conversions inside it without complex array formulas. For grade-to-points conversions, summing the looked-up values and manually dividing by the COUNT of valid tests is the most reliable approach.
What if my missing tests are marked with an 'X' instead of being left blank?
If missing tests contain text like 'X', the IF condition checking for a blank ("") will not catch them. You need to change your IF condition to check for the text (e.g., E2="X"). Additionally, the COUNT function only counts numbers, so it will already ignore the 'X', keeping your division accurate.




