If you download and install the free add-in Morefunc.xll, you can use
the following formula...
=AVERAGE(IF(SETV(ARRAY.JOIN(B9:B17,B24:B55))0,GET V()))
Alternatively, try...
=AVERAGE(IF(ISNA(MATCH(ROW(B9:B55)-ROW(B9)+1,{10,11,12,13,14,15},0)),IF(B
9:B550,B9:B55)))
....which will exclude from the average the 10th through 15th cell within
B9:B55, relative to B9. Note that both formulas needs to be confirmed
with CONTROL+SHIFT+ENTER. Also, the add-in can be download at the
following link...
http://xcell05.free.fr/
Hope this helps!
In article ,
Curtis wrote:
Thanks
But when I use the formula
{=AVERAGE(IF(CHOOSE({1,2},B9:B17,B24:B55)<0,CHOOS E({1,2},B9:B17,B24:B55)))}
it returns a value of #N/A
What am I doing wrong?
"Biff" wrote:
Hi!
Is this what you mean?
Average A1:A5 and F1:F5?
If so, try this:
Entered as an array using the key combination of CTRL,SHIFT,ENTER (not just
ENTER):
=AVERAGE(IF(CHOOSE({1,2},A1:A5,F1:F5)<0,CHOOSE({1 ,2},A1:A5,F1:F5)))
Biff
"Curtis" wrote in message
...
How do I calculate the averages of numbers in 2 sets of ranges...
excluding
zero vaules?
Thanks