Remove Punctuation in Excel
Practical ways to remove punctuation from Excel cells using formulas, Power Query and Microsoft 365 functions, with checks and common fixes.
Before you start
The process runs locally on your computer. You do not need an online service or an add-in for the basic formula and Power Query methods. Open the workbook, decide whether you want to replace the original values or create a cleaned copy in a helper column, and save a backup copy if the data is important. Punctuation here means visible marks such as periods, commas, question marks, exclamation points, quotes, brackets, hyphens and slashes. Spaces, line breaks and non-printing characters are separate from punctuation and may need their own cleanup.
Step-by-step instructions
Use a helper column when you want to keep the original text available. If the first value is in cell A2, enter the cleaning formula in cell B2 and copy it down. A nested SUBSTITUTE formula works in desktop and web versions of Excel, but becomes long when you need to remove many punctuation marks.
For a common set of punctuation, start with nested SUBSTITUTE replacements. This example removes periods, commas, question marks and exclamation points from cell A2:
=SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(A2,".",""),",",""),"?",""),"!","")
Each SUBSTITUTE removes one specified character and passes the result to the next replacement. To add more characters, wrap the existing formula in another SUBSTITUTE and use the punctuation mark as the old text. The formula replaces exact characters, so it does not use wildcard matching.
If you have Microsoft 365, you can reduce repetition by using REDUCE with a list of punctuation characters. In Excel for Microsoft 365, enter a list such as period, comma, question mark, exclamation point, quote, hyphen and slash in one cell each, or use a vertical array. A compact formula that replaces several characters is:
=REDUCE(A2,{".",",","?","!","""","-","/"},LAMBDA(acc,char,SUBSTITUTE(acc,char,"")))
The inner quote requires doubled double quotes in the formula. This approach removes the same set from every cell in the range when entered as a dynamic array formula. Availability and exact behavior depend on your Microsoft 365 version, and Excel formulas of this kind may not be available in older perpetual versions.
Power Query is useful for a larger table or when you want a repeatable cleanup step. Select any cell in the table or range, then choose From Table/Range on the Data tab. In the Power Query Editor, select the text column, open the Transform tab, and choose Replace Values. Replace one punctuation mark with an empty value, then repeat for each required mark. When the replacements are complete, choose Close & Load to place the result in a new worksheet or table.
If you later add rows, you can refresh the query from the Data tab so the same cleanup steps run again. Keep the source range available because the query reads from it.
Check the output
Check a few cells that contain periods, commas, quotes and other marks you intended to remove. The cleaned text should show only the original words and any characters you deliberately kept, such as spaces, digits or non-punctuation symbols. If you used a helper formula, compare it with the source column and confirm the formula range covers every row with data.
Formula-based methods remove the characters you listed explicitly. They do not automatically remove every Unicode punctuation symbol, decorative quote, dash or character from other scripts. If the result still contains unexpected marks, treat the remaining marks as additional characters to list in the formula or Power Query replacements. Cleaned text keeps its original capitalization and spacing.
Common problems and next steps
If a formula returns an error, check that all parentheses are closed and that quotes are doubled where needed. If curly or angled quotation marks remain after removing straight quotes, add those exact characters as separate replacements or use Find and Replace to handle them manually.
When punctuation is embedded inside words that must stay intact, such as an email address or a decimal number, a broad punctuation removal may change the meaning. In that case, clean only the marks required for your task instead of removing every punctuation character.
If the result is needed as plain text without formatting, copy the cleaned cells and paste as values before deleting the helper column. For recurring monthly or imported data, Power Query is usually easier to rerun than rebuilding a long formula. If punctuation remains in only a few rows, use Find and Replace with exact matches rather than changing the whole column.