Have you looked at the Match() function?
e.g. =Match(A1,Sheet2!A:A,0) will return a number if a match is found comparing A1 to Sheet2 column A. It will return N/A# if no match found.
If this doesn't work for you, you will need to give some relevant example of what you are trying to match to what.
Bookmarks