Hi!
Sample workbook is attached. The headers are just default; the real dataset has unique headers.
I have a table, which is 15 rows by 32 columns.
I need to count the number of rows which contain a cell that is: empty OR contains the word "Unknown"
but only if such a cell is in: Column 5 OR Column 6 OR Column 7 OR Column 8 OR Column 19 OR Column 21 OR Column 22 OR Column 31
and only if the cell in Column 2 is: not empty.
The word "Unknown" can only exist in the given columns {5, 6, 7, 8, 19, 21, 22, 31}, and not in any of the other columns.
However, the word "Unknown" exists by default in every cell in all given columns, until it is supposed to be manually changed to a piece of data.
For each row, the data entry starts in Column 2, so Column 2 should always have data in its respective row.
So in the cases where, for example, B17 is empty and "Unknown" appears somewhere else in the row, that row should be excluded from the COUNT calculation.
As soon as B17 is not empty, that row is included in the COUNT calculation, and it is then determined if it meets the criteria to be counted or not.
In terms of empty cells ... they can appear anywhere in the table (people not entering the data, accidentally deleting data, etc).
Row A10:AF10 has an empty D10, but it should not be counted because none of the given columns {5, 6, 7, 8, 19, 21, 22, 31} are empty, nor do they contain the word "Unknown".
The expected result is: 14.
Any help is appreciated; thanks in advance!
Bookmarks