Tom,
=SUMIF(A2:A2978,A2,R2:R2978)/SUMPRODUCT((A2:A2978=A2)*(R2:R2978<0))
Array-entering not necessary.
--
Earl Kiosterud
www.smokeylake.com
"Tom" wrote in message
ups.com...
{=AVERAGE(IF(Prov!$A$2:$A$2978=$A2,Prov!$R$2:$R$29 78))}
Above is a formula that succesfully averages what I want. However
sometime the Prov!range r2:R2978 contains zeros.
How can I eliminate those zeros from the average?
The first part of the formula with the cell reference is looking up and
match a name before performin the average..
TIA
Tom