# Extract second name from cell containing 2 names

#### davistax

##### New Member
Assume I have two names in cell A1 that are always in the same format:

example: John & Mary Smith

I need a formula that will place "Mary" in A2.

Have been stumbling around with this most of the day & am hitting a wall.

Help is greatly appreciated.

### Excel Facts

How to total the visible cells?
From the first blank cell below a filtered data set, press Alt+=. Instead of SUM, you will get SUBTOTAL(9,)
Hi.

So you mean there are never any middle names or other initials present?

Regards

Assume I have two names in cell A1 that are always in the same format:

example: John & Mary Smith

I need a formula that will place "Mary" in A2.
Maybe this (it will handle middle names/abbreviations as well as single names with an ampersand)...

=REPLACE(REPLACE(A1,1,FIND("&",A1&"&")+1,""),FIND(" ",REPLACE(A1,1,FIND("&",A1&"&")+1,"")&" "),99,"")

Last edited:
That's correct. Always first name of husband & wife, separated by "&", followed by last name.

Hi.

So you mean there are never any middle names or other initials present?

Regards

That's perfect! Thanks.

Maybe this (it will handle middle names/abbreviations as well as single names with an ampersand)...

=REPLACE(REPLACE(A1,1,FIND("&",A1&"&")+1,""),FIND(" ",REPLACE(A1,1,FIND("&",A1&"&")+1,"")&" "),99,"")

Replies
4
Views
412
Replies
4
Views
237
Replies
4
Views
372
Replies
12
Views
398
Replies
3
Views
360

1,206,971
Messages
6,075,925
Members
446,170
Latest member
zzzz02

### We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.

### Which adblocker are you using?

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

### Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

### Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back