Okay.. try using below formula:-

Formula: copy to clipboard
=IF(ISERROR(MATCH($A3,HLOOKUP(D$1,Sheet2!$1:$4,{2,3,4},0),0)),"",1)


Enter this using ctrl shift enter key combination.. thanks.


example(1).xlsx

Regards,
DILIPandey
<click on below * if this helps>