list name with same condition

F

faeiz2

Hi all, l have like this:

date 1 date 2 date 3
john dc nc
mary nc nc
peter dc of
carl of dc


I want to list in a cell names on a particular date with same value.
example for date 1

john and peter will appear in cell f3 like this john, peter,

tq
 
Top