I have a column list of "Priority" customers:
| Priority |
|---|
| A |
| B |
| C |
| D |
Separately, I have a range of products that various customers buy.
| Product | Evaluate | Customer 1 | Customer 2 | ... | Customer n |
|---|---|---|---|---|---|
| Drum | TRUE | C | S | ... | |
| Bell | FALSE | T | U | ... | Z |
| Horn | TRUE | A | ... |
I would like to use an ArrayFormula to compute column "Evaluate" which checks whether a customer in column "Priority" exists for each row in range Customer 1 - Customer n.
Currently, I am using SEARCH for each row for each customer:
=IF(A2="","",IF(IFERROR(search('Priority'!$A$2,G2),0)
+IFERROR(search('Priority'!$A$3,G2),0)
+IFERROR(search('Priority'!$A$4,G2),0)
+IFERROR(search('Priority'!$A$5,G2),0)
...
Where G2 is a single cell in a row for my product table with comma-separated values for the customer (A, T, U...) and $A$3, $A$4, $A$5... are my priority customers in a separate column. I am dragging this formula down to evaluate each row. I'd like help coming up with a more efficient formula that doesn't require dragging down to the bottom (arrayformula would be ideal).
Hopefully that's clear - thanks!

