简体   繁体   English

MS excel单元格匹配

[英]MS excel Cells Matching

I have a column with cells which has 2 details like in this form: IMEI 1 / IMEI 2 (xxxxxxxxxxxxxxx/xxxxxxxxxxaxdcxx), separated by /. 我有一列包含单元格的列,该单元格具有以下格式的2个详细信息:IMEI 1 / IMEI 2(xxxxxxxxxxxxxxx / xxxxxxxxxxaxdcxx),以/分隔。

I have another cell with single details : IMEI 1 (xxxxxxxxxxxxxxx). 我还有一个单元格,其中有一个详细信息:IMEI 1(xxxxxxxxxxxxxxx)。

How to check if this IMEI 1 exists in the column of cells having both IMEI1/IMEI2. 如何检查同时具有IMEI1 / IMEI2的单元格列中是否存在此IMEI 1。

VLOOKUP does not help ( both exact or approximate match), provide any solution please. VLOOKUP没有帮助(精确或近似匹配),请提供任何解决方案。

Without knowing where it is, countif will do like 不知道它在哪里countif会喜欢

=COUNTIF(A:A,"*"&B1&"*")

It will be 0 if nothing is there and a number >0 shows how many times it is in the range. 如果没有任何内容,它将为0,并且数字> 0显示该数字在该范围内的次数。

Still, I assume, you need to know at which row it is. 我仍然认为,您需要知道它在哪一行。 In that case something like this will do: 在这种情况下,将执行以下操作:

=MIN(IF(ISNUMBER(FIND(B1,A:A)),ROW(A:A)))

This is an array formula and needs to be confirmed with ctrl + shift + enter . 这是一个数组公式,需要使用ctrl + shift + enter进行确认。

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM