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
9in the109stands for theSUMfunction, a2would stand forCOUNT - the
10in the109tellsSUBTOTALto omit cells that are hidden
- the
See the official documentation of SUBTOTAL for more info.