Use VLOOKUP with IFERROR .
=IFERROR(VLOOKUP(A1, Sheet1!A:B, 2, 0), "")
This will do what you described (well described, by the way!) In your question. Drag the formula down in Sheet2 to the bottom.
VLOOKUP takes the value A1 in sheet 2 (without reference to the sheet, because the value is on the same sheet as the formula) and looks at it in column A Sheet1 .
Returns the second value (therefore, why 2 ) of the table selected in the formula (column A is 1, column B is 2).
0 tells VLOOKUP to search for exact matches. Here you do not need an approximate match.
And IFFERROR exists if VLOOKUP does not find anything (for example, with ada ) and instead of providing #N/A returns an empty cell "" .
Jerry source share