跳到主要內容

如何從Excel中的多個單元格刪除前綴/後綴?

作者:小陽 最後修改時間:2024-07-19

Sometimes, you may need to clean up data in Excel by removing prefixes or suffixes from multiple cells. Whether it’s for data consistency or formatting, removing these extra characters can help you standardize your dataset efficiently. In this guide, we'll explore two straightforward methods to achieve this task.

screenshot of removing prefix suffix 1

使用公式從多個單元格中刪除前綴或後綴

If you prefer using Excel formulas to remove prefixes or suffixes, Excel provides versatile functions for this purpose. By utilizing functions such as LEFT, RIGHT, and LEN, you can extract the desired parts of your text data.

Remove prefix from cells

The formula provided in this section can be used to remove the same number of prefix,such as the first three characters from specified cells. Please do as follows.

Select a blanl cell, enter the following formula and press Enter。 選擇該結果儲存格並將其拖曳 填充手柄 下來得到其餘的結果。

=RIGHT(A2,LEN(A2)-3)
screenshot of removing prefix with formula
Remove suffix from cells

To remove suffix such as the last three characters from cells, try the following formula.

Select a blanl cell, enter the following formula and press Enter。 選擇該結果儲存格並將其拖曳 填充手柄 下來得到其餘的結果。

=LEFT(A2,LEN(A2)-3)
screenshot of removing suffix with formula
筆記:In these two formulas
  • A2 is the cell reference where the text you want to manipulate is located. You can change this reference to point to any cell that contains the text you need to edit.
  • -3 represents the number of characters you will remove either from the beginning or the end of the text. If you need to remove a different number of characters, simply replace 3 with the desired number.

Easily remove prefix or suffix from cells with Kutools for Excel

For a quicker and more user-friendly approach, Excel的Kutools offers a powerful tool to remove prefixes and suffixes with just a few clicks. This method is ideal if you want to simplify the process without dealing with complex formulas.

下載並安裝 Kutools for Excel 後點擊此處成為Trail Hunter 庫工具 > 文本 > 按位置刪除 打開 按位置刪除 dialog box. Then you need to configure as follows:

  1. Select the range of cells from which you want to remove the prefix or suffix.
  2. Input the number of characters to be removed in the 聯繫電話 文本框。
  3. Specify whether you want to remove the prefix or suffix in the 位置 部分
    Remove the prefix,選擇 從左起 選項
    Remove the suffix,選擇 從右邊 選項
  4. 點擊 OK
    screenshot of removing prefix and suffix with Kutools
結果

Then, the specified number of prefix or suffix characters will be removed from each cell in the selected range.

result of removing prefix and suffix with Kutools
備註: 要使用此功能,您應該擁有 Excel的Kutools 安裝在您的計算機上。 去下載 Kutools for Excel 以獲得 30 天免費試用,無任何限制.

使用Kutools for Excel從多個單元格中刪除前綴或後綴

 Excel的Kutools:具有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 (11)
No ratings yet. Be the first to rate!
This comment was minimized by the moderator on the site
DELETE - 100 ML (100) I WANT TO ONLY 100 ML
This comment was minimized by the moderator on the site
Thanks. This is good.
This comment was minimized by the moderator on the site
Really helpful
Thank You
This comment was minimized by the moderator on the site
really helpful. thanks!!!
This comment was minimized by the moderator on the site
How do I get the value 1234 for a cell 0001 2314 2571 1234 9874? Please assist on this.
There are no comments posted here yet
Load More
Leave your comments
Posting as Guest
×
Rate this post:
0   Characters
Suggested Locations