简体   繁体   中英

Find ID within an excel cell containing multiples values separated by comma

I'm trying to find an ID within an excel cell but this cell contains might contain one or multiples values (separated by comma), I've used the following formula but the problem is that only validates against the first value in the cell ignoring the rest (even ignoring the first one if the cell contains multiple values, due to comma next to it) which return incorrect results where the actual value to look for is an another position rather than the first one.

Current formula --> =NOT(ISERROR(MATCH(B2,A:A,0)))

Hope you can help. Thanks.

Example tables在此处输入图像描述 在此处输入图像描述

Here is another method that seems to work based on your description. ExcelJet: Cell contains specific text

Example Table with Formula

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