At my wits' end - help gratefully received!
I have a spreadsheet of animal behaviours where each row represents a time period. Each cell contains a letter code for behaviours they performed in that period. There can be more than one behaviour in a single cell. So this would be an example of my column:
A
A B
X
C
B X
Those blank spaces are blank cells, because the animal did none of those behaviours in that period.
I need my formula to count the frequency of particular behaviours. In this example, I want my formula to count cells that contain "A" and/or "B" and/or "C", regardless of the rest of the cell's content, but ignore cells that don't. So the result should be 4. The cell containing "B X" should be counted, but the cell containing "X" only should not. The cell containing "A B" must only be counted once, preventing me from summing separate countif formulas for each behaviour.
It seems so simple - "count cells in a single range that meet at least one of these three criteria". But I can't suss it out after hours of searching and trying.
I have a spreadsheet of animal behaviours where each row represents a time period. Each cell contains a letter code for behaviours they performed in that period. There can be more than one behaviour in a single cell. So this would be an example of my column:
A
A B
X
C
B X
Those blank spaces are blank cells, because the animal did none of those behaviours in that period.
I need my formula to count the frequency of particular behaviours. In this example, I want my formula to count cells that contain "A" and/or "B" and/or "C", regardless of the rest of the cell's content, but ignore cells that don't. So the result should be 4. The cell containing "B X" should be counted, but the cell containing "X" only should not. The cell containing "A B" must only be counted once, preventing me from summing separate countif formulas for each behaviour.
It seems so simple - "count cells in a single range that meet at least one of these three criteria". But I can't suss it out after hours of searching and trying.