ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Averaging only visible cells (https://www.excelbanter.com/excel-worksheet-functions/187825-averaging-only-visible-cells.html)

Bear Black

Averaging only visible cells
 
I know there is a subtotal function that will only add up visible cells when
using filters, but is there a formula that will average only visible cells
when using filters?

Gaurav[_3_]

Averaging only visible cells
 
=SUBTOTAL(101,A2:A10)

Change the range to suit.


"Bear Black" wrote in message
...
I know there is a subtotal function that will only add up visible cells
when
using filters, but is there a formula that will average only visible cells
when using filters?




Gary''s Student

Averaging only visible cells
 
Yes...use the 101 code
--
Gary''s Student - gsnu200786


"Bear Black" wrote:

I know there is a subtotal function that will only add up visible cells when
using filters, but is there a formula that will average only visible cells
when using filters?


Dave Peterson

Averaging only visible cells
 
If you're not using xl2003+, then the old version of =subtotal() won't support
the 1## parm.

Bear Black wrote:

I know there is a subtotal function that will only add up visible cells when
using filters, but is there a formula that will average only visible cells
when using filters?


--

Dave Peterson

Bear Black

Averaging only visible cells
 
Thanks very much for your help!! Worked like a champ.

"Gary''s Student" wrote:

Yes...use the 101 code
--
Gary''s Student - gsnu200786


"Bear Black" wrote:

I know there is a subtotal function that will only add up visible cells when
using filters, but is there a formula that will average only visible cells
when using filters?



All times are GMT +1. The time now is 03:21 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com