How can I separate the following numeric/text combination into two (2) separate columns in Excel?
302ALTO
406AMZN
451AMRC
404AMAD
605ANCC
405ADRC
The result would be:
302 ALTO
406 AMZN
451 AMRC
404 AMAD
605 ANCC
405 ADRC
How can I separate the following numeric/text combination into two (2) separate columns in Excel?
302ALTO
406AMZN
451AMRC
404AMAD
605ANCC
405ADRC
The result would be:
302 ALTO
406 AMZN
451 AMRC
404 AMAD
605 ANCC
405 ADRC
Jim15
You can use Data | Text-to-columns, with a fixed width for the first field of 3 characters.
Hope this helps.
Pete
Use this to get the numbers out:
=MID(A1,MIN(FIND({0,1,2,3,4,5,6,7,8,9},A1&"0123456789")),SUM(LEN(A1)-LEN(SUBSTITUTE(A1,{0,1,2,3,4,5,6,7,8,9},""))))
Use this to get the text:
=SUBSTITUTE(A1,MID(A1,MIN(FIND({0,1,2,3,4,5,6,7,8,9},A1&"0123456789")),SUM(LEN(A1)-LEN(SUBSTITUTE(A1,{0,1,2,3,4,5,6,7,8,9},"")))),"")
If you like my answer please click on * Add Reputation
Don't forget to mark threads as "Solved" if your problem has been resolved
"Nothing is so firmly believed as what we least know."
--Michel de Montaigne
to get the number (any digits)
=LEFT(A1,SUMPRODUCT((ISNUMBER(--MID(A1,ROW($1:$10),1))*1)))
to get the text
=SUBSTITUTE(A1;LEFT(A1;SUMPRODUCT((ISNUMBER(--MID(A1;ROW($1:$10);1))*1)))
Well, we can only go off the examples you have given, which all show 3 numeric digits. If your data is all like that then you can put this in B1:
=LEFT(A1,3)*1
where the *1 will convert the text values into numbers - omit that if not required.
Then in C1 you can have this:
=SUBSTITUTE(A1,B1,"")
Copy both down as far as you need to.
If you want only those two columns, then fix the values in columns B and C using copy | paste special | values | OK then <Esc>, and then delete column A.
Hope this helps.
Pete
Thank you all!
You're welcome. Don't forget to thank those who helped by clicking on Add Reputation * and please mark thread as "Solved" if your issue has been resolved. (Selecting Thread Tools-> Mark thread as Solved).
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks