简体   繁体   English

在包含以逗号分隔的多个值的 excel 单元格中查找 ID

[英]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.我试图在 excel 单元格中找到一个 ID,但该单元格包含可能包含一个或多个值(用逗号分隔),我使用了以下公式,但问题是仅验证单元格中的第一个值忽略rest (如果单元格包含多个值,甚至忽略第一个,因为它旁边有逗号)返回不正确的结果,其中要查找的实际值是另一个 position 而不是第一个。

Current formula --> =NOT(ISERROR(MATCH(B2,A:A,0)))当前公式 --> =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 ExcelJet:单元格包含特定文本

Example Table with Formula带有公式的示例表

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Vlookup求和一个包含逗号分隔值的单元格 - Vlookup and sum one cell containing comma separated values Excel UDF-在单元格中对数字和文本进行排序,并以逗号分隔 - Excel UDF - sort numbers and text separated by comma within a cell 动态查找单元格中的多个值(逗号分隔)并将相应的 ID 返回到单个单元格(逗号分隔) - Dynamic Lookup for multiple values in a cell (comma separated) and return the corresponding ID to a single cell (comma separated also) 如何计算逗号,另一个单元格Excel中的所有列中的分隔值? - How To Count comma, another cell Separated Values In all Column In Excel? 以逗号分隔的列表显示Excel单元格值 - Displaying Excel cell values in a comma-separated list excel-如何在Excel中将单元格值转换为逗号分隔值? - How to convert the cell values in comma separated value in excel? 如何在Excel中的相同/单个单元格中将逗号分隔的值替换为逗号分隔的ID? - How to replace comma separated values to comma separated ids in the same/individual cell in excel? Excel COUNTIF 用于逗号分隔值 - Excel COUNTIF for comma separated values 从 Excel 中包含逗号分隔值的两个单元格中提取公共值 - Extracting common values from two cells containing comma-separated values in Excel VBA用于获取由逗号与其他单元格分隔的单元格中的MATCH值 - VBA to get MATCH values within a cell separated by comma from other cell
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM