简体   繁体   English

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

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

Help me with the excel formula based on the below logic: 根据以下逻辑为我提供excel公式的帮助:

I need to populate the value in Column D as shown in the below table: 我需要填充D列中的值,如下表所示:

Currently I am having values till Column C 目前,我在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 

Use following formula in D1 cell. D1单元格中使用以下公式。

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

在此处输入图片说明

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

相关问题 将单行与一列比较,然后从Excel中同一行的另一列中提取值 - Compare a single row with a column and extract the value from another column on the same row in Excel 比较两列中的数据并将值提取到另一列 - Compare data in two columns and extract the value to another column Excel公式从混合列中提取文本 - Excel formula to extract text from mixed column 比较2个excel列,将结果与另一个列进行比较 - Compare 2 excel columns, the result will be compared to another column Excel公式在两列中搜索一列中的唯一值,在另一列中搜索固定值 - Excel formula to search two columns for unique value in one column and fixed value in another Excel 公式:在列中搜索另一个值(LIKE) - Excel formula: search in column by another value (LIKE) Excel 公式用于比较 2 个不同工作表中的值并粘贴另一列中的数据 - Excel formula to compare values in 2 different sheets and paste data from another column Excel公式比较两列 - Excel formula to compare two columns 如何比较两列,从 VBA 中的第 1 列中的值确定第 2 列的值,而不在第 2 列中添加公式 - How can I compare two columns, determine the value of column 2 from the value in column 1, in VBA, without adding a formula into column 2 在Excel中使用另一列中的公式 - Using a formula from another column in Excel
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM