For a sheet/table:
+--------+-------------+------------+----------------+
| Person | Diag1 | Diag2 | Diag3 |
+--------+-------------+------------+----------------+
| A | 431 - TB | 652 - PLA | |
| B | 614 - Cough | 884 - Cold | 952 - Headache |
| C | 747 - BLA | 949 - POP | |
+--------+-------------+------------+----------------+
I have a lookup column:
+------+
| Diag |
+------+
| 431 |
| 650 |
| 949 |
| 555 |
| 484 |
+------+
For each person, if any number in the Diag lookup column lies in any of columns Diag1, Diag2, or Diag 3, that person gets selected from the original table with all associated columns with just the numbers in them.
In this case, sample output:
+--------+-------+-------+-------+
| Person | Diag1 | Diag2 | Diag3 |
+--------+-------+-------+-------+
| A | 431 | 652 | |
| C | 747 | 949 | |
+--------+-------+-------+-------+