ExcelReady
CourseMock testsFunction guidesBlog
Start freeStart learning for free
ExcelReady

Be Excel-ready before day one. Hands-on practice in your browser, with instant feedback.

Learn

  • Course
  • Mock tests
  • Function guides
  • Blog

Test prep

  • Excel level test
  • Excel test practice
  • Free screening quiz
  • Certificate

Company

  • About
  • Editorial policy
  • Contact
  • Terms
  • Privacy

© 2026 ExcelReady. All rights reserved.

  1. Blog
  2. Text
  3. How to Remove Numbers From Text in Excel

How to Remove Numbers From Text in Excel

By ExcelReady Team·Updated November 2, 2026·6 min read

The short answer

To remove numbers from text in Microsoft 365, split the text into characters and keep only the non-digits: =TEXTJOIN("",TRUE,IF(ISERR(--MID(A2,SEQUENCE(LEN(A2)),1)),MID(A2,SEQUENCE(LEN(A2)),1),"")). In any Excel version, nest ten SUBSTITUTE functions, one for each digit from 0 to 9. Wrap the result in TRIM to remove leftover spaces.

Key takeaways

  • Excel has no single remove-digits function in most versions, so you either test each character or substitute each digit.
  • TEXTJOIN with MID and SEQUENCE keeps every character that isn't a digit (Excel 2021 or Microsoft 365).
  • Ten nested SUBSTITUTE functions work in every version, including Excel 2010.
  • Wrap the result in TRIM, because removing numbers often leaves double or trailing spaces.
  • Flash Fill and Find and Replace work for one-off jobs but don't update when the data changes.
On this page+
  1. Which method should you use?
  2. Remove numbers with TEXTJOIN and MID (Microsoft 365)
  3. Remove numbers in any Excel version with SUBSTITUTE
  4. Remove numbers without a formula
  5. Remove numbers only from the start or end
  6. Clean up spaces and separators left behind
  7. Practise it

To remove numbers from text in Excel, you need a formula that throws away every digit and keeps everything else, because most versions of Excel have no single "remove digits" function. In Excel 2021 or Microsoft 365, a TEXTJOIN formula does it in one cell. In any version, ten nested SUBSTITUTE functions do the same job. This guide shows both, plus quick no-formula options and how to clean up the spaces left behind.

Which method should you use?#

Pick the method by your Excel version and whether the data will change. All the examples use this list of names with customer numbers mixed in:

AB
1Raw entryClean name
2Maria Lopez 2041Maria Lopez
33307 James OkaforJames Okafor
4Chen Wei 88Chen Wei
5Aisha Bello 5120Aisha Bello
661 Tom ReyesTom Reyes
MethodWorks inUpdates automatically?Best for
TEXTJOIN + MID + SEQUENCEExcel 2021, Microsoft 365YesAny text, any number of digits
Nested SUBSTITUTEEvery versionYesOlder Excel, shared files
Flash FillExcel 2013 and laterNoA quick one-off list
Find and ReplaceEvery versionNoFixing data in place

If you need the opposite, keeping the numbers and removing the letters, see how to extract numbers from text.

Remove numbers with TEXTJOIN and MID (Microsoft 365)#

This formula checks each character and keeps it only if it isn't a digit. In B2:

Excel formula
=TRIM(TEXTJOIN("",TRUE,IF(ISERR(--MID(A2,SEQUENCE(LEN(A2)),1)),MID(A2,SEQUENCE(LEN(A2)),1),"")))

The result is Maria Lopez. Fill it down (Windows: Ctrl+D; Mac: ⌘D) and every row loses its number. SEQUENCE needs Excel 2021 or Microsoft 365.

How the formula works#

Read it from the inside out:

  1. LEN(A2) counts the characters: 16 for "Maria Lopez 2041".
  2. SEQUENCE(16) makes the list 1, 2, 3 … 16, one position per character.
  3. MID(A2, SEQUENCE(16), 1) takes one character from each position, so you get "M", "a", "r" and so on. The MID function guide explains its three arguments.
  4. -- tries to turn each character into a number. Digits become numbers; letters and spaces become #VALUE! errors.
  5. ISERR(...) is TRUE for the errors, which are the characters you want to keep.
  6. IF returns the character when ISERR is TRUE, and an empty string "" for each digit.
  7. TEXTJOIN("",TRUE, ...) joins the kept characters with no separator and skips the empty ones. See the TEXTJOIN function guide.
  8. TRIM removes the trailing space left where " 2041" used to be.

In Excel 2019, which has TEXTJOIN but not SEQUENCE, swap SEQUENCE(LEN(A2)) for ROW(INDIRECT("1:"&LEN(A2))) and confirm the formula with Ctrl+Shift+Enter.

