簡體   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