How to Remove Text and Keep Numbers in Excel, or the Other Way Round

Remove Text, Numbers or Symbols From Excel Cells

An order list arrives from a web shop. The quantities read 12 pcs and Qty 5, the amounts read USD 1,250.50, and the total at the bottom says 0.00. Remove Characters in Dose for Excel lets you remove text and keep numbers in Excel without formulas or helper columns. Select your cells, tick what should go, and click Apply.

What’s left becomes a real number that your totals can use. It works the other way round too, removing numbers and keeping the text, and it can clear symbols and hidden characters. Your formulas stay formulas, and references like 00201 keep their leading zeros.

Click Apply, say Yes to the backup, and the words are gone. The totals go from 0 and 0.00 to 199 and 11,322.50.

Why Text Mixed With Numbers Breaks Your Totals

To you, 12 pcs is a quantity of twelve. To Excel it’s a piece of text, and SUM has nothing to add. So a column full of amounts can total zero, or worse, a low figure that looks believable because a few cells happened to be real numbers. The same thing breaks charts, pivot tables and sorting. Here is the sort of list that needs you to remove text and keep numbers in Excel:

Before you remove text and keep numbers in Excel: quantities like 12 pcs and amounts like USD 1,250.50, with totals of 0 and 0.00
An imported order list. Every quantity and amount has text in it, so both totals are zero.

What Excel’s Own Tools Leave Behind

Excel has no single command to remove text and keep numbers. Its own tools can get part of the way, and they’re fine for a small list. Here is what each one offers, with Microsoft’s own page for it:

Excel’s toolWhat it doesWhat it leaves you with
Flash FillFills a column when it senses a pattern in what you type.A new column to check row by row, because a messy list rarely follows one pattern. The old column is still there to deal with.
Find and ReplaceIts wildcards are the question mark, the asterisk and the tilde.None of them means “any digit” or “any letter”, so clearing the digits takes one run for each digit.
Convert to NumberTurns numbers stored as text into real numbers.It’s for cells that hold only a number. It can’t pull the 12 out of 12 pcs.
TEXTJOIN with MIDA formula can go through a cell one character at a time and join up the ones you want.TEXTJOIN needs Excel 2019 or later. The formula sits in a helper column, its answer is still text, and you paste the values back when it’s done.
SUBSTITUTEReplaces one piece of text you name with another.One SUBSTITUTE for each symbol, nested inside each other, in another helper column.
CLEANRemoves the first 32 nonprinting characters.Other hidden characters stay, such as the zero-width character that arrives with pasted web text.

What Remove Characters Can Remove

The pane lists what you can take out. To remove text and keep numbers in Excel, use Non-numeric. To do the reverse, use Numeric or Non-alpha. You can tick more than one option, and they all run on the same cells. A letter counts as a letter in any language, not only in English.

OptionWhat it removesExample
Numeric: Only numbersDigits.Desk Lamp 4471 becomes Desk Lamp
Numeric: Numbers with periodWhole numbers, with their decimal mark or fraction slash.1/2 cup becomes cup
Alpha: All AlphaLetters.abc123 becomes the number 123
Alpha: Capital LettersCapital letters only.Ab Cd becomes b d
Alpha: Small LettersSmall letters only.Ab Cd becomes A C
Non-numericEverything that isn’t part of a number.USD 1,250.50 becomes the number 1,250.50
Non-alphaEverything except letters and spaces.Desk Lamp #4471 becomes Desk Lamp
Non-printingHidden characters. A line break or tab becomes a space.a over b becomes a b
Non-alphanumericSymbols, keeping letters, digits and spaces.Desk Lamp #4471 becomes Desk Lamp 4471
CustomThe characters you type in the box.[Sale] with [] typed becomes Sale

How to Remove Text and Keep Numbers in Excel

The Remove Characters command in the Text menu on the DOSE tab, marked here with a rectangle
Remove Characters is in the Text menu on the DOSE tab.

These steps remove text and keep numbers in Excel on whatever you select:

  1. Select the cells you want to change. That can be a range, a whole column, several separate ranges or the whole sheet. Leave out any column you want to keep as it is.
  2. Go to the DOSE tab, open the Text menu and choose Remove Characters… The pane opens on the right.
  3. Numeric is ticked when the pane opens. Untick it unless you want digits removed.
  4. Tick Non-numeric, or whichever options you need.
  5. Tick Backup sheet if you want a copy of the sheet first.
  6. Click Apply. If you ticked Backup sheet, Dose asks Do you want to backup your sheet before? Click Yes for the copy. Your cells change quickly, and the pane stays open for another run.
