there could be multiple underscores in the name column, for example Joe_Smith or Joe_Van_Smith etc
Give this formula a try...yesYes, but could there also be Joe Smith or Joe Van Smith as well?
Book1 | |||||
---|---|---|---|---|---|
A | B | D | |||
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 | ||
7 | RM1-CT | Joe_Van_Smith | RM1-CT-Smith | ||
8 | RM1-CT | Joe Van Smith | RM1-CT-Smith | ||
Sheet16 |
Cell Formulas | ||
---|---|---|
Range | Formula | |
D1 | =A1&"-"&TRIM(RIGHT(SUBSTITUTE(SUBSTITUTE(B1&" "," ","_"),"_",REPT(" ",50)),75)) |
We cannot tell from your post who you are addressing your comment to.this worked perfect..ty
could you please break it down for me? thank you for your time on this