I use the following array formula to count multiple criteria (for a list of criteria in a helper column, only count once):
=COUNTA($B$2:$B$100)SUMPRODUCT(1(MMULT(TRANSPOSE(1(ISTEXT($D$2:$D$10))),1(ISERROR(SEARCH($D$2:$D$10,TRANSPOSE($B2:$B$100)))))=COUNTA($D$2:$D$10)))
The data is in B:B, and the helper column is in D:D.
I want to incorporate a second column, and if there is a criteria match in either column, then count 1. If I make the data B:C, the formula ends up counting twice, when I only want it to count once.
How can I modify this formula, or is another (array) formula better suited to look at two (adjacent) columns, if it sees the criteria in the helper column, to only count once?
TIA for the help!
Bookmarks