Excel – There is any function in EXCEL which is separate text from number

excelfunctionregexstring

I mean for example in A1: 123b maybe the best put 123 to B and "b" for C column. Any function for that?

Best Answer

If the numbers are always at the beginning, then, for the numbers:

=LOOKUP(9.9E+307,--LEFT(A1,ROW(INDIRECT("1:20"))),LEFT(A1,ROW(INDIRECT("1:20"))))

and for the letters:

   =MID(A1,LEN(LOOKUP(9.9E+307,--LEFT(A1,ROW(INDIRECT("1:20"))),LEFT(A1,ROW(INDIRECT("1:20")))))+1,20)

The "20"'s in the formulas just needs to be some number that is larger than the length of the longest string you might be processing.