Write a masked EIN with its hyphen

Turn the EIN 012345678 into **-***5678, showing only the last four digits.

What you'll make

In Excel: 012345678 becomes **-***5678.

The formula

The formula, with a numbered bracket under each part.
NumberPartWhat it doesResult so far
1"**-***"Stars for the hidden digits, with the hyphen."**-***"
2RIGHT(A8,4)Adds the last four digits of the EIN."**-***5678"

Read it left to right. The & joins the two pieces. The EINs here are made-up.

="**-***"&RIGHT(A8,4)

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 IDs. Paste nine-digit EINs into the green column of the Template tab. The masked EINs fill in by themselves.
  3. Move them into your letter. Copy the results. Then use Paste Special and choose Values.

Before you send

This only hides digits in the new column. The full EINs are still in the green column, so remove them before you share the file.

Microsoft's help: RIGHT function