Excel: How to Remove Text From a Cell
In this article
You can remove text from an Excel cell in several ways depending on what you mean by "remove": delete the whole entry, strip extra characters while keeping the numbers, or cut out a specific word or substring. The quickest general fix is Find and Replace (Ctrl+H on Windows, Command+H on Mac): select the cells, type the text you want gone in "Find what", leave "Replace with" empty, and choose Replace All. For a repeatable rule, use a formula such as SUBSTITUTE, TEXTBEFORE, or a numeric clean-up with RIGHT and LEN. Note that menu labels and shortcuts can differ slightly by Excel version and platform; the steps below are written for Excel on Windows and Mac desktop, with notes where the ribbon wording changes.
What You'll Need
- Excel for Microsoft 365, Excel 2021, 2019 or 2016 on Windows or Mac. Most formulas here also work in Excel for the web and in the mobile app, though some newer functions may be missing on very old versions.
- A clear idea of what you want to keep, because that decides the method. Examples: keep numbers only, delete a fixed prefix like "SKU-", remove spaces, or delete a whole entry.
- Ideally a spare column or a copy of the sheet, so you can compare before and after and undo mistakes safely.
- For older versions that lack newer functions, a helper column rather than editing in place.
Step-by-Step
Method 1: Delete text from a whole cell
- Click the cell you want to clear.
- Press Delete to empty the contents while keeping the cell's formatting. Press Backspace to clear contents and return the cell to default formatting.
- To clear many cells at once, select the range and press Delete, or use Home > Clear > Clear Contents to remove values without losing formatting.
Method 2: Remove a specific word or string with Find and Replace
- Select the range you want to change, or click any single cell to search the whole sheet. Choose the whole column if you want to limit the changes.
- Press Ctrl+H on Windows or Command+H on Mac to open Find and Replace. You can also use Home > Find & Select > Replace.
- In "Find what", type the exact text you want removed, including spaces and punctuation if they matter.
- Leave "Replace with" completely empty.
- Click Replace All. Excel reports how many replacements it made. Check the sheet, then press Ctrl+Z or Command+Z to undo if the result is wrong.
- If you want to match case or whole-cell matches only, click Options and tick "Match case" or "Match entire cell contents" before replacing.
Method 3: Strip text and keep numbers with a formula
- Insert a helper column next to your data. Give it a heading so you can tell it apart.
- If the cell contains only digits mixed with letters and you have a recent Excel version, use a formula like
=TEXTJOIN("",TRUE,IFERROR(MID(A1,SEQUENCE(LEN(A1)),1)*1,"")). In older versions this needs to be entered as an array formula with Ctrl+Shift+Enter, so a simpler option is often better. - A more universal approach for a fixed prefix is
=REPLACE(A1,1,4,""), which removes the first four characters. Change the 4 to match how many characters you need to cut. - To remove text after or before a delimiter, use
=TEXTBEFORE(A1,"-")or=TEXTAFTER(A1,"-")where available. On older versions use=LEFT(A1,FIND("-",A1)-1)or=MID(A1,FIND("-",A1)+1,LEN(A1)). - To delete a known phrase anywhere in the cell, use
=SUBSTITUTE(A1,"kg",""). This replaces every occurrence with nothing. - Copy the formula down the helper column, check a few results against the original, then copy the helper column and use Paste Special > Values over the original if you want the text permanently replaced.
Method 4: Split text away with Text to Columns or Flash Fill
- For data separated by a consistent character such as a comma or dash, select the column and use Data > Text to Columns. Choose Delimited, pick the separator, then set any column you do not want to "Do not import" and finish. This overwrites the adjacent cells, so make room first or copy the column elsewhere.
- For patterns Excel can learn, type the cleaned version next to the first row, then press Ctrl+E on Windows or Command+E on Mac, or use Data > Flash Fill. Check every result, because Flash Fill guesses and can be wrong on messy data.
Common Mistakes
- Find and Replace catching more than intended. Replacing "cat" also changes "category". Use "Match entire cell contents" or a more specific phrase.
- Deleting the source too early. If you paste values over the original column before checking, the formula output is all you have left. Verify first, keep a backup, and rely on Undo straight away if needed.
- Numbers stored as text. Removing characters can leave numeric-looking text that won't sum. Use VALUE with the cleaned result or multiply by 1 to convert, then reapply number formatting.
- Forgetting that formulas don't update source cells. A helper column only shows the result; the original still holds the unwanted text until you paste values.
- Replacing with a space instead of nothing. An accidental space in "Replace with" leaves gaps that break lookups and VLOOKUP matches.
- Working on filtered rows. Replace All affects hidden rows too, which can change data you did not intend to touch.
Tips
- Use TRIM around your result, as in
=TRIM(SUBSTITUTE(A1,"kg","")), to tidy leftover spaces. - Set "Within" to Workbook in Find and Replace options if the text may sit on other sheets, but be aware this changes everything at once.
- Keep your original data in one column and put cleaned results in another until you are happy with the logic.
- For imported data, apply Text to Columns at the import stage so the unwanted parts never enter the sheet.
- Document your formula with a note in a cell header so you remember what it removes next month.
Troubleshooting
- Replace All says nothing was found: check for hidden spaces, leading or trailing spaces, line breaks (Alt+Enter on Windows), or a cell formatted as text. Try turning on Match case or searching a shorter fragment.
- The formula returns an error like #VALUE!: your text and number mix is not what the formula expects. Test on a single cell, and if using SEQUENCE, confirm your version supports it; otherwise switch to LEFT, MID or REPLACE.
- Results look right but calculations fail: the cleaned values are text. Convert with VALUE or Paste Special > Multiply.
- Numbers changed formatting (dates, leading zeros): Excel may interpret cleaned text as a date or number. Set the destination column to Text formatting before pasting values, or restore the leading zeros with a text format.
- Flash Fill gives odd results: delete the guesses, add one or two more typed examples, and run it again.
Frequently Asked Questions
Can I remove text from a cell without a formula?
Yes. Find and Replace, Flash Fill, Text to Columns and manually retyping all work without formulas. Find and Replace is usually fastest for a specific word.
How do I remove all letters and keep only numbers?
There is no single built-in "remove letters" button. Use a formula that tests each character, such as a TEXTJOIN-SEQUENCE combination on newer versions, or a series of SUBSTITUTE calls for known letters.
Does removing text change the underlying value?
Find and Replace and manual deletion change the cell's stored value permanently. A formula in a helper column does not touch the source until you copy and paste values.
Can I undo a Replace All?
Yes, immediately with Ctrl+Z or Command+Z. Once you save and close the file, that undo is no longer available, which is why a backup copy matters.
Why does Excel keep a leading apostrophe?
The apostrophe marks text and is not shown in the cell. Remove it by changing the cell format to General and re-entering the value, or by using a formula to convert the text.
Will this work in Excel for the web or mobile?
Find and Replace and Paste Special work in Excel for the web, though some newer functions may not be available. The mobile app has limited formula editing, so it is easier to do this on desktop.