Hi again,
To make it more clear:
With regular numbers it works well, BUT my sheet is actualy more complicated
and the vlues in the range are from an other sheet.
My formula that I concluded from yours is as follows:
=IF(COUNTA(E21:G21)>1,AVERAGE(INDEX(Marks!H:J,MATCH($A$3,Marks!$B:$B,0),0)),"")
and it stil gives the answer when only ONE number is there!!
any other suggestions???
"Nick Hodge" <(E-Mail Removed)> wrote in message
news:AE62167F-FDCD-4616-84B6-(E-Mail Removed)...
> Ooops...still awake in Dorset? Good job! ;-)
>
> Thanks Bob
>
> --
> HTH
> Nick Hodge
> Microsoft MVP - Excel
> Southampton, England
> (E-Mail Removed)DTHIS
> web: www.nickhodge.co.uk
> blog (non-tech): www.nickhodge.co.uk/blog/
> "Bob Phillips" <(E-Mail Removed)> wrote in message
> news:%(E-Mail Removed)...
>>I think you mean
>>
>> =IF(COUNT($E$21:$G$21)>1,AVERAGE($E$21:$G$21),"")
>>
>> Mr H
>>
>>
>>
>> "Nick Hodge" <(E-Mail Removed)> wrote in message
>> news
EB0C873-1194-4FEA-8D88-(E-Mail Removed)...
>>> Khalil
>>>
>>> If for numbers you mean anything then
>>>
>>> =IF(COUNTA($E$21:$G$21)>1,AVERAGE($E$21:$G$21),"")
>>>
>>> Will work
>>>
>>> --
>>> HTH
>>> Nick Hodge
>>> Microsoft MVP - Excel
>>> Southampton, England
>>> (E-Mail Removed)DTHIS
>>> web: www.nickhodge.co.uk
>>> blog (non-tech): www.nickhodge.co.uk/blog/
>>> "Khalil Handal" <(E-Mail Removed)> wrote in message
>>> news:(E-Mail Removed)...
>>>> Hi,
>>>> Cells E21, F21, G21 has numbers, Cell H21 is the aveage of Range
>>>> E21:G21
>>>> I want to see the average in cell H21 only if ANY TWO cells from the
>>>> range has numbers in it.
>>>>
>>>> In other words:
>>>> Nothing will be shown in cell H21 if there is ONE number in the range.
>>>>
>>>>
>>>
>>
>>
>