Remove the display hyphen from an EIN

Turn 01-2345678 into the nine digits 012345678. Leading zeros stay.

What you'll make

In Excel: 01-2345678 becomes 012345678.

The formula

The formula, with a numbered bracket under each part.
NumberPartWhat it doesResult so far
1A8The EIN, with its hyphen."01-2345678"
2"-"What to find: the hyphen."-"
3""What to put instead: nothing.""
4SUBSTITUTE( … )Takes out every hyphen."012345678"

The result is text, so the leading zero stays. The EINs here are made-up.

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

Before you send

Use this only on EINs you have checked. In other IDs a hyphen can mean something.

Microsoft's help: SUBSTITUTE function