extracting after a symbol

A

A.S.

what would be the correct formula to use to extract before or after a
specific character.

For example, if one cell has "Afghanistan=AF". I need to extract everything
before the "=", so that the next cell will just read "Afghanistan". Thanks.
 
A

A.S.

Also need help in extracting after the "=" so that the cell after will ready
"AF". Thanks
 
A

Allllen

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

=RIGHT(A1,LEN(A1)-FIND("=",A1))

if your Afghanistan=AF is in cell A1

HTH
 
T

T Kirtley

You can use functions like the following for a text string stored in cell A1:

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

=RIGHT(A1,LEN(A1)-FIND("=",A1))

Hope that helps,

TK
 

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