跳到主要內容

如何在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), 按 Enter 獲得價值的關鍵。 看截圖:
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選項卡為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