简体   繁体   中英

if Column A cell matches Column B cell, display column C value of same row as column B

if Column A cell matches Column B cell, display column C value of same row as column B

ColumnA in first excel file

liu.weio@xy.com
tonny@ab.com
wong@ab.com
might@ab.com
daniel@ab.com.br
user@ab.com.br
random@ab.com
Any@ab.com

ColumnB, ColumnC in second excel file

liu.weio@xy.com, US
tonny@ab.com, FR
wong@ab.com, IN
might@ab.com, JP
daniel@ab.com.br, CH
user@ab.com.br, AU
random@ab.com, RU
Any@ab.com, DE
extra@ab.com, PL
EXTRA1@av.com, RU

Expected result in first excel as Column A and Column B

liu.weio@xy.com, US
tonny@ab.com, FR
wong@ab.com, IN
might@ab.com, JP
daniel@ab.com.br, CH
user@ab.com.br, AU
random@ab.com, RU
Any@ab.com, DE

I tried with vlookup but not working with 3 columns

Try:

=IF(A1<>"",IF(A1=LEFT(B1,LEN(A1)),B1,""),"")

在此输入图像描述

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