Hi,
I have a question regarding deletion and replacement in a new field.
ie. A1 reads dave.jones@microsoft.com
I want A2 to read microsoft
What is the code to delete "dave.jones@" and ".com" to be revealed in a new field.
Cheers.
Hi,
I have a question regarding deletion and replacement in a new field.
ie. A1 reads dave.jones@microsoft.com
I want A2 to read microsoft
What is the code to delete "dave.jones@" and ".com" to be revealed in a new field.
Cheers.
Last edited by ecommerabmercer; 12-07-2009 at 12:47 PM.
Try:
=MID(A1,FIND("@",A1)+1,FIND(".com",A1)-FIND("@",A1)-1)
Where there is a will there are many ways.
If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner
Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.
or if it is not always .com at the end...
=MID(A1,FIND("@",A1)+1,LEN(A1)-FIND("@",A1)-4)
Many Thanks
it could be something like martin.wilson@fred.co.uk
so try
=LEFT(MID(A1,FIND("@",A1)+1,20),FIND(".",MID(A1,FIND("@",A1)+1,20))-1)
"Unless otherwise stated all my comments are directed at OP"
Mojito connoisseur and now happily retired
where does code go ?
look here
how to insert code
how to enter array formula
why use -- in sumproduct
recommended reading
wiki Mojito
how to say no convincingly
most important thing you need
Martin Wilson: SPV
and RSMBC
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks