Restore a nine-digit TIN from a number
Turn a TIN that lost its zero, like 12345678, back into the text 012345678.
What you'll make

The formula

| Number | Part | What it does | Result so far |
|---|---|---|---|
| 1 | A8 | The TIN as a number, with its zero lost. | 12345678 |
| 2 | "000000000" | The pattern: always nine digits. | "000000000" |
| 3 | TEXT( … ) | Adds zeros in front until there are nine. | "012345678" |
The result is text, so Excel keeps the leading zero. The TINs here are made-up.
=TEXT(A8,"000000000")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 TIN numbers into the green column of the Template tab. The nine-digit TINs 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 TINs. It adds zeros in front but can't recover other lost digits.
Microsoft's help: TEXT function
OTHER ROUTES YOU MIGHT LIKE

Insert the EIN hyphen preserving zeroes
012345678 → 01-2345678
Get the template →
Remove the display hyphen from an EIN
01-2345678 → 012345678
Get the template →
Remove spaces and hyphens from a TIN
01 - 2345678 → 012345678
Get the template →
Merge a few test letters before the whole mailing
Whole mailing → records 2 to 4 only
Take this route →