Read the numeric sequence from a code
Turn the code AB000123 into the number 123, with the front zeros dropped.
What you'll make

The formula

| Number | Part | What it does | Result so far |
|---|---|---|---|
| 1 | A8 | The code: two letters, then six digits. | "AB000123" |
| 2 | RIGHT( … ,6) | Keeps the last six characters. | "000123" |
| 3 | VALUE( … ) | Reads them as a number, so the zeros drop. | 123 |
Read it from the inside out. The codes here are made-up.
=VALUE(RIGHT(A8,6))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 codes. Paste codes like AB000123 into the green column of the Template tab. The numbers fill in by themselves.
- Move them into your letter. Copy the results. Then use Paste Special and choose Values.
Before you send
This gives only the number, not the full ID. Keep the original code for anything you send.
Microsoft's help: VALUE function
OTHER ROUTES YOU MIGHT LIKE

Read an ID at the end of a web address
https://example.test/provider/000123?view=full → 000123
Get the template →
Read an ID by name from a web address
example.test/p?providerId=000123&view=full + providerId → 000123
Get the template →
Read a provider ID from a data snippet
{"providerId":"000123"} → 000123
Get the template →
Merge a few test letters before the whole mailing
Whole mailing → records 2 to 4 only
Take this route →