Apple launches Apple Store app in India

The Apple Store app provides customers with the most personalized way to shop for Apple’s innovative lineup of products and services. Learn more >

You can make a difference in the Apple Support Community!

When you sign up with your Apple Account, you can provide valuable feedback to other community members by upvoting helpful replies and User Tips.

Formula based on visible rows only

At the top of my sheet are average % changes, using the PRODUCT of a column.

I'd like to filter based on columns B and C (market conditions), and have the average % changes update - is this possible?


i.e. testing what would happen if I only took trades based on more favourable market conditions


I 'think' I can use SUMIF to maybe hard-code the filtered values - I'd be ok with this solution - but don't think there's an equivalent PRODUCTIF


Any suggestions?


Collaboration link to file: Pre-market movers BACKUP


MacBook Air 13″, macOS 15.2

Posted on Jan 16, 2025 5:30 AM

Reply
2 replies

Jan 16, 2025 8:28 AM in response to jamie.kenyon

jamie.kenyon wrote:

I'd like to filter based on columns B and C (market conditions), and have the average % changes update - is this possible?


Yes, have a look at the SUBTOTAL function.


SUBTOTAL - Apple Support


"You can skip hidden rows by adding 10 if function-num is a single digit and 1 if function-num is two-digits."


Following is a simple example with an implausibly good period at the end, perhaps an outlier that you want to exclude, but really just a made up number to show the difference in results after you filter.


Before filtering both formulas yield the same result:


=SUBTOTAL(106,Table 1::M)−1


After applying a filter to column B to exclude market condition A:




Recommend basing your formula on the entire column Numbers style (rather than the Excel-like range within a column that you have) and using Quick Filter on the entire column (in the dropdown by the column letter). You can set more complex filters if needed in the Organize > Filter tab in the pane at the right.


SG

Formula based on visible rows only

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