I have column like this
+------+-------------------------+-------------------------+
| Year | Status1 | Status2 |
+------+-------------------------+-------------------------+
| 1 | [Blank] | Confirmed on YYYY.MM.DD |
| 2 | Confirmed on YYYY.MM.DD | done on YYYY.MM.DD |
| 1 | Confirmed on YYYY.MM.DD | Confirmed on YYYY.MM.DD |
| 2 | Attended on YYYY.MM.DD | Confirmed on YYYY.MM.DD |
| 1 | Attended on YYYY.MM.DD | done on YYYY.MM.DD |
| 1 | done on YYYY.MM.DD | done on YYYY.MM.DD |
| 2 | done on YYYY.MM.DD | done on YYYY.MM.DD |
| 1 | Ready on YYYY.MM.DD | Confirmed on YYYY.MM.DD |
| 2 | Ready on YYYY.MM.DD | Confirmed on YYYY.MM.DD |
+------+-------------------------+-------------------------+
I need to count the total number of rows that both Status1 and Status2 are containing "Attended", "Done" or "Ready".
Expected Result is
+------+-----+
| Year | Sum |
+------+-----+
| 1 | 2 |
| 2 | 1 |
+------+-----+
I tried COUNTIFS and as there is not OR operator, if I brute force, then formula calculating sum of Year 1 becomes
=
countifs(A:A, "=1",B:B, "=*attended*", C:C, "=*attended*")+
countifs(A:A, "=1",B:B, "=*attended*", C:C, "=*done*")+
countifs(A:A, "=1",B:B, "=*attended*", C:C, "=*ready*")+
countifs(A:A, "=1",B:B, "=*done*", C:C, "=*attended*")+
..........
There will be 9 cases and if later I have another new cases, the formula will be terribly long. Therefore, is there any simple solution to my question?
I read this thread Google Spreadsheets: How do I combine COUNTIF with OR but I am not sure how I can apply DCOUNT or COUNTIFS into this situation.
Many thanks.