1. Sum all visible assignment scores across the class
| Student | Subject | Assignment | Score | Max |
| Alice | Math | Quiz 1 | 18 | 20 |
| Alice | Math | Midterm | 85 | 100 |
| Bob | English | Quiz 1 | 16 | 20 |
| Bob | English | Final | 78 | 100 |
| Charlie | Science | Quiz 1 | 20 | 20 |
| Charlie | Science | Final | 95 | 100 |
=SUBTOTAL(9, D2:D7)Result: 312
SUBTOTAL with function 9 sums column D (Score). If any rows are manually hidden—for example, if Alice's Midterm was marked as withdrawn and hidden—those scores are automatically excluded from the total, yielding a smaller result. This is SUBTOTAL's key strength over SUM.