In Excel, type =TRIM(A1) into an empty cell and press Enter, then adjust the cell references to match your own data.
On this page7
Click the empty cell where you want the result for your spaces.
Type =TRIM(A1) and edit the references to point at your own cells.
Press Enter — Excel calculates instantly; drag the fill handle to apply it down the column.
Format the result cell (percentage, currency, date) so it reads the way you expect.
What this does
Strip “excel remove all spaces” back and what you are really doing in Excel is a data step that keeps your analysis trustworthy. The specific commands matter far less than one habit: keep the values behind the result in their own labelled cells, reference those cells from every formula, and rely on Excel to recalculate the instant anything moves. Handle spaces that way and the work scales from a handful of rows to thousands without breaking, and it stays auditable for the next person to open it — including you in six months. That is the whole gap between a quick fix you redo every single time and a pattern you build once with all spaces and simply reuse. People reach this page for “excel remove all spaces” specifically, not for spaces in general. Specifically, “excel remove all spaces” turns on remove all, and that remove all detail is what sets it apart from the dozen near-identical space questions around it. The practical takeaway in Excel is to treat the remove all inputs as the thing you label and reference, run “excel remove all spaces” on a handful of rows first, and lean on the tool above to confirm the remove all outcome before you commit it. What makes “excel remove all spaces” trip people up is assuming remove all behaves like every other space task — verify it once on your own numbers and that doubt disappears. Get that loop right for “excel remove all spaces” and the same remove all approach answers the next, slightly different version of the question without a rebuild. Most people learn this as a sequence of clicks and forget it by next week; learning it as a pattern instead is what lets you apply it to the next, slightly different version of the problem without starting from scratch. That is the difference this page is trying to make.
A worked example
Here it is on real numbers, applied to your spaces. Put your inputs in their own cells, then in a blank cell type =TRIM(A1) and edit the references to point at them. Press Enter and Excel returns the answer immediately; change any input and it updates live — exactly what the tool above reproduces so you can rehearse the change before touching real data. Once you trust it on a small example, drag the fill handle down and the same logic applies to an entire column of spaces in a second. Why bother getting your spaces right here? Trustworthy analysis starts with trustworthy data, and a careful data step here is what keeps every total and chart downstream honest. Set it up once with the tool on this page to check your work, and it keeps paying off every time you reopen the sheet. Search results often blur “excel remove all spaces” together with looser questions about spaces, but the wording here is precise on purpose. Specifically, “excel remove all spaces” turns on remove all, and that remove all detail is what sets it apart from the dozen near-identical space questions around it. The quickest reliable route in Excel is to build a tiny example matching your data, confirm “excel remove all spaces” against the tool above, and only then run it for real — that way you solve the exact remove all problem you searched for, not an approximation. The thing people get wrong about “excel remove all spaces” is treating remove all as interchangeable with the generic space case; it usually is not, and the few seconds you spend checking remove all on a small sample is what keeps the result honest. If your real sheet differs in one detail, change that one input, re-check “excel remove all spaces”, and the same remove all method carries straight over. One habit worth forming early: name the cells that hold your inputs, so the formula reads in plain language instead of a string of cell addresses. A reviewer — or you in three months — can then follow the logic without decoding what B7 and D2 were supposed to mean, which is most of what makes a sheet maintainable.
In Google Sheets
Everything above works in Google Sheets too. Excel and Sheets share the formula syntax used here; only the surrounding menus are arranged differently. That portability is deliberate — learn it once and it follows you between the two tools and across Windows and Mac. Keep this page bookmarked for the next time the same question comes up. Better still, repeat the steps once in your own workbook — doing it yourself is what turns a copied answer into something you remember. The short version of “excel remove all spaces”: the answer is at the top of this page, the tool proves it on your own numbers, and the sections above explain why it holds so the next variation does not stump you. Excel rewards people who reference cells instead of typing values and who keep inputs separate from formulas, because that is what makes a result you can audit months later. Build it once, deliberately, with the live tool as a check, and you convert a one-off lookup into a reusable skill — which is the whole point of learning the why and not just the what.
Common mistakes
- Running the change on the wrong sheet tab — confirm you are on the sheet that holds your all spaces before you commit.
- Forgetting that a copied formula shifts its references unless you lock them with the $ sign.
- Filtering a view and then deleting the rows without noticing the hidden ones survive the delete.
- Assuming Excel saved your work — confirm the save, especially before closing a shared workbook.
- Forgetting to narrow the selection to just the all spaces, so the change spills onto spaces that should have been left alone.
Frequently asked questions
What is the quickest way to excel remove all spaces?
Use the boxed answer at the top of this page — it gives the exact Excel steps for “excel remove all spaces”, and the tool just below lets you run it on your own spaces before you touch the real sheet.
Will it work on Mac?
Yes — use the platform toggle at the top of the page for the Mac shortcuts. The formulas and menu paths for spaces are the same across operating systems.
Does this work in older versions of Excel?
Yes. The approach for spaces has been stable across recent Excel versions; only the ribbon icons changed cosmetically, so the steps still apply.