Test the MATCH like this:
=IF(ISNA(MATCH($B3,Sheet1!AF$1:AF$32,0),"",INDEX(Sheet1!$AE$1:$AE$31,MATCH($B3,Sheet1!AF$1:AF$32,0)))
BTW, I have added the 3rd argument of 0 in MATCH ... to look for exact match.
Cheers, Glenn.
Did you hear about the literalist show-jumper? He broke his nose jumping against the clock.