[英]Excel string parsing with random character
so, I have this string here XX.XX.XX.XX.XX.XX
所以,我在这里有这个字符串XX.XX.XX.XX.XX.XX
I have to check if some of the XX matches a pattern. 我必须检查某些XX是否匹配模式。 like 10.10.10.??.10.??
像10.10.10.??.10.??
why can't i use EXACT(cell,"10.10.10."&??&".10."&??)
为什么我不能使用EXACT(cell,"10.10.10."&??&".10."&??)
I mean, how can I tell excel I need some of the number to match, but I don't care about others? 我的意思是,我该如何告诉excel,我需要一些数字来匹配,但我不在乎其他人?
hope it's clear, I searched everywhere ._. 希望清楚,我到处搜索。
You need a function that will accept wildcards ( EXACT
doesn't). 您需要一个可以接受通配符的函数( EXACT
不能)。 Try using COUNTIF
, eg with data in cell A1
you can use this formula 尝试使用COUNTIF
,例如对于单元格A1
数据,可以使用此公式
=COUNTIF(A1,"10.10.10.??.10.??")>0
That will return TRUE
if there's a match 如果存在匹配项,则将返回TRUE
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.