Apple Event: May 7th at 7 am PT

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Sum of column in filtered table provides answer which includes hidden data.

If I filter a table on a column and then highlight a column the SUM field on the bottom of the screen returns the correct value.


However, if I then add a formula to sum the visible data, the value is incorrect as it includes the hidden (filtered out) values.

Posted on Jan 31, 2019 11:05 AM

Reply
Question marked as Best reply

Posted on Jan 31, 2019 11:16 PM

Adding to what SG has said…


When you filter a table, the visible rows are controlled by the value in a specific column. Use that column as the test-values and the filter value as condition in your SUMIF formula.


Example: You have a table which you have filtered to show only rows where column B contains "gyro".

You want to sum the values in the visible cells of column G.


Your SUMIF formula will look like this:


Syntax:     SUMIF(test-values,condition,sum-values)


Formula: SUMIF(B,"gyro",G)


Regards,

Barry

Similar questions

4 replies
Question marked as Best reply

Jan 31, 2019 11:16 PM in response to jlesnickjr

Adding to what SG has said…


When you filter a table, the visible rows are controlled by the value in a specific column. Use that column as the test-values and the filter value as condition in your SUMIF formula.


Example: You have a table which you have filtered to show only rows where column B contains "gyro".

You want to sum the values in the visible cells of column G.


Your SUMIF formula will look like this:


Syntax:     SUMIF(test-values,condition,sum-values)


Formula: SUMIF(B,"gyro",G)


Regards,

Barry

Sum of column in filtered table provides answer which includes hidden data.

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.