Mask an email but keep the domain

Turn ava@example.com into a***@example.com for a display list.

What you'll make

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

The formula

The formula, with a numbered bracket under each part.
NumberPartWhat it doesResult so far
1TEXTBEFORE(A8,"@")Takes the text before the @."ava"
2LEFT( … ,1)Keeps only its first letter."a"
3&"***@"&Adds three stars and the @."a***@"
4TEXTAFTER(A8,"@")Adds the whole domain after the @."a***@example.com"

It works from the inside out: part 1, then part 2. The addresses here are made-up.

=LEFT(TEXTBEFORE(A8,"@"),1)&"***@"&TEXTAFTER(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 list. Paste emails into the green column of the Template tab. The masked emails fill in by themselves.
  3. Move them into your letter. Copy the results. Then use Paste Special and choose Values.

Before you send

This is for display only. The full address stays in the file, so remove it before you share.

Microsoft's help: TEXTBEFORE function