Remove Characters pane with Non-numeric and Backup sheet ticked
The pane as it is set up in the example below.

Example: Remove Text and Keep Numbers in an Order List

Back to the list from the top of this page. In the example below we selected B2 to D12, which takes in the order references, the quantities, the amounts and both totals. We unticked Numeric, ticked Non-numeric and Backup sheet, then clicked Apply and Yes. The result:

After you remove text and keep numbers in Excel: real numbers in Qty and Amount, totals of 199 and 11,322.50, and order references such as 00201 with their zeros
Real numbers, working totals, and references that kept their zeros.
  • The totals work. They read 199 and 11,322.50 now, and they’re still the same SUM formulas. Nothing was wrong with the formulas, only with what they were given.
  • The values take the column’s format. Paid 2,300.00 and $980.00 line up on the right as 2,300.00 and 980.00.
  • The references keep their zeros. ORD-00201 became 00201, not 201. It stays as text, because a number like that is really a label. Excel may mark it with a small green triangle, and that’s fine.

Remove Numbers and Keep Text in Excel

Sometimes it’s the digits that have to go. These product names have numbers mixed in, in a different place each time, so a lookup for Desk Lamp shows #N/A:

Product names with numbers at the start, middle or end, and a VLOOKUP for Desk Lamp showing #N/A
Numbers at the start, in the middle or at the end of each name, and a lookup that fails.

In the example below we selected A2 to A9, ticked Numeric with Only numbers showing, and clicked Apply. The numbers are gone, and so are the spaces they left behind, so Office 2208 Chair becomes Office Chair with one space. The lookup now finds its price:

Select the names, click Apply, and the lookup finds Desk Lamp at 49.90.
Product names with the numbers removed and a VLOOKUP showing 49.90 for Desk Lamp
Clean names, and the same VLOOKUP formula, now working.

Remove Symbols and Hidden Characters

This list of order statuses has symbols all over it. Row 4 looks clean, but it holds a hidden character that doesn’t print, and row 9 has a line break at the end. So COUNTIF finds nothing at all, even though there are eight orders:

Statuses such as [Sale], #New! and (Back Order) with COUNTIF results of 0, 0 and 0
Sale, New and Back Order all count as zero.

In the example below we selected A2 to A9, ticked Non-printing and Custom, typed !#*[]()<> in the box, and clicked Apply. Each character you type is removed exactly as typed, in any order. To remove a whole run of characters, type a range such as a-z or 0-9. Ranges are case-sensitive, so a-z leaves capitals alone.

Type the symbols, click Apply, and every order is counted.
The Custom box holding the symbols to remove, with Non-printing and Custom ticked
Non-printing and Custom ticked
Clean statuses with COUNTIF results of 3, 3 and 2
The counts now read 3, 3 and 2

What Remove Characters Leaves Alone

When you remove text and keep numbers in Excel with this tool, it doesn’t turn everything that’s left into a number. Anything the conversion would damage stays as text, and these are left alone:

In your selectionWhat happens
FormulasLeft as they are. They stay formulas, and they update when the cells they read change.
Error values such as #N/A, and TRUE or FALSELeft as they are.
Real dates, and text that reads as a date such as 12/31/2024Left as they are.
Values with leading zeros, such as 00123Stay as text, so the zeros are kept.
Numbers longer than 15 digitsStay as text, because Excel can’t hold them exactly as numbers.
Text like 1/2, 1-2 or 1,2,3, when there’s nothing to removeStays as text under Non-numeric.
Rows hidden by a filterLeft as they are. Only the visible cells change.
Cells with nothing to removeNot written to, so they keep everything they had, spaces included.

Keep a Backup of Your Sheet First

Before you remove text and keep numbers in Excel, it’s worth having a way back. Tick Backup sheet and Dose asks you before it starts. Click Yes, and it adds a full copy of the sheet next to the original, named with a (2) at the end. Your cells then change on the original sheet, and the copy keeps everything as it was. Click No, and it goes ahead without a copy.

The Order Import (2) backup sheet, still showing the original quantities and amounts and totals of zero
The backup sheet, Order Import (2), with the original data still in it.

Good to Know Before You Run It

