Remove Space in Front of Text Excel

If you just need to remove space in front of text excel and move on, the boxed answer at the top is all you need. The rest of this page is for when you want to understand why it works in Excel, adapt it to a trickier version, or make it robust enough to hand to a colleague. We keep the opening short on purpose — the depth is here when you want it, not in your way when you don’t.

Exact answer

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.

ƒxRemove Extra SpacesLive
Converted text
25

14 characters removed · 25 characters

Non-breaking spaces from web copy-paste are normalised too — TRIM alone leaves those behind.

=TRIM(SUBSTITUTE(A2,CHAR(160)," "))
=TRIM(A2)
Ctrl+CthenCtrl+Shift+V+Cthen+Ctrl+VPaste values · WindowsMac

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. Keep the inputs visible and clearly labelled and the whole thing stays auditable — anyone who opens the file later, including you, can see at a glance exactly what feeds the result and change one assumption without hunting through the formula. Treat “remove space in front of text excel” 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 data step that keeps your analysis trustworthy 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. 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. Nothing on this page is behind a login: the tool runs entirely in your browser, the formula is shown in full with one-click copy, and the steps work the same on Windows and Mac. That is the whole promise here — the exact answer, a way to prove it on your own numbers, and just enough context to make it stick. The short version of “remove space in front of text excel”: 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

  • 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

People reach this page typing “excell remove space in front”, “removing a space in front in excel” and “how to remove space in front of text excel”, among other phrasings; whichever wording you used, the fix above is the one you want.

Why do people search for this in so many different ways?

Because the same task has many names. “excell remove space in front”, “removing a space in front in excel”, “how to remove space in front of text excel” all point at the one operation explained on this page, which is why they all lead here.