Remove an end semicolon from an email

Turn ava@example.com; into ava@example.com after a list export.

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
1RIGHT(TRIM(A8),1)=";"True when the email ends with a semicolon.TRUE
2LEFT(TRIM(A8),LEN(TRIM(A8))-1)Keeps everything except the last character."ava@example.com"
3TRIM(A8)The email as it is, with extra spaces removed.Not used for row 8
4IF( … )Removes the semicolon only when part 1 is true."ava@example.com"

Read it left to right. Only one semicolon at the end comes off. The addresses here are made-up.

=IF(RIGHT(TRIM(A8),1)=";",LEFT(TRIM(A8),LEN(TRIM(A8))-1),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

An email ending in two semicolons keeps one, and cells with several addresses need a look.

Microsoft's help: RIGHT function