简体   繁体   中英

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:

I need to populate the value in Column D as shown in the below table:

Currently I am having values till Column 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.

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

在此处输入图片说明

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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