How to Remove Text From an Excel Column
In this article
To remove specific text, characters or spaces from an Excel column, select the column, press Ctrl+H to open Find and Replace, type the text you want gone in the "Find what" box, leave "Replace with" empty, and click Replace All. For removing the first or last characters of every cell, use the RIGHT, LEFT or MID function in a helper column instead.
Time 5 min · Steps 7 · Level Easy
Most people who search this want one of two things: strip a repeated word, character or space out of every cell in a column, or trim a fixed number of characters off the start or end of each entry. Find and Replace handles the first case in under a minute; formulas handle the second. The steps below cover the Find and Replace route first, then the formula route where the two differ.
Remove Text From a Whole Column in 7 Steps
- Back up the sheet. Right-click the sheet tab at the bottom, choose Move or Copy, tick "Create a copy", and click OK so you can undo any mistake cleanly.
- Select the column. Click the column letter (for example D) at the top of the sheet so the whole column is highlighted, not just the visible cells.
- Open Find and Replace. Press Ctrl+H (on a Mac, press Command and Shift together, then H). A dialog with "Find what" and "Replace with" boxes appears.
- Type what you want removed. In "Find what", enter the exact text, character or space to delete. Leave "Replace with" completely empty.
- Check the match settings. Click Options and make sure "Match entire cell contents" is unticked unless you want to clear whole cells rather than remove a fragment.
- Click Replace All. Excel reports how many replacements it made. Click OK, then Close.
- Review the result. Scroll the column and spot-check a few cells. If something went wrong, press Ctrl+Z once to undo the entire Replace All in one go.
Removing First or Last Characters With Formulas
Find and Replace removes a specific string wherever it appears. When you instead want to cut a fixed number of characters from the start or end of every cell, use a helper column. Menu names and function behaviour can differ slightly between Excel versions, but these functions are long-standing.
Suppose your data starts in cell A2. To remove the first 2 characters (for example a country code or a stray prefix), enter =RIGHT(A2, LEN(A2)-2) in a helper column and fill it down. To remove the last 3 characters, use =LEFT(A2, LEN(A2)-3). To keep only characters 4 through 10 of each entry, use =MID(A2, 4, 7) — the 4 is where to start, the 7 is how many characters to keep.
Once the helper column looks right, select it, copy it, then right-click the original column and choose Paste Special > Values. This replaces the original entries with the cleaned text so the formulas can be deleted. Delete the helper column afterwards.
When It Goes Wrong: Symptoms and Fixes
| Symptom | Likely cause | Fix |
|---|---|---|
| "0 replacements" message | Extra spaces in the cells, or the text differs by case or a trailing space | Tick the space into the "Find what" box, or clean the column first with =TRIM(A2) in a helper column |
| Whole cells became empty | "Match entire cell contents" was ticked | Press Ctrl+Z, untick the option, and run Replace All again |
| Numbers turned into text | The removed characters included formatting or the paste kept text format | Use Paste Special > Values, then multiply the column by 1 or use Text to Columns to restore number format |
| Formula shows instead of result | The helper column was formatted as text before typing | Format the helper column as General, then re-enter the formula |
| Replacements hit other columns | The whole sheet was selected, not one column | Press Ctrl+Z, select just the column letter, and repeat |
How to Tell It Worked Before You Commit
Do not trust the replacement count alone — check the data. Use the filter arrow on the column header and look at the dropdown list of unique values: the removed text should not appear anywhere in it. If the column is long, press Ctrl+F and search for the string you removed; a result of "0" in that column confirms it is gone. Also check a cell that should have been untouched, since a too-broad search string (for example a single common letter) can eat characters you wanted to keep.
Before You Start: A 30-Second Checklist
- You have a copy of the sheet or a saved version to fall back on.
- You know the exact text to remove, including any spaces — copy it from one cell rather than retyping it.
- You have selected only the column that needs cleaning, not the whole sheet.
- Any dates or numbers in the column have been checked after the change, since Find and Replace can alter how Excel reads them.
- If the column is part of a table with formulas elsewhere, you have noted which cells reference it, so you can verify them after the change.
Removing Spaces, Line Breaks and Hidden Characters
Trailing and double spaces are the most common reason a column will not sort or match correctly. The fix is a helper column with =TRIM(A2), filled down, then pasted back as values. TRIM removes leading, trailing and repeated spaces but keeps single spaces between words.
Line breaks pasted in from other programs need a different trick: open Ctrl+H, click in "Find what", hold Ctrl and press J (nothing visible appears, but the line-break character is entered), leave "Replace with" empty, and click Replace All. Non-breaking spaces, common in data copied from web pages, are not removed by TRIM; use =SUBSTITUTE(A2, CHAR(160), " ") in a helper column, then run TRIM on the result.
Official source: Microsoft Support