简体   繁体   English

寻找一个公式来在 Excel 中的两列中查找相似的名称

[英]Looking for a formula to lookup similar names within two columns in Excel

I have two lists of Company Names.我有两个公司名称列表。 List A is longer than List B. For example, "Bob's Inc."列表 A 比列表 B 长。例如,“Bob's Inc.” in List A may be "Bobs Incorporated" in List B, or even "Bo.b's Company" Both lists may have the longer or the shorter name. List A 中的可能是 List B 中的“Bobs Incorporated”,甚至是“Bo.b's Company”。这两个列表的名称都可能更长或更短。 I can't make one formula per company, otherwise I would do something like VLOOKUP(" "&Bob&" "...)我不能为每个公司制定一个公式,否则我会做类似 VLOOKUP(" "&Bob&" "...)

I was thinking of doing the similar lookup twice, once for the longer list and once for the shorter list, where we would cover the problem of the differing names.我正在考虑进行两次类似的查找,一次是针对较长的列表,一次是针对较短的列表,我们将在其中解决不同名称的问题。 However, I am getting the incorrect company name as an output.但是,我得到了错误的公司名称作为输出。 Any help is appreciated!任何帮助表示赞赏!

I don't clearly understand your objective, if you want to search on List A and if your value isn't then you look up on List B: you may try with nested IFERROR我不太清楚你的目标,如果你想在列表 A 上搜索,如果你的值不是,那么你在列表 B 上查找:你可以尝试使用嵌套的 IFERROR

IFERROR(VLOOKUP("bob's Inc";List_A;col_index;false);IFERROR(VLOOKUP("Bobs Incorporated";List_B;col_index;false);"Not found")

If value isn't found it goes to "error" argument which is other VLOOKUP.如果未找到值,则转到“错误”参数,即其他 VLOOKUP。 You could search on more List/tables/ranges with more nested IFERROR.您可以使用更多嵌套的 IFERROR 搜索更多列表/表格/范围。

I hope it meets your needs.我希望它满足您的需求。

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

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