Some current Microsoft 365 versions also include REGEXREPLACE, which can do this in one short step: =REGEXREPLACE(A2,"[0-9]",""). If your Excel shows #NAME? for it, use the TEXTJOIN formula instead.

Remove numbers in any Excel version with SUBSTITUTE#

SUBSTITUTE replaces one piece of text with another. Replace a digit with "" (nothing) and it disappears. Nest ten of them to cover 0 to 9:

Excel formula
=TRIM(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(A2,"0",""),"1",""),"2",""),"3",""),"4",""),"5",""),"6",""),"7",""),"8",""),"9",""))

It looks long, but it's ten copies of the same step. The innermost SUBSTITUTE removes every 0, the next removes every 1, and so on. For "3307 James Okafor", the result is James Okafor. This works in every version of Excel, including Excel 2010, so it's the safe choice for files you share widely.

SUBSTITUTE replaces every copy of the digit, not just the first. The SUBSTITUTE function guide covers its optional fourth argument, which replaces only one occurrence. The same idea removes any other unwanted character, as shown in how to remove characters in Excel.

Remove numbers without a formula#

For a one-off clean-up, you can skip formulas.

Flash Fill copies a pattern you type:

  1. In B2, type the clean version by hand: Maria Lopez.
  2. In B3, start typing James. Excel suggests the rest of the column in grey.
  3. Press Enter to accept, or use Data > Flash Fill (Windows: Ctrl+E).

Check a few rows, because Flash Fill guesses the pattern and can get unusual entries wrong.

Find and Replace changes the cells in place. Excel's wildcards (* and ?) match any character, not only digits, so you must replace each digit separately:

  1. Select the column and press Ctrl+H (Mac: Control+H).
  2. Type 0 in Find what, leave Replace with empty, and click Replace All.
  3. Repeat for 1 to 9.

Both methods give fixed values. If the source data changes, the results don't update.

Remove numbers only from the start or end#

When the number sits at one end, separated by a space, a shorter formula is enough. In Microsoft 365 or Excel 2024:

TextFormulaResult
Maria Lopez 2041=TEXTBEFORE(A2," ",-1)Maria Lopez
3307 James Okafor=TEXTAFTER(A3," ")James Okafor

TEXTBEFORE with -1 keeps everything before the last space. TEXTAFTER keeps everything after the first space. In older versions, =MID(A3,FIND(" ",A3)+1,LEN(A3)) removes a leading number and its space. When the number always has the same length, LEFT, RIGHT and LEN work too; see how to remove the first characters.

Clean up spaces and separators left behind#

Removing digits often leaves spaces or symbols that the digits were attached to. Plan for it:

  • Double and trailing spaces. "Room 12 B" becomes "Room B" with two spaces. TRIM fixes this. The guide on how to remove spaces in Excel covers non-breaking spaces that TRIM can't see.
  • Separators. "INV-2026-0042" becomes "INV--". Add one more SUBSTITUTE to remove the hyphens.
  • Line breaks. Imported text may hide line breaks between the name and the number. Remove them first, as shown in how to remove line breaks.
  • Decimal points and signs. The formulas remove digits only, so "Size 7.5" becomes "Size ." Remove the full stop too if it doesn't belong.

When you're happy with the clean column, copy it and use Paste Special > Values to replace the formulas with plain text.

Practise it#

Text clean-up is one of the most common real tasks in Excel, and it shows up in data-entry and analyst tests. Practise cleaning messy text in a live spreadsheet with TRIM and SUBSTITUTE, then practise LEFT, RIGHT, MID and LEN to split text by position. To get comfortable with SEQUENCE and the other new functions, try the modern Excel functions lesson. Each one checks your formula as you type. Then try the exercise on this page.

Try it yourself

This is a live spreadsheet. Type the formula in the green cell and press Enter.

The names in column A have customer numbers mixed in. Click B2 and type =TRIM(TEXTJOIN("",TRUE,IF(ISERR(--MID(A2,SEQUENCE(LEN(A2)),1)),MID(A2,SEQUENCE(LEN(A2)),1),""))) to keep only the letters and spaces, then press Enter.

fx
ABCD
1
Raw entry
Clean name
2
Maria Lopez 2041
3
3307 James Okafor
4
Chen Wei 88
5
Aisha Bello 5120
6
61 Tom Reyes
7
8
9

Tip: MID splits the text into single characters. --MID turns digits into numbers and everything else into an error, so ISERR is TRUE for the characters you keep.

Practise this in a lesson

