[英]Using Index match with wildcards to find a partial match
I have seen this question asked before, but I could not understand the answer. 我以前曾问过这个问题,但我不明白答案。 I was hoping someone could help me with an Index match formula.
我希望有人可以通过索引匹配公式来帮助我。 with a partial match.
部分匹配。
I use this formula : 我用这个公式:
=(IFERROR(INDEX($A200$:$a$250,MATCH($A1,$B$200:$B$250,0)),""))
To find a exact match and it works very well. 找到一个精确匹配,并且效果很好。 exampel :
例子:
I want to find some data that is in an collection of data and put it next to the name on a premade sheet. 我想查找数据集合中的一些数据,并将其放在预制纸上的名称旁边。
Now my problem : In this other sheet I want to do the same, but the names have a numbers next to them like this : "John Smith 12345" There is always 5 numbers. 现在我的问题是:在另一张纸上,我也想这样做,但是名字旁边有一个数字,例如:“ John Smith 12345”总有5个数字。
The numbers are in the same cell, I could make it work with making another row of names but then I would have to maintain it as well. 这些数字在同一单元格中,我可以使其与另一行名称一起使用,但随后我也必须对其进行维护。
I would appreciate any help, thank you. 我将不胜感激,谢谢。
You could use a wildcard: 您可以使用通配符:
=(IFERROR(INDEX($A$200:$a$250,MATCH($A1&" ?????",$B$200:$B$250,0)),""))
The above will match Whatever is in A1
, followed by a space, followed by any 5 characters 上面的代码将匹配
A1
中的任何内容,后跟一个空格,后跟任意5个字符
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.