@Frank Bacchus
I am not sure why you would use a complex formula like,
=IFERROR(IF(ISBLANK(A2),"NO",LOOKUP(2^15,SEARCH($H$1:$H$366,B2),$I$1:$I$366)),"YES")
When the obvious one is better -
=VLOOKUP(B2,$I$1:$J$366,2,FALSE)
That said, the reason for your error is below:
SEARCH formula...