Hi All,
Forgive me for the following text explanation but we are blocked from uploading items at work and I’m at work at present.
I have a basic table for recording health and safety, currently spanning A1 to N46.
Column C contains words that relate to the type of health and safety issue (e.g. Abuse, Accident, Near Miss, Violence, etc.)
For counting the number of Accidents, I can just use:
=COUNTIF(C:C,"*Accident*")
However, for counting number of instances of aggression, I need to count any cell containing either all, one, or a subset of, the following words:
So far, I’ve failed miserably. I’ve tried:
=COUNT(SEARCH({"Abuse","Harassment","Intimidation"},C:C))
Which results in number 59, when my table only has 46 rows!
=(COUNT(ROWS(OR(ISNUMBER(SEARCH({"Abuse","Harassment","Intimidation"},C:C)))),A:N))
Just seems to count the number of rows minus the header row
=SUMIF(C:C,OR(ISNUMBER(SEARCH({"Abuse","Harassment","Intimidation"},C:C))))
Results in zero. (Although admittedly I’d lost the plot by this point.)
I will try to upload an image of the table tonight or tomorrow, as I can only do this outside of work, really sorry.
If anyone can help, I’d be really grateful.
Thank you.
(Apologies as usual for my idiocy, I am autistic with learning difficulties. Thank you for your patience.)
Forgive me for the following text explanation but we are blocked from uploading items at work and I’m at work at present.
I have a basic table for recording health and safety, currently spanning A1 to N46.
Column C contains words that relate to the type of health and safety issue (e.g. Abuse, Accident, Near Miss, Violence, etc.)
For counting the number of Accidents, I can just use:
=COUNTIF(C:C,"*Accident*")
However, for counting number of instances of aggression, I need to count any cell containing either all, one, or a subset of, the following words:
- Abuse
- Harassment
- Intimidation
So far, I’ve failed miserably. I’ve tried:
=COUNT(SEARCH({"Abuse","Harassment","Intimidation"},C:C))
Which results in number 59, when my table only has 46 rows!
=(COUNT(ROWS(OR(ISNUMBER(SEARCH({"Abuse","Harassment","Intimidation"},C:C)))),A:N))
Just seems to count the number of rows minus the header row
=SUMIF(C:C,OR(ISNUMBER(SEARCH({"Abuse","Harassment","Intimidation"},C:C))))
Results in zero. (Although admittedly I’d lost the plot by this point.)
I will try to upload an image of the table tonight or tomorrow, as I can only do this outside of work, really sorry.
If anyone can help, I’d be really grateful.
Thank you.
(Apologies as usual for my idiocy, I am autistic with learning difficulties. Thank you for your patience.)