A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » Worksheet Functions
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

autofilter average without zero



 
 
Thread Tools Display Modes
  #1  
Old September 22nd, 2008, 10:01 PM posted to microsoft.public.excel.worksheet.functions
Jane
external usenet poster
 
Posts: 464
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  
Old September 23rd, 2008, 01:04 AM posted to microsoft.public.excel.worksheet.functions
Ashish Mathur[_2_]
external usenet poster
 
Posts: 1,764
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  
Old September 23rd, 2008, 03:18 AM posted to microsoft.public.excel.worksheet.functions
T. Valko
external usenet poster
 
Posts: 15,759
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:B200))/SUMPRODUCT(SUBTOTAL(2,OFFSET(B5:B20,ROW(B5:B20)-ROW(B5),0,1)),--(B5:B200))

--
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



 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 07:57 AM.


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