Try this instead...
=SUMPRODUCT(--($D$17:$D$25=D17),--(RIGHT($J$17:$J$25,4)=RIGHT(J17,4)))>=2