bearcub
Well-known Member
- Joined
- May 18, 2005
- Messages
- 734
- Office Version
- 365
- 2013
- 2010
- 2007
- Platform
- Windows
I have to extract the last name and join it with elements to create a position title that is used in an application.
This is the formula:
TRIM(E10&"-"&F10&"-"&UPPER(RIGHT(A10,SEARCH(" ",A10))))&"-"&G10
The issue I am having with is in the Upper(Right) section that extracts the last name from the name.
The formula works okay until I have people a middle name, etc. The formula works well only if their are 2 works. The formula goes wonky when I have a 1st, middle & last name.
Is there a formula that will find the last space in the name and extract the last name? Note row 10, this person has 4 names instead of 2. And the result is including the 2nd, 3rd & 4th words of the name.
This is the source data and results (Column C)
XD]C11[/XD]
This is the formula:
TRIM(E10&"-"&F10&"-"&UPPER(RIGHT(A10,SEARCH(" ",A10))))&"-"&G10
The issue I am having with is in the Upper(Right) section that extracts the last name from the name.
The formula works okay until I have people a middle name, etc. The formula works well only if their are 2 works. The formula goes wonky when I have a 1st, middle & last name.
Is there a formula that will find the last space in the name and extract the last name? Note row 10, this person has 4 names instead of 2. And the result is including the 2nd, 3rd & 4th words of the name.
This is the source data and results (Column C)
2023 New Hires and Terminations.xlsb | |||||
---|---|---|---|---|---|
A | B | C | |||
1 | Month: | Oct 22 | |||
2 | Employee | Start Date | Position | ||
3 | Veronika Westerlund | 10/3/2022 | EMEA-SALES- WESTERLUND-7F7R8MA6K | ||
4 | Andy Dedman | 10/3/2022 | EMEA-CS- DEDMAN-VO6YY6PJP | ||
5 | Roberta Polesi | 10/3/2022 | LATAM-CS- POLESI-RHS8ECV5E | ||
6 | Brandon Jackson | 10/3/2022 | NALA-ADR- JACKSON-PUHP7ZZIY | ||
7 | Jatinder Luthra | 10/10/2022 | NALA-SE- LUTHRA-G5REO3FF1 | ||
8 | Hervé Tchaha | 10/17/2022 | EMEA-SALES- TCHAHA-KYKT6MJXH | ||
9 | Thore Rabe | 10/17/2022 | EMEA-SALES- RABE-LUNB98N9Z | ||
10 | Gener Javier Perez Torres | 10/31/2022 | EMEA-CS- JAVIER PEREZ TORRES-PSN485Q94 | ||
11 | Darrick Webster | 10/17/2022 | NALA-SE- WEBSTER-GFHM0NH7G | ||
Oct 22 |
Cell Formulas | ||
---|---|---|
Range | Formula | |
C11 | =TRIM(E11&"-"&F11&"-"&UPPER(RIGHT(A11,SEARCH(" ",A11))))&"-"&G11 | |
Press CTRL+SHIFT+ENTER to enter array formulas. |