Get a preferred name from parentheses

Pull Avie out of Ava (Avie) Reed, so the name people use has its own column.

What you'll make

In Excel: Ava (Avie) Reed becomes Avie.

The formula

The formula, with a numbered bracket under each part.
NumberPartWhat it doesResult so far
1TEXTAFTER(A8,"(")Takes what comes after the opening parenthesis."Avie) Reed"
2TEXTBEFORE( … ,")")Keeps what comes before the closing parenthesis."Avie"
3TRIM( … )Removes any spaces left at the ends."Avie"
4IFERROR( … ,"")Shows nothing when a parenthesis is missing."Avie"

Each bracket wraps the one above it, so Excel works from the inside out.

=IFERROR(TRIM(TEXTBEFORE(TEXTAFTER(A8,"("),")")),"")

How to use it

Yellow bar at the top? Click Enable Editing.

  1. See it work. The Example tab shows 20 made-up names with the formula already in.
  2. Use your own names. Paste full names into the green column of the Template tab. Preferred names fill in by themselves.
  3. Move them into your letter. Copy the results. Then use Paste Special and choose Values.

Before you send

Only the first pair of parentheses is used, and a missing one gives a blank. Check blank rows and names with two pairs by hand.

Route: Get names ready for the letter

Microsoft's help: TEXTBEFORE function