extracting text only

K

Keith

I have a column in a spreadsheet that contains a code. The code starts
with 2 - 4 letters then finishes with a series of numbers.

E.G. AGB7655

How can I extract only the letters at the beginning, when I don't know
how many there are going to be?
 
D

Domenic

Try the following...

=LEFT(A1,MIN(SEARCH({0,1,2,3,4,5,6,7,8,9},A1&"0123456789"))-1)

Hope this helps!
 

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