Remove square brackets around a name
Turn [Ava Reed] into Ava Reed so names print without brackets.
What you'll make
![In Excel: [Ava Reed] becomes Ava Reed.](/assets/template-story/remove-square-brackets-around-a-name-make.png)
The formula

| Number | Part | What it does | Result so far |
|---|---|---|---|
| 1 | AND( … ) | True when the name starts with [ and ends with ]. | TRUE |
| 2 | TRIM(MID(TRIM(A8),2,LEN(TRIM(A8))-2)) | Drops the first and last character. | "Ava Reed" |
| 3 | TRIM(A8) | The name as it is, when the brackets don't match. | Not used for row 8 |
| 4 | IF( … ) | Removes the brackets only when part 1 is true. | "Ava Reed" |
Read it left to right. Only one pair at the very ends comes off.
=IF(AND(LEFT(TRIM(A8),1)="[",RIGHT(TRIM(A8),1)="]",LEN(TRIM(A8))>=2),TRIM(MID(TRIM(A8),2,LEN(TRIM(A8))-2)),TRIM(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. Paste names into the green column of the Template tab. Names without brackets fill in by themselves.
- Move them into your letter. Copy the results. Then use Paste Special and choose Values.
Before you send
A bracket on one side only and brackets inside a name both stay. Check those rows.
Route: Get names ready for the letter
Microsoft's help: MID function
OTHER ROUTES YOU MIGHT LIKE

Fix doubled quotes in an exported name
Ava ""Avie"" Reed → Ava "Avie" Reed
Get the template →
Decode an HTML ampersand in a name
Ava Reed & Noah Park → Ava Reed & Noah Park
Get the template →
Replace HTML br tags in names
Ava<br>Reed → Ava Reed
Get the template →
Fix "Dear ," when a first name is blank
(blank) → Dear colleague,
Take this route →