I used this formula on another sheet but want to modify and use on another:=IF(ISNUMBER(MATCH(Q3,$A$2:$A$4000,0)),Q3,"")

I have another sheet I want to use this formula on, now I want to compare two columns to two columns. Basically I want to use the formula above but add an "And" function but cannot get it to work. I came up with this but it doesn't quite work - =IF(AND(ISNUMBER(MATCH('WO Operations'!A5,Schedules!$A$1:$A$4000,0)),(MATCH('WO Operations'!B5,Schedules!B5))),"",'WO Operations'!A5). I want to return 'WO Operations'!A5 if the two cells in one sheet do not match the two cells in the other. Thanks.