How do I return a column value based on whether another column is within an array range - Libreoffice Calc

VLOOKUP will not work as the lookup column is right of the return column. Use INDEX/MATCH:

=INDEX(A!A:A,MATCH(A1,A!B:B))

enter image description here