Try adding this code to the Sheet1 tab in the VBA editor and saving the workbook in .xlsm format.
Private Sub Worksheet_Change(ByVal Target As Range)
Dim Cell As Range
For Each Cell In Target
If Cell.Column = 2 Then
If UCase(Cells(Cell.Row, 5)) Like "*BRG*" Then
If WorksheetFunction.CountIf(Sheet2.Columns(1), Cell) = 0 Then
Sheet2.Cells(Rows.Count, 1).End(xlUp).Offset(1, 0) = Cell
End If
End If
End If
If Cell.Column = 5 Then
If UCase(Cell) Like "*BRG*" Then
If WorksheetFunction.CountIf(Sheet2.Columns(1), Cells(Cell.Row, 2)) = 0 Then
Sheet2.Cells(Rows.Count, 1).End(xlUp).Offset(1, 0) = Cells(Cell.Row, 2)
End If
End If
End If
Next Cell
End Sub
Bookmarks