spanspace
Board Regular
- Joined
- Jan 3, 2007
- Messages
- 159
OK so my issue is this. I need line 5 to look like line 2 for anyone that has 3 names. This hasn't been an issue in the past and my old formula worked like a champ for people with just first and last. Now I have one person that has 3 names and it doesn't work as intended. I need help.
Excel 2010
Excel Workbook | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
A | B | C | D | E | F | G | H | I | J | |||
1 | UNIQUE ID | ID | Name | |||||||||
2 | 2427 T, MATTHEW PAUL | 2427 | MATTHEW PAUL TESTER | |||||||||
3 | ||||||||||||
4 | 1838 R, JOHN | 1838 | JOHN ROBERTS | |||||||||
5 | 2427 T, MATTHEW | 2427 | MATTHEW PAUL TESTER | |||||||||
Sheet1 |
Cell Formulas | ||
---|---|---|
Range | Formula | |
A4 | =IF(G4=""," ",CONCATENATE(LEFT(G4,4)," ",LEFT(TRIM(CLEAN(RIGHT(SUBSTITUTE(H4," ",REPT(" ",50)),50))),1),", ",TRIM(SUBSTITUTE(LEFT(H4,FIND(" ",H4)),CHAR(160),CHAR(32))))) | |
A5 | =IF(G5=""," ",CONCATENATE(LEFT(G5,4)," ",LEFT(TRIM(CLEAN(RIGHT(SUBSTITUTE(H5," ",REPT(" ",50)),50))),1),", ",TRIM(SUBSTITUTE(LEFT(H5,FIND(" ",H5)),CHAR(160),CHAR(32))))) |