In Excel: use =TRIM(A2) to remove leading, trailing and repeated normal spaces, and combine it with SUBSTITUTE for non-breaking spaces from web data.
14 characters removed · 25 characters
Non-breaking spaces from web copy-paste are normalised too — TRIM alone leaves those behind.
What this does
TRIM cleans normal spaces around and between words. Data copied from websites can contain non-breaking spaces, which TRIM alone may not remove. In that case, SUBSTITUTE(A2,CHAR(160)," ") replaces non-breaking spaces before TRIM cleans the result. The same idea underpins a lot of everyday Excel work, so the few minutes spent getting it right here pay back across every sheet you build afterwards. Treat it as a pattern, not a one-off, and it stops being something you look up and starts being something you reach for. Treat “remove extra spaces” as a small repeatable workflow rather than a one-off click you hope to remember next time. Use a small test block before the live file, so any surprise in the affected spaces shows up while it is still harmless. When a formula is involved, keep the inputs labelled beside it, reference cells instead of typing values, and apply number formatting only after the result checks out. That turns a layout choice that keeps the sheet readable and sortable into a method you can reuse, explain, and defend when the workbook leaves your screen.
A worked example
A2 contains " ACME West ". =TRIM(A2) returns "ACME West". If imported text still refuses to match, use =TRIM(SUBSTITUTE(A2,CHAR(160)," ")). Space cleanup fixes failed lookups, duplicate detection and joins where values look identical but do not match. If there is any chance you will reuse this, drop it into a small template tab right now: a labelled input area on the left and the formula beside it, checked once against the tool above. Next time the same question comes up, the answer is a single paste away instead of a rebuild from memory.
In Google Sheets
If you are in Google Sheets rather than Excel, the good news is that the formula shown here is identical and the workflow barely changes — menus sit across the top instead of in a ribbon, and a few function names differ slightly, but anything you build here moves across with little or no rework. The aim was to get you unstuck fast and leave you a little more capable than a copy-paste would. The answer is at the top, the tool proves it, and the detail above shows why it holds — so the next time a colleague asks, you can answer without reaching for search. Treat “remove extra spaces” as a small building block rather than a chore. Once the inputs sit in their own cells and the formula reads from them, the same setup answers a dozen related questions with a tweak, and Excel keeps every dependent figure current as the data changes. The tool above is there so you can rehearse and verify before committing anything to a real workbook; the steps and worked example are there so the logic sticks. Get it right once and it stops costing you time — it starts saving it, every time the question comes back around.
Common mistakes
- Using Find/Replace space with nothing and removing intentional spaces inside names.
- Forgetting non-breaking spaces.
- Replacing formulas before checking results.
- Cleaning only one lookup column when both sides need
TRIM.
Frequently asked questions
What does TRIM remove?
Leading, trailing and repeated normal spaces.
Why are spaces still there?
They may be non-breaking spaces, character 160.
Can I remove all spaces?
Use SUBSTITUTE(A2," ",""), but only when internal spaces are truly unwanted.
Other ways people ask this
This is also commonly searched as “how to remove extra spaces in excel”, “how to remove the extra space in excel”, “remove extra spaces in excel cells words” and “remove extra space in excel”. They describe the identical operation, so you are in the right place no matter how you phrased it.
This guide also answers
- delete extra spaces in excel
Why do people search for this in so many different ways?
Because the same task has many names. “how to remove extra spaces in excel”, “how to remove the extra space in excel”, “remove extra spaces in excel cells words” all point at the one operation explained on this page, which is why they all lead here.