Questions

# I use MS Excel 2010. I have a list that conains email and non-email address

Tags:
Locked

### I use MS Excel 2010. I have a list that conains email and non-email address

I used the FIND and MID commands,using the "@" as the midstring but could only sort the fields to the right, truncating the name on the left. Is there a way to give me both halves of the string (full email address) or another way to do it?
Thanks

Edward

### I would convert text to columns using @ as the delimiter.

I am not an Excel guru, but I would parse/split the data first, then sort on the two halves.

The term for that is creating a 'helper column'

### Reponse To Answer

Thanks, but this trucates the field, eliminating everything to the right of the "@"

### Here is a formula that should do it

If your 1st e-mail address is in A1, type the following in B1: =IF(ISERROR(FIND("@",A1))=TRUE,"",LEFT(A1,FIND("@",A1)-1))
This should give you the part in front of the "@"
then type this in C1
=IF(ISERROR(FIND("@",A1))=TRUE,"",MID(A1,FIND("@",A1)+1,FIND(".",A1)-FIND("@",A1)-1))
This should give you the part between the "@" and the first "."

Hope this helps.

### Here is a formula that should do it

If your 1st e-mail address is in A1, type the following in B1: =IF(ISERROR(FIND("@",A1))=TRUE,"",LEFT(A1,FIND("@",A1)-1))
This should give you the part in front of the "@"
then type this in C1
=IF(ISERROR(FIND("@",A1))=TRUE,"",MID(A1,FIND("@",A1)+1,FIND(".",A1)-FIND("@",A1)-1))
This should give you the part between the "@" and the first "."

Hope this helps.

### I would convert text to columns using @ as the delimiter.

I am not an Excel guru, but I would parse/split the data first, then sort on the two halves.

The term for that is creating a 'helper column'

### Reponse To Answer

Thanks, but this trucates the field, eliminating everything to the right of the "@"

### Here is a formula that should do it

If your 1st e-mail address is in A1, type the following in B1: =IF(ISERROR(FIND("@",A1))=TRUE,"",LEFT(A1,FIND("@",A1)-1))
This should give you the part in front of the "@"
then type this in C1
=IF(ISERROR(FIND("@",A1))=TRUE,"",MID(A1,FIND("@",A1)+1,FIND(".",A1)-FIND("@",A1)-1))
This should give you the part between the "@" and the first "."

Hope this helps.