Sum only the visible rows after filtering, unlike a plain SUM.
Copy this formula
=SUBTOTAL(109, B2:B100)SUBTOTAL with function code 109 sums a range while ignoring rows hidden by a filter. Codes 1–11 ignore filtered rows; 101–111 also ignore manually hidden rows. Swap 109 for 101 (average), 102 (count), and so on.
=SUBTOTAL(101, B2:B100)→215Average of the visible rows only.
SUM always totals every row; SUBTOTAL respects your filter, so the total matches what you see.
Need a formula for your own data?
Describe what you want in plain language and let ExcelGPT write, explain, and verify the formula — free to start, no plugin.