Skip to main content

Kutools for Office — One Suite. Five Tools. Get More Done.

How to remove numbers from text strings in Excel?

Author Kelly Last modified

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

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.

  1. Choose where you want to display the cleaned text, such as "C2" in this case.
  2. 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)))
    a screenshot showing how to use the formula
    In the formula, "A2" is the cell containing the text string. Please replace it with your own cell.
  3. Select the result cell and drag its "Fill Handle" dowm to get the rest of the results.
    a screenshot showing showing the results after applying the formula

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!

  1. Highlight the cells that contain the text strings from which you wish to remove numbers. Go to select "Kutools" > "Text" > "Remove Characters".
  2. In the "Remove Characters" dialog box, select the "Numeric" option, and click "OK".
    a screenshot of configuring the Remove Characters dialog box

Result: All numbers are removed from selected text string cells at once.

a screenshot showing the original text string and the result string after deleting numbers

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

a screenshot of removing numbers and other special marks from the text string by checking the Non-alpha box

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

  1. Press "Alt + F11" keys simultaneously to open the VBA editor.
  2. 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
  3. 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)
    a screenshot showing how to use the user-defined functiona screenshot of the results after removing numbers

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

 

Kutools for Excel: Over 300 handy tools at your fingertips! Enjoy permanently free AI features! Download Now!

Related articles:


Best Office Productivity Tools

šŸ¤– Kutools AI Aide: Revolutionize data analysis based on: Intelligent Execution   |  Generate Code  |  Create Custom Formulas  |  Analyze Data and Generate Charts  |  Invoke Kutools Functions…
Popular Features: Find, Highlight or Identify Duplicates   |  Delete Blank Rows   |  Combine Columns or Cells without Losing Data   |   Round without Formula ...
Super Lookup: Multiple Criteria VLookup    Multiple Value VLookup  |   VLookup Across Multiple Sheets   |   Fuzzy Lookup ....
Advanced Drop-down List: Quickly Create Drop Down List   |  Dependent Drop Down List   |  Multi-select Drop Down List ....
Column Manager: Add a Specific Number of Columns  |  Move Columns  |  Toggle Visibility Status of Hidden Columns  |  Compare Ranges & Columns ...
Featured Features: Grid Focus   |  Design View   |   Big Formula Bar    Workbook & Sheet Manager   |  Resource Library (Auto Text)   |  Date Picker   |  Combine Worksheets   |  Encrypt/Decrypt Cells    Send Emails by List   |  Super Filter   |   Special Filter (filter bold/italic/strikethrough...) ...
Top 15 Toolsets12 Text Tools (Add Text, Remove Characters, ...)   |   50+ Chart Types (Gantt Chart, ...)   |   40+ Practical Formulas (Calculate age based on birthday, ...)   |   19 Insertion Tools (Insert QR Code, Insert Picture from Path, ...)   |   12 Conversion Tools (Numbers to Words, Currency Conversion, ...)   |   7 Merge & Split Tools (Advanced Combine Rows, Split Cells, ...)   |   ... and more
Use Kutools in your preferred language – supports English, Spanish, German, French, Chinese, and 40+ others!

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.

Excel Word Outlook Tabs PowerPoint
  • 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