Excel help separating /

J

jmmobile

I am working on spreadsheet that has a list of names in the following format: “Your T Name/the company”
I used the following formula to list the last name in an adjacent cell: =IF(ISERROR(SEARCH(" ",A101,SEARCH(" ",A101)+1)),RIGHT(A101,LEN(A101)-SEARCH(" ",A101)),RIGHT(A101,LEN(A101)-SEARCH(" ",A101,SEARCH(" ",A101)+1)))
However, since this list includes our internal email address the results are coming up as follows: “Name /the company” Can someone help me by providing a formula to remove the “/the company” from the last name field?
 
C

Claus Busch

Hi,

Am Tue, 10 Sep 2013 12:25:45 -0700 (PDT) schrieb (e-mail address removed):
I am working on spreadsheet that has a list of names in the following format: ?Your T Name/the company?
I used the following formula to list the last name in an adjacent cell: =IF(ISERROR(SEARCH(" ",A101,SEARCH(" ",A101)+1)),RIGHT(A101,LEN(A101)-SEARCH(" ",A101)),RIGHT(A101,LEN(A101)-SEARCH(" ",A101,SEARCH(" ",A101)+1)))
However, since this list includes our internal email address the results are coming up as follows: ?Name /the company? Can someone help me by providing a formula to remove the ?/the company? from the last name field?

try insert a new column right of your column => Data =>TextToColumns =>
Separated => Separator = / and don't import the column with company

Regards
Claus B.
 
R

Ron Rosenfeld

I am working on spreadsheet that has a list of names in the following format: “Your T Name/the company”
I used the following formula to list the last name in an adjacent cell: =IF(ISERROR(SEARCH(" ",A101,SEARCH(" ",A101)+1)),RIGHT(A101,LEN(A101)-SEARCH(" ",A101)),RIGHT(A101,LEN(A101)-SEARCH(" ",A101,SEARCH(" ",A101)+1)))
However, since this list includes our internal email address the results are coming up as follows: “Name /the company” Can someone help me by providing a formula to remove the “/the company” from the last name field?

I don't understand what the fact that the "list includes our internal email address" plays in designing a solution. However, to return the last word prior to the "/", try:

=TRIM(RIGHT(SUBSTITUTE(LEFT(A101,FIND("/",A101)-1)," ",REPT(" ",99)),99))
 
J

James M

all,

Thank you for providing solutions and replying to my post. After I walked away and came back to the spreadsheet, I used find and replace which wasn't the best option but it worked.

Best Regards,
 

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