TEXT STRIPPING

N

NH

Looking for a formula to separate text from numbers
on col A i have values like 10pounds,100meters, 100yards

In short they are values with numbers and then text, with no space between
the two
I need the two separated in cols B and col C
 
F

Frank Kabel

Hi
use the following formulas:
1. Numeric portion:
=--LEFT(A1,SUMPRODUCT(--ISNUMBER(-LEFT(A1,seq))))

2. Text portion:
=MID(A1,SUMPRODUCT(--ISNUMBER(-LEFT(A1,seq))),255)

where seq is a defined name with the formula
=ROW(INDIRECT("1:1024"))
 
N

NH

Thanks frank I works
Frank Kabel said:
Hi
use the following formulas:
1. Numeric portion:
=--LEFT(A1,SUMPRODUCT(--ISNUMBER(-LEFT(A1,seq))))

2. Text portion:
=MID(A1,SUMPRODUCT(--ISNUMBER(-LEFT(A1,seq))),255)

where seq is a defined name with the formula
=ROW(INDIRECT("1:1024"))
 
G

GerryK

I'd like to use this but I'm getting a 0 in front of the
text portion.
How can I eliminate that!
TIA
 
F

Frank Kabel

Hi
what is the exact formula you have used and what is your testdata.
Maybe change the second formula to:
=MID(A1,SUMPRODUCT(--ISNUMBER(-LEFT(A1,seq)))+1,255)
 
G

GerryK

Hi Frank,
The +1 at the end works, Thank you!
I was trying to separate a long column list
of "addressstreet" such as 1234Anywhere.

GK
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top