The part before the @
A Google Sheets formula exercise from Sheetsdrill. Solve it with a formula bar on a live sheet in your browser, and it is checked the moment you submit.
The task
Return the user name of each email address: everything before the @ sign. Fill B2 and B3 using LEFT and FIND.
What this exercise teaches
FIND returns a position and LEFT cuts by length, so together they split text at a marker wherever it sits. REGEXEXTRACT and SPLIT do the same job; LEFT and FIND also work in every other spreadsheet.
A hint if you get stuck
FIND("@", A2) gives the position of the @. LEFT takes that many characters minus one.
Try it now, free, no account needed
Your first 15 exercises on Sheetsdrill are free. Open it on the practice page, solve it, and get instant feedback with a hint. A free account adds the worked solution; Pro unlocks every exercise, timed mode and the certificate.
Open this exerciseMore exercises in Text and dates
- First name with SPLIT
- Join the confirmed names
- Address without gaps
- Valid order IDs
- Pull out the invoice number
- Digits only
- Month label with TEXT
- Full years of service
- Working days with holidays
- Due at the end of next month
- Tidy up pasted names
- Items in a comma list
- Domain of an email address
- Renewal date with EDATE
- Orders placed at the weekend
- Amount inside a sentence
- Mask an account number
- Ship-by date in working days
- Day of the week as a word
- Days until the deadline
- Flag addresses that are not emails