在一列中查找值,并在另一列中找到行中指定单元格的 return 值

Find value in one column and return value of a specified cell in the row found in another column

我有这样的东西:

我想在 E3 中 return,匹配 D3 的行的 B 的值。

=IF(A:A="D3",return the value from B from the row that matches with D3)

请使用这个公式

=INDEX(IFERROR(VLOOKUP(C2:C,A2:B,2,0)))

使用的函数: