Remove the char from right

R

Ranjith Kurian

i need a excel function to remove the character from right, and its been
identified by the symbol "-", example as shown below

QUESTION:
Code
123-ibb
US456-europ
UKASDGG-1234HR

ANSWERS:
Code
123
US456
UKASDGG
 
J

JLatham

Second attempt.
Assume that 123-ibb is in cell A1, then in another cell put this formula:
=LEFT(A1,FIND("-",A1)-1)
 
R

Ranjith Kurian

super dude, its working fine and thanks a lot

JLatham said:
Second attempt.
Assume that 123-ibb is in cell A1, then in another cell put this formula:
=LEFT(A1,FIND("-",A1)-1)
 

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