Remove an import code before a name
Turn 0042Ava Reed into Ava Reed by removing the first 4 characters.
What you'll make

The formula

| Number | Part | What it does | Result so far |
|---|---|---|---|
| 1 | A8 | The cell with the code and the name. | "0042Ava Reed" |
| 2 | B8+1 | Starts right after the code, at character 5. | 5 |
| 3 | LEN(A8) | Counts every character, so nothing is cut off. | 12 |
| 4 | MID( … ) | Keeps the characters from part 2 onward. | "Ava Reed" |
| 5 | TRIM( … ) | Removes any spaces left at the ends. | "Ava Reed" |
Each bracket wraps the one above it, so Excel works from the inside out.
=TRIM(MID(A8,B8+1,LEN(A8)))How to use it
Yellow bar at the top? Click Enable Editing.
- See it work. The Example tab shows 20 made-up names with the formula already in.
- Use your own names. On the Template tab, paste the coded names into column A. Put how many code characters to remove into column B. The names fill in by themselves.
- Move them into your letter. Copy the results. Then use Paste Special and choose Values.
Before you send
Count the code's characters exactly. One too few leaves a digit in front; one too many cuts off a letter.
Route: Get names ready for the letter
Microsoft's help: MID function
OTHER ROUTES YOU MIGHT LIKE

Remove a fixed-length code after a name
Ava Reed0042 + 4 characters → Ava Reed
Get the template →
Keep a name before the last separator
Ava-Reed-0042 + separator - → Ava-Reed
Get the template →
Keep a name after the last separator
NE|Active|Ava Reed + | → Ava Reed
Get the template →
Fix "Dear ," when a first name is blank
(blank) → Dear colleague,
Take this route →