Apple Intelligence is now available on iPhone, iPad, and Mac!

Subtotal filtered columns

People coming from the competing platform will look for a function to automatically display only a subtotal rather than the total of all the rows, including those hidden. Quite a few on long since closed discussions suggest workarounds that are not likely resorted to.


However, while sometimes you just want, without changing the entire look of your spreadsheet, that simple extra footer row with the subtitle to automatically only show the visible rows according to whichever the quick filter chooses to be visible, a major feature in Numbers leapfrogs Excel and specialises in giving you subtotals and the overall total, if you can stand the layout difference.


On the other hand, reverting to Excel or the like will lose the far nicer formatting of Numbers, so revert as infrequently as possible!


The quickest workaround is to simply select the individual cells in the table that you want to add up. It can be a contiguous range or individual cells (using cmd and click), and in the far bottom of Numbers you will have displayed Sum, Average, Min, Max, and Count!



On the Organise menu choose Categories and explore what you can do as the first resort to getting ad hoc subtotals. Otherwise, for the not-so ad hoc, more intricate workarounds, with separate tables grabbing sub-totals from the main table can be tried.



If you know how to get the basic feature of a subtotal in a cell, showing the ad hoc visible results of a quick filter then by all means let us know.



Mac Pro

Posted on Oct 28, 2024 2:06 AM

Reply
Question marked as Top-ranking reply

Posted on Oct 28, 2024 5:22 PM

To subtotal while excluding rows hidden manually or by a filter you can also use the SUBTOTAL function with the appropriate function-num for SUM_H.


SUBTOTAL - Apple Support


SG


3 replies

Oct 28, 2024 11:48 PM in response to SGIII

That's awesome! Maybe this didn't exist twenty years ago when I switched from MS? Once I found the relevant Apple Support page SUBTOTAL - Apple Support

and tried it out I see that this does everything we would want.


For example, SUBTOTAL(103,A) displayed as SUBTOTAL(COUNTA_H,A) and then provided a whole drop-down menu for all the different options, and it displayed a count of visible text items in column A, while I can use a slight variation of this for the totalling columns. Thanks again!

Oct 29, 2024 7:30 AM in response to iangreen

iangreen wrote:

Maybe this didn't exist twenty years ago when I switched from MS?


Not sure how long SUBTOTAL has been in Numbers with this functionality.


SUBTOTAL is (I think) the only function that recognizes whether a cell is hidden or not and calculates accordingly. It also exists in Excel.


There is somewhat similar functionality in charting. When you click a chart and look at the Chart tab at the right you will see 'Hidden Data' under Chart Options. If that is left unchecked then any hidden data is not included in the chart.


If you notice other "hidden gems" be sure to post and let us know!


SG





Subtotal filtered columns

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