Remove spaces from an email address

Turn ava @ example.com into ava@example.com when an export added spaces.

What you'll make

In Excel: ava @ example.com becomes ava@example.com.

The formula

The formula, with a numbered bracket under each part.
NumberPartWhat it doesResult so far
1TRIM(A8)The email, with spaces at the ends removed."ava @ example.com"
2" "The character to remove: a space." "
3""What goes in its place: nothing.""
4SUBSTITUTE( … )Removes every space left in the cell."ava@example.com"

Letters, dots and hyphens stay as they are. The addresses here are made-up.

=SUBSTITUTE(TRIM(A8)," ","")

How to use it

Yellow bar at the top? Click Enable Editing.

  1. See it work. The Example tab shows 20 made-up examples with the formula already in.
  2. Use your own emails. Paste email addresses into the green column of the Template tab. The clean emails fill in by themselves.
  3. Move them into your letter. Copy the results. Then use Paste Special and choose Values.

Before you send

Every space goes. Use it only when you know the spaces came from the export, not on other text.

Microsoft's help: SUBSTITUTE function