=ISNUMBER(MATCH(A1,Sheet2!$D$1:$D$3,0))
Try to use this formula