ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Excel help separating / (https://www.excelbanter.com/excel-worksheet-functions/449245-excel-help-separating.html)

[email protected]

Excel help separating /
 
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?

Claus Busch

Excel help separating /
 
Hi,

Am Tue, 10 Sep 2013 12:25:45 -0700 (PDT) schrieb :

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.
--
Win XP PRof SP2 / Vista Ultimate SP2
Office 2003 SP2 /2007 Ultimate SP2

Ron Rosenfeld[_2_]

Excel help separating /
 
On Tue, 10 Sep 2013 12:25:45 -0700 (PDT), wrote:

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))

James M[_3_]

Excel help separating /
 
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,

On Tuesday, September 10, 2013 3:30:36 PM UTC-4, Claus Busch wrote:
Hi,



Am Tue, 10 Sep 2013 12:25:45 -0700 (PDT) schrieb :



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.

--

Win XP PRof SP2 / Vista Ultimate SP2

Office 2003 SP2 /2007 Ultimate SP2



All times are GMT +1. The time now is 02:14 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com