How to remove numbers from text strings in Excel?
In many cases, Excel users encounter text strings that are cluttered with unwanted numbers, which they need to remove to clean up the data. Whether you're preparing data for analysis or ensuring that your text conforms to a specific format, removing numbers can be essential. This article outlines several methods, including a straightforward formula approach, the use of Kutools for Excel and a custom VBA solution to efficiently eliminate numbers from text strings.
- Remove numbers from text strings with a formula
- Batch remove numbers from text strings with Kutools for Excel
- Remove numbers from text strings with User Defined Function
Remove numbers from text strings with a formula
For those who prefer using native Excel functions, the following array formula offers a straightforward solution. However, for those unfamiliar with Excel functions, this formula is too long and difficult to handle.
- Choose where you want to display the cleaned text, such as "C2" in this case.
- Enter the following array formula and press "Ctrl" + "Shift" + "Enter".
=TEXTJOIN("", TRUE, IF(ISNUMBER(--MID(A2, ROW(INDIRECT("1:" & LEN(A2))), 1)), "", MID(A2, ROW(INDIRECT("1:" & LEN(A2))), 1)))
In the formula, "A2" is the cell containing the text string. Please replace it with your own cell. - Select the result cell and drag its "Fill Handle" dowm to get the rest of the results.
Batch remove numbers from text strings with Kutools for Excel
If you need to remove numbers from a large number of text string cells, The "Remove Characters" feature of "Kutools for Excel" can efficiently handle this task in bulk, making it easy to clean text strings in large datasets.
Kutools for Excel - Packed with over 300 essential tools for Excel. Enjoy permanently free AI features! Download now!
- Highlight the cells that contain the text strings from which you wish to remove numbers. Go to select "Kutools" > "Text" > "Remove Characters".
- In the "Remove Characters" dialog box, select the "Numeric" option, and click "OK".
Result: All numbers are removed from selected text string cells at once.
Tip: If you need to remove numbers and other special characters from text string cells while keeping only letters, simply check the "Non-alpha" option in the "Remove Characters" dialog box and click "OK". See the screenshot below
Kutools for Excel - Supercharge Excel with over 300 essential tools. Enjoy permanently free AI features! Get It Now
Remove numbers from text strings with User Defined Function
For those who have a knack for coding, a "User Defined Function" (UDF) in VBA offers a customizable and reusable solution
- Press "Alt + F11" keys simultaneously to open the VBA editor.
- Go to "Insert" > "Module" and paste the following VBA code VBA: Remove Numbers from Text Strings in Excel
Function RemoveNumbers(Txt As String) As String With CreateObject("VBScript.RegExp") .Global = True .Pattern = "[0-9]" RemoveNumbers = .Replace(Txt, "") End With End Function
- Type the following formula in a blank cell where you want to display the cleaned text. Don't forget to substitute "A2" with the reference to your text string cell.
=RemoveNumbers(A2)
Removing numbers from text strings in Excel can be accomplished through various methods, depending on your preference for simplicity or the tools at your disposal. Each method provided in this post ensures that your text strings are cleaned efficiently, enhancing the clarity and usability of your data.
Demo: remove numbers from text strings in Excel
Related articles:
Best Office Productivity Tools
Supercharge Your Excel Skills with Kutools for Excel, and Experience Efficiency Like Never Before. Kutools for Excel Offers Over 300 Advanced Features to Boost Productivity and Save Time. Click Here to Get The Feature You Need The Most...
Office Tab Brings Tabbed interface to Office, and Make Your Work Much Easier
- Enable tabbed editing and reading in Word, Excel, PowerPoint, Publisher, Access, Visio and Project.
- Open and create multiple documents in new tabs of the same window, rather than in new windows.
- Increases your productivity by 50%, and reduces hundreds of mouse clicks for you every day!
All Kutools add-ins. One installer
Kutools for Office suite bundles add-ins for Excel, Word, Outlook & PowerPoint plus Office Tab Pro, which is ideal for teams working across Office apps.





- All-in-one suite ā Excel, Word, Outlook & PowerPoint add-ins + Office Tab Pro
- One installer, one license ā set up in minutes (MSI-ready)
- Works better together ā streamlined productivity across Office apps
- 30-day full-featured trial ā no registration, no credit card
- Best value ā save vs buying individual add-in