将一列中的每个值匹配到另一列,并在 excel 中插入第三列中的值

Match each value from one column to another column and insert value from third column in excel

I want to match each value from column H with column R if it is found then I want to return the value of column Q next to that R.

> 使用的公式:

=INDEX($Q:$Q003,MATCH(TRUE,EXACT(R2,$H:$H003),0))

2nd Picture

> 说明

H 列具有重复值,而 R 列具有 H 列的所有唯一值。

我已将公式更改为:

=INDEX($R:$R69, MATCH(H2,$S:$S69))

此外,我按字母顺序 A 到 Z 对 R 和 S 列进行了排序。 而且效果很好。

New image of the data