Greetings,
I am looking to have a formula to show the avg of a column of data, and to have the displayed avg change based upon any filtering applied to other columns.
Target cell for Formula: M4
beginning cell of data in the column M9
basic filter will be against column E, with a secondary being some other random col.
Thanks,
Brad
Formula to update and show Avg based on lines displayed
-
- 4StarLounger
- Posts: 538
- Joined: 30 Mar 2010, 18:49
- Location: United States
-
- Administrator
- Posts: 78474
- Joined: 16 Jan 2010, 00:14
- Status: Microsoft MVP
- Location: Wageningen, The Netherlands
Re: Formula to update and show Avg based on lines displayed
In M4:
=SUBTOTAL(1,M9:M100)
Adjust the range if needed (it doesn't matter if it contains empty cells at the end; they will be ignored)
=SUBTOTAL(1,M9:M100)
Adjust the range if needed (it doesn't matter if it contains empty cells at the end; they will be ignored)
Best wishes,
Hans
Hans
-
- 4StarLounger
- Posts: 538
- Joined: 30 Mar 2010, 18:49
- Location: United States
Re: Formula to update and show Avg based on lines displayed
Hans,
good deal. Is there a way to get around having to refresh the calculations? After filtering, I have to press F9...
good deal. Is there a way to get around having to refresh the calculations? After filtering, I have to press F9...
-
- Administrator
- Posts: 78474
- Joined: 16 Jan 2010, 00:14
- Status: Microsoft MVP
- Location: Wageningen, The Netherlands
Re: Formula to update and show Avg based on lines displayed
Make sure that Calculation Options on the Formulas tab of the ribbon is set to Automatic. Excel should automatically update the result of SUBTOTAL as you filter.
Best wishes,
Hans
Hans
-
- 4StarLounger
- Posts: 538
- Joined: 30 Mar 2010, 18:49
- Location: United States
Re: Formula to update and show Avg based on lines displayed
wow that was a total brain fart. Cannot believe I forgot that.
Thanks
Thanks