LessonCleaning messy textFix stray spaces, random capitals and inconsistent separators in imported data with TRIM, PROPER, UPPER, LOWER and SUBSTITUTE.LessonLEFT, RIGHT, MID and LENSplit product codes and IDs into their parts by taking characters from the start, end or middle of the text.LessonModern Excel: XMATCH, SORTBY, TEXTSPLIT and spill references (A2#)Split names with TEXTSPLIT, find positions with XMATCH, sort by another column with SORTBY, and refer to a whole spilled result with A2#.Function guideSUBSTITUTESwap or strip characters with Excel's SUBSTITUTE: clean phone numbers, change one occurrence and count characters with LEN. Practice it live.Function guideMIDPull characters from any position with Excel's MID. Extract IDs, email domains and text between brackets with FIND. Examples and live practice.Function guideTEXTJOINJoin cells with commas, spaces or semicolons using TEXTJOIN, and skip blanks automatically. Examples, pitfalls and a live exercise.

Frequently asked questions

How do I remove numbers from a text string in Excel?

+

In Microsoft 365, use =TEXTJOIN("",TRUE,IF(ISERR(--MID(A2,SEQUENCE(LEN(A2)),1)),MID(A2,SEQUENCE(LEN(A2)),1),"")). In older versions, nest SUBSTITUTE ten times to replace each digit from 0 to 9 with nothing.

Can Find and Replace remove all numbers in Excel?

+

Not in one step. Excel's Find and Replace only knows the wildcards * and ?, which match any character, not just digits. You can replace 0, then 1, and so on up to 9, which takes ten passes.

How do I remove numbers but keep the spaces between words?

+

Remove the digits first, then wrap the formula in TRIM. TRIM removes spaces at the start and end and turns double spaces into single ones, so Maria Lopez 2041 becomes Maria Lopez.

How do I remove only the numbers at the end of text?

+

If a space separates the number, use =TEXTBEFORE(A2," ",-1) in Microsoft 365, which keeps everything before the last space. In older versions, use LEFT with FIND to cut at the space.

Is there a formula to remove numbers in Excel 2016?

+

Yes. Nest SUBSTITUTE ten times, once for each digit: =SUBSTITUTE(SUBSTITUTE(A2,"0",""),"1","") and so on up to 9. It works in every version of Excel.

Sources

  • TEXTJOIN function - Microsoft Support
  • SUBSTITUTE function - Microsoft Support
  • MID, MIDB functions - Microsoft Support

Written and checked by the ExcelReady Team. First published November 2, 2026. The practice exercise runs in the same formula engine as our lessons. Found a mistake? Read our editorial policy or email hello@excelready.app.

On this page

  1. Which method should you use?
  2. Remove numbers with TEXTJOIN and MID (Microsoft 365)
  3. Remove numbers in any Excel version with SUBSTITUTE
  4. Remove numbers without a formula
  5. Remove numbers only from the start or end
  6. Clean up spaces and separators left behind
  7. Practise it

Keep reading

Text· 6 min read

Extract Numbers From Text in Excel

To extract a number from text in Excel, cut it out with a text function and convert it with VALUE. For a number after a dash, use =VALUE(RIGHT(A2,LEN(A2)-FIND("-",A2))), or =VALUE(TEXTAFTER(A2,"-")) in Microsoft 365. Use LEFT for numbers at the start and MID for numbers in the middle. VALUE turns the result into a real number.

Text· 6 min read

How to Remove Spaces in Excel (Extra, Leading, All)

To remove extra spaces in Excel, use =TRIM(A2). It deletes spaces at the start and end and turns double spaces between words into single ones. To remove every space, use =SUBSTITUTE(A2," ",""). If spaces survive both, they are non-breaking spaces from the web: use =TRIM(SUBSTITUTE(A2,CHAR(160)," ")).

Text· 6 min read

How to Remove Characters From Text in Excel

To remove a specific character, use SUBSTITUTE to replace it with nothing: =SUBSTITUTE(A2,"-","") strips every dash. To remove characters by position, use RIGHT(A2,LEN(A2)-3) to drop the first three, or LEFT(A2,LEN(A2)-2) to drop the last two. To remove everything after a character, use TEXTBEFORE or LEFT with FIND.

More on text

  • Remove Text After a Character in Excel (Keep the Start)
  • REPT in Excel: Simple In-Cell Bar Charts
  • Sort by Last Name in Excel When Names Are in One Column
  • How to Split an Address Into Columns in Excel
  • How to Split First and Last Names in Excel
  • Standardize Inconsistent Data in Excel: One Spelling Each
All text articles →

Don't just read about Excel. Do it.

Practise real formulas in a live spreadsheet with instant feedback, right in your browser. Nothing to download.

Start learning for free