KutoolsforOffice β€” One Suite. Five Tools. Get More Done.February Sale: 20% Off

How to remove numbers from text strings in Excel?

AuthorKellyLast modified

When working with Excel, it's common to encounter text strings that contain unwanted numbers mixed in with letters or other characters. Cleaning up your text by eliminating digits ensures consistency and improves readability. This guide provides a detailed walkthrough of several practical solutions, ranging from Excel formulas to a convenient Kutools for Excel utility, as well as a custom VBA User Defined Function. Each method is designed to help you efficiently strip numbers from text strings based on your preferred workflow and the size of your dataset.


Remove numbers from text strings with a formula

If you prefer solutions that rely solely on Excel's built-in functions, you can use the following array formula. This method is especially valuable for users who need a formula-based approach and want to avoid using add-ins or macros. Keep in mind, however, that such array formulas tend to be long and may seem complicated for beginners, and can be less optimal for very large datasets due to performance considerations.

  1. Select the cell where you want the cleaned text to appear, for example, cell C2.
  2. Enter the following array formula into the selected cell and press Ctrl + Shift + Enter to confirm:
    =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" refers to the cell containing your original text string. If your data is in another cell, please adjust the reference accordingly before pressing Ctrl + Shift + Enter.
  3. After applying the formula, click the result cell. Use the Fill Handle - the small square at the bottom-right corner of the cell - to drag and fill the formula down for the rest of your data range.

    a screenshot showing showing the results after applying the formula

Tips and Troubleshooting:

  • This formula is case-insensitive and will remove any digit from the text string, leaving letters and other non-digit characters intact. It will not remove spaces or punctuation - only numbers.
  • Always check the formula output for accidental formatting issues; copying and pasting the formula or dragging it across merged cells may produce unexpected errors.
  • If you see a #VALUE! error after entering the formula, double-check that you have pressed Ctrl + Shift + Enter, not just Enter.

Batch remove numbers from text strings with Kutools for Excel

When dealing with very large datasets or requiring a high level of convenience, the "Remove Characters" feature in Kutools for Excel can save significant time and effort. This automated tool allows you to delete numeric characters from multiple cells in one batch operation, offering speed and simplicity for both routine tasks and one-time cleanups. Kutools seamlessly integrates into Excel, providing an accessible interface to streamline your workflow and reduce errors associated with manual processing.

Kutools for Excel - Packed with over 300 essential tools for Excel. Enjoy permanently free AI features! Download now!

  1. First, select all cells containing text strings where you want to remove numbers.

  2. Then navigate to the Kutools tab, click "Text", and select "Remove Characters" from the dropdown menu.

  3. Within the "Remove Characters" dialog box, check the "Numeric" option. This ensures only numbers will be deleted from your text string cells. Next, click "OK" to apply the removal.

    a screenshot of configuring the Remove Characters dialog box

The result is immediate: all selected cells are cleansed of numeric characters.

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

Additional Tips:

  • If your data includes not only numbers but also symbols or other unwanted marks, you can further refine the cleanup by checking the "Non-alpha" option in the dialog. This will preserve only alphabetic characters, helping standardize text.

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

  • The last Kutools action can be undone using Excel’s Undo command. However, actions performed earlier with Kutools cannot be undone once a new operation is executed, so it’s a good practice to save your workbook before applying multiple Kutools features.

Kutools for Excel - Supercharge Excel with over 300 essential tools, making your work faster and easier, and take advantage of AI features for smarter data processing and productivity. Get It Now

Demo: remove numbers from text strings in Excel


Kutools for Excel: Over 300 handy tools at your fingertips! Enjoy AI-powered features for smarter and faster work! Download Now!

Remove numbers from text strings with User Defined Function

If you're comfortable using code, creating a VBA User Defined Function (UDF) lets you automate the removal of numbers and reuse the logic in any workbook. This method is flexible and works well for customized extraction tasks, repeated cleaning processes, or cases where formula limitations prevent batch processing.

  1. Press Alt + F11 on your keyboard to open Excel’s VBA editor.

  2. In the VBA window, go to Insert > Module. Paste the following VBA code into the module area:

    Function RemoveNumbers(Txt As String) As String
    With CreateObject("VBScript.RegExp")
    .Global = True
    .Pattern = "[0-9]"
    RemoveNumbers = .Replace(Txt, "")
    End With
    End Function
  3. Close the VBA editor and return to Excel. In a blank cell (for example, cell B2 or wherever you’d like the cleaned text), enter this formula:

    =RemoveNumbers(A2)

    Remember to replace "A2" with the cell reference containing your original text string. The UDF will then remove all numbers from the specified cell.

    a screenshot showing how to use the user-defined functiona screenshot of the results after removing numbers

Things to Keep in Mind:

  • Your workbook must be saved as macro-enabled (*.xlsm) after adding VBA code, otherwise the function will not work on reopening.
  • VBA solutions suit those looking for reusable, customized logic, but require enabling macros in Excel for security reasons.
  • If you receive an error such as #NAME?, double-check that the code has been entered and saved correctly in your VBA module, and that macros are enabled.
  • This VBA method works on both small and large datasets; you can use it in formulas and extend it to other cells as needed.

Alternative solutions: Flash Fill and Text to Columns

For quick, visual manual cleanup - especially when data structure is predictable - Excel provides Flash Fill and Text to Columns, which are useful for simple cases or data preparation:

  • Flash Fill: Type the desired result (with numbers removed) next to your original cell, then press Ctrl + E to auto-fill similar transformations. This is ideal if the removal pattern is consistent and easy to identify. For more details, see Flash Fill in Excel.
  • Text to Columns: If numbers always appear in the same position or are separated by delimiters, you can use Data > Text to Columns to split columns and then combine only the non-number parts. This approach works best for structured data, such as codes or labels. For more details, see How to separate text and numbers from one cell into two columns.
Each method above has its own strengths; formula and VBA approaches allow for automation, while Kutools offers efficiency and ease of use in bulk operations. Manual tools like Flash Fill are best for smaller, visually manageable datasets or quick fixes.

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.

ExcelWordOutlookTabsPowerPoint
  • 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