=AVERAGE(IF(rng<>0,rng))
which is an array formula, it should be committed with Ctrl-Shift-Enter, not
just Enter.
Excel will automatically enclose the formula in braces (curly brackets), do
not try to do this manually.
When editing the formula, it must again be array-entered.
--
HTH
Bob
(there's no email, no snail mail, but somewhere should be gmail in my addy)
"Jimmy O" <Jimmy
(E-Mail Removed)> wrote in message
news:496F2DA0-5CC6-4522-A453-(E-Mail Removed)...
>I have a column of percentage values some of which are zeros. I wish to
> calculate an average of the percentage values but also wish to exclude all
> zero values from the average formula but I'm not sure how to write an
> argument to do this. Any help is appreciated.