I need help creating a formula to separate the text from the numbers into 2 separate columns.
Examples are:
A1= WILLIAM E 68 DIMICK ST APT 3 01 VOLK 42.50
A2= JONITA ARAUJO 129 PERKINS ST #2 01 HOND 37.50
A3= QIANGWEI 8 MORTON ST APT 3 03 TOYT 47.50
The 'Text to Column' function does not work because the formatting is not consistence. What I would like is a formula that separates out the text before the FIRST numeric number. So the end result would look like:
A1: WILLIAM E B1: 68 DIMICK ST APT 3 01 VOLK 42.50
A2: JONITA ARAUJO B2: 129 PERKINS ST #2 01 HOND 37.50
A3: QIANGWEI B3: 8 MORTON ST APT 3 03 TOYT 47.50
Is there a way to create a formula that will either search or find the first number in the string and let that be the deliminater?
Thanks, K
In B1:
=TRIM(LEFT(A1,MIN(FIND(0,SUBSTITUTE(A1,{1,2,3,4,5,6,7,8,9},0)&0))-1))
in C1:
=TRIM(SUBSTITUTE(A1,B1,""))
Microsoft MVP - Excel
Where there is a will there are many ways. Pick One!
Please read the Forum Rules
If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below
Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.
Preferred Charities: Lupus Canada and Sick Kids Foundation.
Feel Free to Donate if you want to, for the assistance you received today.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks