Rearrange your data as shown below in the Key table. Enter your request and calculate the result in a separate table, using the formula(s) provided below.

Formula(s)
The formula used in Request is shown between the two Request tables.
LOOKUP(A1,Key::$A,Key::$B)
As can be seen, this formula returns an error message if the cell above it is empty.
Request 2 contains the same formula, enclosed in IFERROR, used as an error trap to catch the error messages above and replace them with a null string ( "" ), which gives the appearance of an empty cell.
IFERROR(LOOKUP(A1,Key::$A,Key::$B),"")
Each formula ins entered in cell A2 of its table, then filled right to the end of row 2.
All values shown in Key are entered from the keyboard.
Regarding LOOKUP:
The function browser entry for LOOKUP does mention the possibility of using a two-dimensional array for the search-where and/or the result-values, and gives illustrative examples of each. Take a close read of the description and notes if you want to use the original layout of your table.
To open the Function Browser, click on any cell in a table and type =.
Regards,
Barry