Private Sub Worksheet_SelectionChange(ByVal Target As Range)
Dim rng As Range, c As Long, v As Variant, n As Variant
Set rng = Range("A2:C13")
If Intersect(Target, rng) Is Nothing Then Exit Sub
If Target.Cells.Count > 1 Then Exit Sub
c = Target.Column - rng.Column + 1
v = Target.Value
v = IIf(IsNumeric(v), v, """" & v & """")
n = Evaluate("FILTER(" & rng.Address & ",INDEX(" & rng.Address & ",0," & c & ")=" & v & ")")
Worksheets("Sheet6").Cells.ClearContents
Worksheets("Sheet6").Range("A1").Resize(UBound(n), rng.Columns.Count).Value = n
Worksheets("Sheet6").Activate
End Sub