I need a formula to return a unique list of values in (A3:A6) of values from (D2:D6) that are in the column (E:H) that match the criteria in (B1) and have an "x" in Rows (2:6). Need column searched to change based on value in (B1). Thank you
<tbody>
</tbody>
A | B | C | D | E | F | G | H | |
1 | Criteria | Ice Cream | Ice Cream | Yogurt | Sherbet | Pastry | ||
2 | Rob | x | x | x | x | |||
3 | Rob | Maggie | x | x | x | |||
4 | Maggie | Phil | x | x | ||||
5 | John | John | x | x | x | |||
6 | Helen | x | x |
<tbody>
</tbody>