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 / New Users / April 2008

Tip: Looking for answers? Try searching our database.

Averaging only the non-zero entries in a row?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Ken - 07 Apr 2008 14:01 GMT
Office Excel 2007

Is there a way to find the average of column of figures EXCLUDING any row
that has a zero in it?

I have a column of figures. Each row corresponds to a day, and each day a
new row is added. Some rows have a zero value entered, while the others have
a non-zero number.

Finding the average of the entire row is, I know, easy. =AVERAGE(A1:A100),
for example. However, is there an easy way to exclude cells within the
A1:A100 range that have a zero, so that the I get the sum of the non-zero
rows, divided by the number of rows with non-zero entries?

Many thanks.

Ken Isaacson
SILENT COUNSEL, a legal thriller
www.KenIsaacson.com
Ron Rosenfeld - 07 Apr 2008 14:10 GMT
>Office Excel 2007
>
[quoted text clipped - 15 lines]
>SILENT COUNSEL, a legal thriller
>www.KenIsaacson.com

Since you mention Excel 2007, one of the new functions is AVERAGEIF.

So:  =AVERAGEIF(A1:A100,"<>0")

--ron
Ken - 07 Apr 2008 14:42 GMT
Excellent! Just what I need! Thanks.

>>Office Excel 2007
>>
[quoted text clipped - 22 lines]
>
> --ron
Dave - 07 Apr 2008 18:21 GMT
Hi,
By the way, in XL 2000 (and maybe other versions) I have found that AVERAGE
ignores blank cells when working on a range of cells. However, if a cell
value is 0 (zero) then it is included in the calculation, and affects the
result.
DB. - 13 Apr 2008 10:01 GMT
> Hi,
> By the way, in XL 2000 (and maybe other versions) I have found that
[quoted text clipped - 4 lines]
> the
> result.

Yes, I'm finding that Excel 2003 behaves like that, too.

Signature

DB.


Rate this thread:






 
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.