• Status: Solved
  • Priority: High
  • Security: Public
  • Views: 48
  • Last Modified:

Excel String question

What formula can I use in an Excel field to look for the first occurrence of a character & return everything to the left of that?  
Basically, I have:   bill@aol.com
I want:                    bill
  • 2
2 Solutions
Subodh Tiwari (Neeraj)Excel & VBA ExpertCommented:
Assuming your string is in A2, then try this...

Open in new window

NorieVBA ExpertCommented:
Try this.

=LEFT(A1, FIND("@",A1)-1)
bleggeeAuthor Commented:
Thx both of you!!
Subodh Tiwari (Neeraj)Excel & VBA ExpertCommented:
You're welcome! :)
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: MCSA MCSE Windows Server 2012

This course teaches how to install and configure Windows Server 2012 R2.  It is the first step on your path to becoming a Microsoft Certified Solutions Expert (MCSE).

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now