简体   繁体   中英

Excel formula to return a cell value if value is within a text string

I need a formula that finds a specific alphanumeric code within a text string with no partial match and return the value of that code in A2, see example here, sorry for the link can't post images as I don't have reputation yet, and can't figure how to insert a table here.

仅样本数据 Excel example

thanks.

In A2 and copied down to suit this formula:

  =INDEX(B:B,MATCH(RIGHT(D2,9),B:B,0))  

applied to your sample data for me returns:

在此处输入图片说明

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