ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Text to column from end or splitting (https://www.excelbanter.com/excel-discussion-misc-queries/269682-text-column-end-splitting.html)

louiedelgrande

Text to column from end or splitting
 
Hi, I have data in this format:

AAA111 Daycare Centre 40,066
ABC123 Daycare 18,231
A B C Charter Public School 8,090,691
Education House 8,088,750

-------------------

So I want to separate the data into two columns. The first column the name and the second the number value. It's a bit complicated because some of the company names have numbers in them.

Any help for how to split these cells? I was thinking text to columns, but there is no delimiter that works well. I'll bet there is a solution, but I'm not smart enough to figure it out. One of you smart people out there might be able to help I hope.

Thanks.

Mazzaropi

Quote:

Originally Posted by louiedelgrande (Post 963899)
Hi, I have data in this format:

AAA111 Daycare Centre 40,066
ABC123 Daycare 18,231
A B C Charter Public School 8,090,691
Education House 8,088,750

-------------------

So I want to separate the data into two columns. The first column the name and the second the number value. It's a bit complicated because some of the company names have numbers in them.

Any help for how to split these cells? I was thinking text to columns, but there is no delimiter that works well. I'll bet there is a solution, but I'm not smart enough to figure it out. One of you smart people out there might be able to help I hope.

Thanks.

--------------------------------------------------------------------------

Dear louiedelgrande, Good Morning.

Suppose your data is at column A starting at A2

Then DO:

First Part of Text:
B2 -- =MID(A2,1,(FIND(" ",A2,(FIND(",",A2)-4))-1))

Second Part of Text:
C2 -- =RIGHT(A2,(LEN(A2)-FIND(" ",A2,(FIND(",",A2)-4))))


Try this one and tell me if it worked for you.

Feel free to ask anything about it.


All times are GMT +1. The time now is 09:04 PM.

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