A few things are worth checking when you remove text and keep numbers in Excel, especially on a list from somewhere else:

  • Decimal marks follow your Windows regional settings. A number with both marks works on any PC: 1,250.50 and 1.250,50 both give 1250.5.
  • Non-numeric joins whatever digits it finds. a1-b2 becomes 12, and 1,2,3x becomes 123. If a cell holds two separate numbers, split it first.
  • A minus sign counts only directly before the first digit. -5 kg becomes -5, and (120.00) becomes 120, because brackets are removed.
  • Only numbers takes digits and nothing else. 1/2 cup becomes / cup. Use Numbers with period to take the whole number.
  • All Alpha takes letters and nothing else. total: 99 becomes : 99. Use Non-numeric to get 99.
  • A real number is treated like any other cell. Only numbers empties a cell holding just a number, so select only the cells you mean to change.
  • Spaces are tidied in cells that change. Spaces at the edges go, and double spaces become one. A space just before a line break stays.
  • Partly bold text keeps its formatting if nothing changes. If its text does change, the partial bold is lost, because the cell gets its new content as a whole.
  • Protected sheets: if the sheet is protected, Dose asks you to unprotect it first, unless every cell you selected is unlocked.
  • Remember my settings: open the menu at the top of the pane to save your choices for next time, or to reset them.

When People Use Remove Characters

These are the moments people most often need to remove text and keep numbers in Excel, or the other way round:

  • Exports from web shops and accounting systems: amounts that carry a currency, and quantities that carry a unit.
  • Product lists: names with reference numbers stuck to them, which stop a lookup from matching.
  • Text pasted from web pages and PDFs: this is where hidden characters and stray symbols come from.
  • Tagged statuses and categories: brackets and hash signs that stop COUNTIF and pivot tables from grouping them.
  • Before a report: so every total counts every row.

Demo: Remove Text and Keep Numbers, Start to Finish

This tutorial shows how to remove text and keep numbers in Excel using the examples on this page, then removes numbers and keeps the text, and finally clears symbols and hidden characters.

Frequently Asked Questions

How do I remove text and keep numbers in Excel without a formula?

Select your cells, go to the DOSE tab, open the Text menu and choose Remove Characters. Untick Numeric, tick Non-numeric and click Apply. The cells change where they are, with no helper columns to fill and delete.

Will the result be a real number that SUM can add?

Yes, when what is left is an ordinary number. Values with leading zeros, such as 00123, and numbers longer than 15 digits stay as text, because turning them into numbers would change them.

How do I remove numbers and keep the text?

Tick Numeric with Only numbers showing, then click Apply. The digits go, along with the spaces they leave behind, so Desk Lamp 4471 becomes Desk Lamp. To clear symbols as well, use Non-alpha, which keeps only letters and spaces.

How do I remove symbols from Excel cells?

Tick Non-alphanumeric to clear all symbols and keep letters, digits and spaces. To remove only certain symbols, tick Custom and type them in the box. Each character you type is removed exactly as typed.

Does it remove hidden characters?

Yes. Non-printing removes control characters and zero-width characters that you cannot see in the cell. A line break or a tab becomes a space, so the words on either side stay apart.

How does it handle commas and periods in numbers?

Decimal marks follow your Windows regional settings. A number with both marks works on any PC, so 1,250.50 and 1.250,50 both give 1250.5.

Will it change my formulas, dates or order numbers?

No. Formulas, error values, TRUE and FALSE, and dates are left as they are. Text that reads as a date is left alone too, and values such as 00123 keep their leading zeros.

Can I keep a copy of the original sheet?

Yes. Tick Backup sheet and click Yes when Dose asks. It adds a copy of the whole sheet next to the original before anything changes, and the copy keeps your data exactly as it was.

Does Remove Characters work on filtered data?

Yes. Only the visible cells change. Rows hidden by a filter, and any hidden rows or columns, stay as they were.

Which Excel versions does Remove Characters work with?

Excel 2010, 2013, 2016, 2019, 2021, 2024 and Microsoft 365, in 32-bit and 64-bit editions, on Windows. The interface is available in multiple languages.

Related Dose for Excel Tools

These tools help when you’ve used this one to remove text and keep numbers in Excel and need the next step, or when you need one specific job:

More Features:

Excel Remove Spaces

Remove Leading, Trailing, Extra & All Spaces in Excel – In One Click Stray spaces…

Excel Remove All Macros

Remove All Macros From Excel Workbooks Delete Macros, User Forms, VBA modules, etc. from Excel…

Excel Insert Empty

Insert Empty Rows Or Columns At Certain Interval In Excel If you ever want to…

Scroll to Top