Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / Worksheet Functions / November 2006

Tip: Looking for answers? Try searching our database.

Make Function ignore 0 and error values

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
AD108 - 04 Nov 2006 18:53 GMT
I am trying to make the average function ignore 0's and errors.  The
following array formula works to ignore the 0's, but I got stuck trying to
make it ignore errors.

=AVERAGE(IF((G3:G20)<>0,G3:G20))

=AVERAGE(IF(AND((G3:G20)<>0,ISERROR(G3:G20)=FALSE),G3:G20))

Thanks in advance.

--
Remove 7 numbers to email
AD108
Teethless mama - 04 Nov 2006 19:33 GMT
=AVERAGE(IF(ISERROR(G3:G20),"",IF(G3:G20<>0,G3:G20))

Array formula you have to commit ctrl>shift>enter (not just enter)

> I am trying to make the average function ignore 0's and errors.  The
> following array formula works to ignore the 0's, but I got stuck trying to
[quoted text clipped - 9 lines]
> Remove 7 numbers to email
> AD108
Teethless mama - 04 Nov 2006 19:45 GMT
Non array enter

=SUMIF(G3:G20,">0")/COUNTIF(G3:G20,">0")

> I am trying to make the average function ignore 0's and errors.  The
> following array formula works to ignore the 0's, but I got stuck trying to
[quoted text clipped - 9 lines]
> Remove 7 numbers to email
> AD108
AD108 - 04 Nov 2006 20:03 GMT
Thanks very much,

> Non array enter
>
[quoted text clipped - 13 lines]
> > Remove 7 numbers to email
> > AD108
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.