Extra string before a specific character

S

Sandra

I have a column of data, like CA-, THAMES-, AWR-. etc. I want to pull all
data before the "-". It could be 2 characters to 6. Any ideas? Thanks.
 
P

Pete_UK

Try this:

=LEFT(A1,FIND("-",A1)-1)

assuming your test is in A1, then copy down as required.

Hope this helps.

Pete
 

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