I have a range with 2 columns
1 a
1 b
3 c
3 d
2 e
2 f
In a cell I want to have data validation for example all the values from column 2 from the above range where the first column is 3.

How can I do that?