That works, thanks.
Is it possible to seperate the columns K-O as each refers to different list
of numbers?
i.e the number in K looks at the cells B5:B10, L looks at C5:C10 up to O -
F5:F10
I have tried this..
=IF(ISNUMBER(MATCH(5,K81:O81,0)),SUMPRODUCT(--($B$5:$F$10=I92)),"")
but if 5 appears in say K its looks at the whole range B5:F10 when all i
want it to do is look at B5:B10, similarly if its in L it looks through the
whole range when i want it to look at C5:C10..
What i am trying to say is i want your formula,
=IF(ISNUMBER(MATCH(5,K81:O81,0)),SUMPRODUCT(--($B$5:$F$10=I92)),""), to
somehow be 5 formulae in 1 cell.
Tricky ? Too much work? or impossible?
Thanks again
"Domenic" <domenic22@sympatico.ca> wrote in message
news:domenic22-830117.07512807052005@msnews.microsoft.com...
> Correction...
>
> =IF(ISNUMBER(MATCH(5,K81:O81,0)),SUMPRODUCT(--($B$5:$B$10=I92)),"")
>
> OR
>
> =IF(ISNUMBER(MATCH(5,K81:O81,0)),COUNTIF($B$5:$B$10,I92),"")
>
> Hope this helps!
>
> In article <domenic22-486FB7.07422707052005@msnews.microsoft.com>,
> Domenic <domenic22@sympatico.ca> wrote:
>
>> Try...
>>
>> =IF(ISNUMBER(MATCH(K81:O81,{5},0)),SUMPRODUCT(--($B$5:$B$10=I92)),"")
>>
>> Actually, the following formula would suffice...
>>
>> =IF(ISNUMBER(MATCH(K81:O81,{5},0)),COUNTIF($B$5:$B$10,I92),"")
>>
>> No need to use SUMPRODUCT to count with one condition.
>>
>> Hope this helps!
Bookmarks