Google Sheets cheat sheet
How to sum up just visible rows?
- That's useful for example when you filtered your data with the Filter feature and you want to get the sum of a column.
- When using
SUM
, Google Sheets includes also hidden rows that have been filtered out by you. - The solution: use SUBTOTAL
- Example
=SUBTOTAL(109, A2:A100)
- the
9
in the109
stands for theSUM
function, a2
would stand forCOUNT
- the
10
in the109
tellsSUBTOTAL
to omit cells that are hidden
- the
See the official documentation of SUBTOTAL for more info.