So how did you apply the formula and how it's not working? Give us more detail.
Not sure exactly what you are after. But this returned results.
=INDEX(LookupLists!$C$2:$C$641,MATCH(1,IF(LookupLists!$A$2:$A$641=Sheet1!$C2,IF(TRIM(LookupLists!$B$2:$B$641)=Sheet1!$E2,1)),0))