I use the SUM(B1..B20) formula to sum a column, but when I filter the data by an adjacent column, the sum doesn’t update to reflect only those rows not filtered out. How does one do this?
I use the SUM(B1..B20) formula to sum a column, but when I filter the
Share
You need to use the SUBTOTAL function. The SUBTOTAL function ignores rows that have been excluded by a filter.
The formula would look like this:
The function number 9, tells it to use the SUM function on the data range B1:B20.
If you are ‘filtering‘ by hiding rows, the function number should be updated to 109.
The function number 109 is for the SUM function as well, but hidden rows are ignored.