I just drop by and saw this. I've notice there's some typo and mismatch in john formula. Since most search feature are case sensitive, text like CAMPBELL SOUP COMPANY may not be detected by the search/find feature. Maybe you can try using this as formula.
=IF(OR(ISNUMBER(SEARCH("(Y)",F2)),ISNUMBER(SEARCH("(Y1)",F2))),"NT-BDEALER","NON NT-BDEALER")
Or this formula if you have a fixed search text range containing (Y) or (Y1) which in my case is K2:K3
=IF(SUMPRODUCT(--ISNUMBER(SEARCH($K$2:$K$3,F2)))>0, "NT-BDEALER", "NON NT-BDEALER")
Final VBA code with thanks to sintek
Sub J3v16()
With Sheets("Master_Data").Cells(1).CurrentRegion.Resize(, 24)
.Cells(1, 22).Resize(, 3) = Array("Date", "Name", "ISIN code")
With .Offset(1).Resize(.Rows.Count - 1)
.Columns(7).Formula = "=IF(OR(ISNUMBER(SEARCH(""(Y)"",F2)),ISNUMBER(SEARCH(""(Y1)"",F2))),""NT-BDEALER"",""NON NT-BDEALER"")"
.Columns(22).Resize(, 3).Formula = Array("=TODAY()-5", "=IFERROR(VLOOKUP(J2,vlookup!A:B,2,0),"""")", "=E2")
End With
.Columns.AutoFit
End With
End Sub
Bookmarks