Display a numeric EIN as 01-2345678
Turn an EIN stored as a number, like 12345678, into the text 01-2345678.
What you'll make

The formula

| Number | Part | What it does | Result so far |
|---|---|---|---|
| 1 | A8 | The EIN as a number, with its zero lost. | 12345678 |
| 2 | "00-0000000" | The pattern: two digits, a hyphen, seven digits. | "00-0000000" |
| 3 | TEXT( … ) | Adds zeros in front and puts in the hyphen. | "01-2345678" |
The result is text, so Excel keeps the leading zero. The EINs here are made-up.
=TEXT(A8,"00-0000000")How to use it
Yellow bar at the top? Click Enable Editing.
- See it work. The Example tab shows 20 made-up examples with the formula already in.
- Use your own IDs. Paste EIN numbers into the green column of the Template tab. The EINs with hyphens fill in by themselves.
- Move them into your letter. Copy the results. Then use Paste Special and choose Values.
Before you send
Use this only on a column you know holds nine-digit EINs. It adds the hyphen but doesn't check the EIN is real.
Microsoft's help: TEXT function
OTHER ROUTES YOU MIGHT LIKE

Turn a ten-digit NPI number into text
1234567890 as a number → 1234567890 as text
Get the template →
Restore a nine-digit TIN from a number
12345678 → 012345678
Get the template →
Insert the EIN hyphen preserving zeroes
012345678 → 01-2345678
Get the template →
Merge a few test letters before the whole mailing
Whole mailing → records 2 to 4 only
Take this route →