You need to lock your ranges (rows only in this case) in place with $
so this should work
=LOOKUP(A12,AZ$1:AZ$10000,BA$1:BA$10000)

VLOOKUP should work also
=VLOOKUP(A12,$AZ$1:$BA$10000,2,FALSE)
Hope that helps.