Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Excel extract 2

Status
Not open for further replies.

sabetik

IS-IT--Management
Nov 16, 2003
80
GU
Is there a function in the EXCEL to reterive just portion of the test. Ex;

salesmanager@test.com. just need to extract all words before the "@". salesmanager.

Thanks
kamran
 



hi,

If the value is in A1
[tt]
=LEFT(A1,FIND("@",A1)-1)
[/tt]


Skip,
[sub]
[glasses] [red][/red]
[tongue][/sub]
 
Hi kamran,

If your data is in column A...you could use something like this in column B.

=LEFT(A1,FIND("@",A1)-1)

HTH.

Peter.

Remember- It's nice to be important,
but it's important to be nice :)
 
Nice one Skip!

Remember- It's nice to be important,
but it's important to be nice :)
 
Or Data / Text to Columns / delimited / Other and put an @ sign in the 'Other' field. Then just choose not to import the second column. That way it is all done in situ with no need for helper columns.

Regards
Ken.........

----------------------------------------------------------------------------
[peace]It's easier to beg forgiveness than ask permission[2thumbsup]
----------------------------------------------------------------------------
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top