To separate text and numbers, you can use a formula based on the FIND function, the MIN function, and the LEN function with the LEFT or RIGHT function, depending on whether you want to extract the text or the number.
Take Excel 2016 on my computer as an example.
- Enter the ‘variant’ in cell A2:A12.
- To extract just the text to cell C2, use the formula =LEFT(A2,MIN(FIND({0,1,2,3,4,5,6,7,8,9},A2&"0123456789"))-1) in cell C2.
Where the formula =MIN(FIND({0 ,1 ,2 ,3 ,4 ,5 ,6 ,7 ,8 ,9} ,A2&“0123456789”)) means the starting position of the number. In this case, the starting position of the number in cell A2 is ‘9’. - To extract just the number to cell D2, use the formula =RIGHT(A2,LEN(A2)-MIN(FIND({0,1,2,3,4,5,6,7,8,9},A2&"0123456789"))+1) in cell D2.
- Drag the lower right corner of cell B2 to B12 and of C2 to C12.
This step is to quickly copy the formula to other cells.
Result:
Regards,
Erin
If an Answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.