Hi,
I have a list of several thousand items, which consist of several different names together like this:
Mr P Thompson & Mrs S Thompson & Mr A Thompson
Mr C Guy-Johnson & Mrs A Guye-Johnson & Miss J Guye-Johnson
Mrs Fuller & Ms D Fuller & Dr K U Fuller
Dr V Patel & Dr OO Patel
Mr B Burden & Mr MP Wood & Ms C Pollock
Mr PW Philips & Mrs PW Philips
Dr D Watson & S Holmes
Mr R Polanski & Mrs S Polanski
Mr S Spielberg & Miss G Spielberg & Mrs T Spielberg
Sometimes the surname is repeated within the cell, sometimes it is not.
I want to build a formula that will determine if the surname is repeated, and return a string where the Salutations/titles and inititals are concatenated with the Surname at the end, unless the surnames are different.
For example,
- Mr S Spielberg & Miss G Spielberg & Mrs T Spielberg
- Mr R Polanski & Mrs S Polanski
would become,
- Mr S & Miss G & Mrs T Spielberg
- Mr R & Mrs S Polanski
BUT:
- Mr B Burden & Mr MP Wood & Ms C Pollock
- Dr D Watson & S Holmes
would remain the same as the surnames are different
Is it possible to do that with formulas, (and not splitting the names using Text to Columns), and how would I do that please?
thanks
Philip
I have a list of several thousand items, which consist of several different names together like this:
Mr P Thompson & Mrs S Thompson & Mr A Thompson
Mr C Guy-Johnson & Mrs A Guye-Johnson & Miss J Guye-Johnson
Mrs Fuller & Ms D Fuller & Dr K U Fuller
Dr V Patel & Dr OO Patel
Mr B Burden & Mr MP Wood & Ms C Pollock
Mr PW Philips & Mrs PW Philips
Dr D Watson & S Holmes
Mr R Polanski & Mrs S Polanski
Mr S Spielberg & Miss G Spielberg & Mrs T Spielberg
Sometimes the surname is repeated within the cell, sometimes it is not.
I want to build a formula that will determine if the surname is repeated, and return a string where the Salutations/titles and inititals are concatenated with the Surname at the end, unless the surnames are different.
For example,
- Mr S Spielberg & Miss G Spielberg & Mrs T Spielberg
- Mr R Polanski & Mrs S Polanski
would become,
- Mr S & Miss G & Mrs T Spielberg
- Mr R & Mrs S Polanski
BUT:
- Mr B Burden & Mr MP Wood & Ms C Pollock
- Dr D Watson & S Holmes
would remain the same as the surnames are different
Is it possible to do that with formulas, (and not splitting the names using Text to Columns), and how would I do that please?
thanks
Philip