Book1 | |||||
---|---|---|---|---|---|
A | B | C | |||
1 | RM1-CT | Joe Smith | RM1-CT-Smith | ||
Sheet16 |
Cell Formulas | ||
---|---|---|
Range | Formula | |
C1 | =A1&"-"&MID(B1,FIND(" ",B1)+1,255) |
hello,Hi,
Here's another way:
A B C 1 RM1-CT Joe Smith RM1-CT-Smith
<colgroup><col style="width: 25pxpx"><col><col><col></colgroup><thead>
</thead><tbody>
</tbody>Sheet16
Worksheet Formulas
Cell Formula C1 =A1&"-"&MID(B1,FIND(" ",B1)+1,255)
<thead>
</thead><tbody>
</tbody>
<tbody>
</tbody>
Is the separator between the first and last name always going to be an underbar character or will it sometimes be an underbar character and other times a space character between the first and last names?actually i see the issue in column N the name i entered as follows for example Joe_Smith
actually i see the issue in column N the name i entered as follows for example Joe_Smith
how would i account for the _ between the names
lastly could you also break down for the me what the formula means/does so i fully understand it as opposed to just copying a formula
thanks for your time and help
Book1 | |||||
---|---|---|---|---|---|
A | B | C | |||
1 | RM1-CT | Joe Smith | RM1-CT-Smith | ||
2 | RM1-CT | Joe_Smith | RM1-CT-Smith | ||
3 | RM1-CT | Joe_ Smith | RM1-CT-Smith | ||
4 | RM1-CT | Joe _Smith | RM1-CT-Smith | ||
5 | RM1-CT | Joe _ Smith | RM1-CT-Smith | ||
6 | RM1-CT | Joe_ _Smith | RM1-CT-Smith | ||
Sheet16 |
Cell Formulas | ||
---|---|---|
Range | Formula | |
C1 | =A1&"-"&TRIM(SUBSTITUTE(MID(B1,FIND(" ",SUBSTITUTE(B1&"_","_"," "))+1,255),"_","")) |