Splitting out name, title and known as name

Declamatory

Active Member
Joined
Nov 6, 2014
Messages
310
God morning folks,

I have the following table:

Job holderTitleForenameSurnameKnown As
Pickford, Mr LeightonMr LeightonPickford
Baines-Gueye, Mr RichardMr RichardBaines-Gueye
Digne, Mrs NgoloMrs NgoloDigne
Southgate, Miss Nicola (Nikki)Miss Nicola (Nikki)Southgate(Nikki)
Schneiderlin, Doctor MorganDoctor MorganSchneiderlin
Keane, Mrs Gemma Louise (Gemma)Mrs Gemma Louise (Gemma)KeaneLouise (Gemma)
***Vacant***
Claus, Mrs JoanneMrs JoanneClaus
Claus, Mrs JoanneMrs JoanneClaus
Datix-Pickford, Mr JordanMr JordanDatix-Pickford
Datix-Mina, Mr BernardMr BernardDatix-Mina
Richarlison, Mr RichardMr RichardRicharlison
Coleman, Dr James SeamusDr James SeamusColeman


<colgroup><col><col><col><col><col></colgroup><tbody>
</tbody>

<colgroup><col><col><col><col><col></colgroup><tbody>
</tbody>

The columns split out the data from column A.

Formula in B2= =IFERROR(MID(A2,SEARCH(" ",A2,1)+1,SEARCH(" ",A2,SEARCH(" ",A2,1)+1)-SEARCH(" ",A2,1)),"")

Formula in C2= =IFERROR(RIGHT(A2,LEN(A2)-SEARCH(" ",A2,SEARCH(" ",A2,1)+1)),"")

Formula in D2= =IFERROR(LEFT(A2,SEARCH(" ",A2,1)-2),"")

Formula in E2 = =IFERROR(RIGHT(A2,LEN(A2)-SEARCH(" ",A2,SEARCH(" ",A2,SEARCH(" ",A2,1)+1)+1)),"")

Is there a way I can:


  1. remove the ‘known as’ name and parentheses from the forename column, without using MID in the formula
  2. remove the parentheses in the ‘known as’ column leaving just the known as name?

Thanks and kind regards,
 

Some videos you may like

Excel Facts

Can you AutoAverage in Excel?
There is a drop-down next to the AutoSum symbol. Open the drop-down to choose AVERAGE, COUNT, MAX, or MIN

Tim_Excel_

Well-known Member
Joined
Jul 12, 2016
Messages
512
The answer to question 1:
=IFERROR(LEFT(A2,FIND("(",A2,1)-2),"")
Note that with this formula I assume that there is no text after the 'known as' name.

The answer to question 2:
=IFERROR(SUBSTITUTE(SUBSTITUTE(E5,"(",""),")",""))

You'd want to replace the cell references with the formulas you already have.
 
Last edited:

Declamatory

Active Member
Joined
Nov 6, 2014
Messages
310
Thanks for the reply Tim.

=IFERROR(SUBSTITUTE(SUBSTITUTE(E5,"(",""),")","")) works for Row 5 but for row 7 I get a result of Louise Gemma when her known name is just "Gemma".

Thanks
 

Tim_Excel_

Well-known Member
Joined
Jul 12, 2016
Messages
512
=IFERROR(SUBSTITUTE(RIGHT(E5,LEN(E5)-FIND("(",E5)),")",""),"")

Tested and works, good luck!
 

Watch MrExcel Video

Forum statistics

Threads
1,108,655
Messages
5,524,135
Members
409,562
Latest member
meeranaskar

This Week's Hot Topics

Top