Remove Numbers from Text (Keep Letters)

Excel Formulas › Text

365 (2024+)REGEXREPLACE

Strip the digits out of a string — turn “Order123” into “Order” — for cleaning product names, categories, or labels. One regex does it; older Excel uses a longer cleanup.


Quick formula: remove all digits from A2:
=REGEXREPLACE(A2, "[0-9]", "")
[0-9] matches any digit; replacing with "" deletes them, leaving letters and symbols.

Functions used (tap for the full reference guide):

The example

Digits stripped from a code.

AB
1TextLetters only
2Order123-AOrder-A

The formula

Delete every digit:

=REGEXREPLACE(A2, "[0-9]", "") // keeps non-digit characters

How it works

A regex removes the numbers:

  1. [0-9] is the regex for any single digit.
  2. REGEXREPLACE replaces every match with "", removing all digits in one pass.
  3. To keep only digits instead, invert it: REGEXREPLACE(A2, "[^0-9]", "").
  4. No 365? Chain ten SUBSTITUTEs (one per digit), or use a SUBSTITUTE/TEXTJOIN array trick.

Pre-365 fallback: nest SUBSTITUTE(A2,"0","") through "9" — verbose but works everywhere. The regex version is far cleaner where you have it.

Try it: interactive demo

Live demo

Type text with digits.

Letters only:

Variations

Keep only digits

Invert the set:

=REGEXREPLACE(A2, "[^0-9]", "")

Letters only

Drop everything non-letter:

=REGEXREPLACE(A2, "[^A-Za-z]", "")

Pre-365 chain

Nested SUBSTITUTE for each digit.

Pitfalls & errors

365 (2024+) for REGEXREPLACE. Older Excel needs nested SUBSTITUTE.

Decimals & signs. Removing digits also breaks numbers like “3.5” into “.” — be sure you mean to strip all digits.

Result is text. Even if only digits remain, the output is text; wrap with VALUE to use it as a number.

Practice workbook

📊
Download the free Remove Numbers from Text (Keep Letters) practice workbook
A digit-stripper with keep-digits, letters-only, and fallback variants, plus 4 challenges with answers. No sign-up required.

Frequently asked questions

How do I remove numbers from text in Excel?
Use =REGEXREPLACE(A2, "[0-9]", "") to delete every digit. Requires Excel 365 (2024+); older versions chain SUBSTITUTE for each digit.
How do I keep only the numbers instead?
Invert the pattern: =REGEXREPLACE(A2, "[^0-9]", "").
How do I do this without REGEXREPLACE?
Nest SUBSTITUTE for each digit 0-9, or use the extract-numbers recipe array approach.

Stop fighting formulas. Learn them in a day.

This recipe is one of hundreds of real-world formulas we teach. Our Excel Formulas & Functions class covers lookups, logic, text, and dynamic arrays hands-on — live in Dallas–Fort Worth, Houston, Austin, Oklahoma City, Denver, or online.

See the Formulas & Functions Class

Related formulas: Extract numbers · REGEXREPLACE · Remove specific characters

Function references: REGEXREPLACE · SUBSTITUTE