An IF() formula will normally have one test which returns one of two
options. In this formula we want the IF() part of the formula to loop
through 5 tests returning an array of returns of either the appropriate
value in Column B or the boolean value FALSE, ie in your example:
{4, 5, 6, FALSE, 9}
Which the AVERAGE() function, which ignores Booleans, evaluates to the
average that you want.

Signature
HTH
Sandy
In Perth, the ancient capital of Scotland
and the crowning place of kings
sandymann2@mailinator.com
Replace @mailinator.com with @tiscali.co.uk
>>Are you sure that it need array entry? It seems to work for me with
>>normal
[quoted text clipped - 5 lines]
>
> Thanks