Excluding zeros in functions

D

daniel

I have a spreadsheet with a few arrays in each of which there are a few
zeros. I have used a number fuctions (median stdev, var, average etc)
and now realize that I should have excluded the zeros. Is there any
quick way to do this?
Thanks
Daniel
 
B

Bob Phillips

Daniel,

Test the range for zeroes within the function, like so

=AVERAGE(IF(A1:A5<>0,A1:A5))

--

HTH

RP
(remove nothere from the email address if mailing direct)
 
Top