跳到主要内容

如何在Excel中查找部分字符串匹配?

例如,有一系列数据,E列是学生的姓名列表,F列和G列是学生的班级和年级,H列是学生分数的排名,现在您已经名称“ Jack”(即“ Jacky”的部分字符串),如何快速查找部分字符串匹配项并返回“ Jacky”的排名,如下图所示。
doc查找部分字符串1

VLOOKUP Excel中的部分字符串匹配


箭头蓝色右气泡 VLOOKUP Excel中的部分字符串匹配

在这里,我有一些公式可以帮助您在Excel中查找部分字符串匹配。

1.选择一个空白单元格以输入要查找的部分字符串。 看截图:
doc查找部分字符串2

2.选择另一个要在其中放置查找值的单元格,然后输入此公式 = VLOOKUP($ K $ 1&“ *”,$ E $ 1:$ H $ 14,4,FALSE), 按 输入 获得价值的关键。 看截图:
doc查找部分字符串3

提示:

1.在公式中,K1是包含部分字符串的单元格,E1:H14是数据范围,4表示对该范围的第四列中的查找值。 您可以根据需要更改它们。

2.如果只想查找与给定名称部分匹配的名称,则也可以使用此公式 =INDEX($E$2:$E$14,MATCH($K$1&"*",E2:E14,0))。 (E2:E14是要从中查找的列列表,k1是给定名称,可以根据需要进行更改。)
doc查找部分字符串4


在多个工作表或工作簿中查找值

通常,Excel中的LOOKUP函数仅支持在活动工作表或活动工作簿中查找值,有时,您可能希望跨多个工作表查找。 的 在多个工作表中查找 Kutools for Excel 会对你有利。  点击即可获得 30 天的免费全功能试用!
doc转换日期
 
Kutools for Excel:拥有300多个便捷的Excel加载项,可以在30天内免费试用。

最佳办公生产力工具

🤖 Kutools 人工智能助手:基于以下内容彻底改变数据分析: 智能执行   |  生成代码  |  创建自定义公式  |  分析数据并生成图表  |  调用 Kutools 函数...
热门特色: 查找、突出显示或识别重复项   |  删除空白行   |  合并列或单元格而不丢失数据   |   不使用公式进行四舍五入 ...
超级查询: 多条件VLookup    多值VLookup  |   跨多个工作表的 VLookup   |   模糊查询 ....
高级下拉列表: 快速创建下拉列表   |  依赖下拉列表   |  多选下拉列表 ....
列管理器: 添加特定数量的列  |  移动列  |  切换隐藏列的可见性状态  |  比较范围和列 ...
特色功能: 网格焦点   |  设计图   |   大方程式酒吧    工作簿和工作表管理器   |  资源库 (自动文本)   |  日期选择器   |  合并工作表   |  加密/解密单元格    按列表发送电子邮件   |  超级筛选   |   特殊过滤器 (过滤粗体/斜体/删除线...)...
前 15 个工具集12 文本 工具 (添加文本, 删除字符,...)   |   50+ 图表 类型 (甘特图,...)   |   40+ 实用 公式 (根据生日计算年龄,...)   |   19 插入 工具 (插入二维码, 从路径插入图片,...)   |   12 转化 工具 (小写金额转大写, 货币兑换,...)   |   7 合并与拆分 工具 (高级组合行, 分裂细胞,...)   |   ... 和更多

使用 Kutools for Excel 增强您的 Excel 技能,体验前所未有的效率。 Kutools for Excel 提供了 300 多种高级功能来提高生产力并节省时间。  单击此处获取您最需要的功能...

产品描述


Office Tab 为 Office 带来选项卡式界面,让您的工作更加轻松

  • 在Word,Excel,PowerPoint中启用选项卡式编辑和阅读,发布者,Access,Visio和Project。
  • 在同一窗口的新选项卡中而不是在新窗口中打开并创建多个文档。
  • 每天将您的工作效率提高50%,并减少数百次鼠标单击!
Comments (8)
No ratings yet. Be the first to rate!
This comment was minimized by the moderator on the site
I have a scenario to match two column values.

col1 col2
abc-1 abc
def xyz
xyz-1 def
tnt-1 mno
mno-1 tnt

so i would like match the column values partially(eliminate '-1' and match the remaining part).

please advise.

Cheers,
PY
This comment was minimized by the moderator on the site
Re Shakira and Alice's question above - a simple workaround is just to use TRUNC of LEFT formula to truncate the first list. You could shorten it to 8 characters to limit the first list to LOGITECH or even less to cover shorter company names too...
This comment was minimized by the moderator on the site
Would be very helpful if there was a answer to Shakira's question. I have the same issue
This comment was minimized by the moderator on the site
Hi all,
Could you reply to Shakiras comments please. I have the same issue here and I cannot seem to find a feasible solution unless I create a real complex formula which involves creating unnecessary columns.
Thank you!
This comment was minimized by the moderator on the site
Hello.

I was wondering if there's a way to perform the VLOOKUP in the other way around, given that the lookup value may contain more characters than the return value. For example, in your example above, say you have Jacky as the lookup value and Jack in the list, and you want to return all similar names to Jacky. I have a list in which this case is present many times. My lookup value in the first list is a company called logitech europe s.a. and the name on the second list is simply logitech.

Thanks in advance!
This comment was minimized by the moderator on the site
I can't thank you enough, the =INDEX($E$2:$E$14,MATCH($K$1&"*",E2:E14,0)) is a real lifesaver
This comment was minimized by the moderator on the site
I wish you would show us where to find it in Kutools. Great tool when you can find what you need
This comment was minimized by the moderator on the site
Hi, KHill, so far, there is no a featrue in Kutools for Excel can lookup partial match, but soon, we will release some new features about vlook in new version of Kutools, you can try them then.
There are no comments posted here yet
Please leave your comments in English
Posting as Guest
×
Rate this post:
0   Characters
Suggested Locations