Searching two columns for information
=sumproduct(--(a2:a30="yes"),--(d2:d30="Charles"))
will give you the count of all "yes" with "charles"
"Colin" wrote:
I have a range of data in A2:G30 with cells in range A2:A30 with 'yes' or
'no' as text in the cells, and I have 'David', 'Andrew', 'Charles' or 'John'
as text in cells D2:D30.
I want to put in cell K50 a function that searches D2:D30 for 'Charles',
then records the number of cells in the corresponding rows in range A2:A30
where the cells are 'yes'.
How do I do this please.
--
Thank you,
Colin.
|