Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 202
Default autofilter average without zero

I am using the Subtotal with autofilter to average the visible cells but I
need to exclude zero values.

please help.

thank you in advance, jane
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,766
Default autofilter average without zero

Hi,

In the Auto Filter drop down, exclude the 0 value by using "Custom". This
will show all cells based on the original filter applied by you and all the
cells which are not equal to 0.

--
Regards,

Ashsih Mathur
Microsoft Excel MVP
www.ashishmathur.com

"jane" wrote in message
...
I am using the Subtotal with autofilter to average the visible cells but I
need to exclude zero values.

please help.

thank you in advance, jane


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default autofilter average without zero

Assume the full unfiltered range is A5:B20 and you want to average B5:B20
excluding 0s:

=SUMPRODUCT(SUBTOTAL(9,OFFSET(B5:B20,ROW(B5:B20)-ROW(B5),0,1)),--(B5:B20<0))/SUMPRODUCT(SUBTOTAL(2,OFFSET(B5:B20,ROW(B5:B20)-ROW(B5),0,1)),--(B5:B20<0))

--
Biff
Microsoft Excel MVP


"jane" wrote in message
...
I am using the Subtotal with autofilter to average the visible cells but I
need to exclude zero values.

please help.

thank you in advance, jane



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
2007 Autofilter worse than 2003 Autofilter jsky Excel Discussion (Misc queries) 9 October 31st 07 12:14 AM
Find monthly average but have average automatically configured kimbafred Excel Discussion (Misc queries) 2 August 8th 07 12:28 AM
Can autofilter sum and average columns of numbers? Thank you Bryan W Excel Worksheet Functions 2 September 18th 06 10:05 PM
How to Sort within AutoFilter with Protection on (and AutoFilter . giblon Excel Discussion (Misc queries) 1 February 16th 06 12:23 PM
Error Handling #N/A with AVERAGE Function - Average of values in Row Sam via OfficeKB.com Excel Worksheet Functions 13 July 31st 05 03:59 PM


All times are GMT +1. The time now is 11:07 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"