Hello,
I'm struggling to determine how to count the total number of rows (from a range of 2 columns) that contain entries from a list of strings.
[TABLE="width: 500"]
<tbody>[TR]
[TD]Row
[/TD]
[TD]Col A
[/TD]
[TD]Col B
[/TD]
[TD] Col C
[/TD]
[TD]
[/TD]
[TD]String1
[/TD]
[TD]String2
[/TD]
[TD]String3
[/TD]
[/TR]
[TR]
[TD="align: center"]1
[/TD]
[TD="align: center"]Fun
[/TD]
[TD="align: center"]No Fun
[/TD]
[TD="align: center"]Yes
[/TD]
[TD="align: center"][/TD]
[TD="align: center"]Odd
[/TD]
[TD="align: center"]Fun
[/TD]
[TD="align: center"]Confused
[/TD]
[/TR]
[TR]
[TD="align: center"]2
[/TD]
[TD="align: center"]Fun
[/TD]
[TD="align: center"]Fun
[/TD]
[TD="align: center"]Yes
[/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[/TR]
[TR]
[TD="align: center"]3
[/TD]
[TD="align: center"]No Fun
[/TD]
[TD="align: center"]No Fun
[/TD]
[TD="align: center"]Yes
[/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[/TR]
[TR]
[TD="align: center"]4
[/TD]
[TD="align: center"]No Fun
[/TD]
[TD="align: center"]Confused
[/TD]
[TD="align: center"]Yes
[/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[/TR]
[TR]
[TD="align: center"]5
[/TD]
[TD="align: center"]No Fun
[/TD]
[TD="align: center"]Fun
[/TD]
[TD="align: center"]No
[/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[/TR]
</tbody>[/TABLE]
What I need from this is to look in Col A and in Col B and return the total number of rows that contain any of String1, String2, or String3 - however only count those where Col C is "Yes". In this case the answer should be 3 (i.e. Rows 1, 2, and 4 are good).
I appreciate your help as I'm sure you'll prove that the past 3 hours of trying to figure this out myself was not as productive as it could have been .
I'm struggling to determine how to count the total number of rows (from a range of 2 columns) that contain entries from a list of strings.
[TABLE="width: 500"]
<tbody>[TR]
[TD]Row
[/TD]
[TD]Col A
[/TD]
[TD]Col B
[/TD]
[TD] Col C
[/TD]
[TD]
[/TD]
[TD]String1
[/TD]
[TD]String2
[/TD]
[TD]String3
[/TD]
[/TR]
[TR]
[TD="align: center"]1
[/TD]
[TD="align: center"]Fun
[/TD]
[TD="align: center"]No Fun
[/TD]
[TD="align: center"]Yes
[/TD]
[TD="align: center"][/TD]
[TD="align: center"]Odd
[/TD]
[TD="align: center"]Fun
[/TD]
[TD="align: center"]Confused
[/TD]
[/TR]
[TR]
[TD="align: center"]2
[/TD]
[TD="align: center"]Fun
[/TD]
[TD="align: center"]Fun
[/TD]
[TD="align: center"]Yes
[/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[/TR]
[TR]
[TD="align: center"]3
[/TD]
[TD="align: center"]No Fun
[/TD]
[TD="align: center"]No Fun
[/TD]
[TD="align: center"]Yes
[/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[/TR]
[TR]
[TD="align: center"]4
[/TD]
[TD="align: center"]No Fun
[/TD]
[TD="align: center"]Confused
[/TD]
[TD="align: center"]Yes
[/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[/TR]
[TR]
[TD="align: center"]5
[/TD]
[TD="align: center"]No Fun
[/TD]
[TD="align: center"]Fun
[/TD]
[TD="align: center"]No
[/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[/TR]
</tbody>[/TABLE]
What I need from this is to look in Col A and in Col B and return the total number of rows that contain any of String1, String2, or String3 - however only count those where Col C is "Yes". In this case the answer should be 3 (i.e. Rows 1, 2, and 4 are good).
I appreciate your help as I'm sure you'll prove that the past 3 hours of trying to figure this out myself was not as productive as it could have been .