繁体   English   中英

Excel公式比较2列并从另一列中提取值

[英]Excel formula to compare the 2 columns and extract the value from another column

根据以下逻辑为我提供excel公式的帮助:

我需要填充D列中的值,如下表所示:

目前,我在C列之前拥有值

Header        Column A   Column B   Column C       Column D
Row 2          Raj         AAA        AAA(NEW)      Vinay
Row 3          Vinay                  AAA           Vinay
Row 4          Kumar                  BBB           Kumar
Row 5          Arun                   CCC           Arun
Row 6          Ajay        DDD        DDD(NEW)      Rahul  
Row 7          Rahul                  DDD           Rahul 

D1单元格中使用以下公式。

=IFERROR(INDEX($A$2:$A$7,MATCH(B2,$C$2:$C$7,0)),A2)

在此处输入图片说明

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM