ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Splitting text in one cell and combine in a new cell (https://www.excelbanter.com/excel-worksheet-functions/131741-splitting-text-one-cell-combine-new-cell.html)

JimR

Splitting text in one cell and combine in a new cell
 
I have a text value that looks like: "FRJ.P.RJ123456(0)". I want it to to
take only
the "RJ123456" piece and put it into another cell. I have tried to use the
Custom
feature in formatting the cell to look like "AAA.B.CCCCCCCC.DDD"
And then try to use TEXT(a1,"CCCCCCCC"). But the contents in the new cell is
always the whole text from Cell A1 and not just the piece I want.

T. Valko

Splitting text in one cell and combine in a new cell
 
Assuming all entries are in the same format:

=MID(A1,FIND(".",A1,FIND(".",A1)+1)+1,8)

Biff

"JimR" wrote in message
...
I have a text value that looks like: "FRJ.P.RJ123456(0)". I want it to to
take only
the "RJ123456" piece and put it into another cell. I have tried to use
the
Custom
feature in formatting the cell to look like "AAA.B.CCCCCCCC.DDD"
And then try to use TEXT(a1,"CCCCCCCC"). But the contents in the new cell
is
always the whole text from Cell A1 and not just the piece I want.





All times are GMT +1. The time now is 07:57 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com