Array Functions
Beginner

TEXTBEFORE: the part before the @

The mirror image of TEXTAFTER.

Task:

The new chat tool uses the part of each email before the @ as a username. In C2:C6 extract it.

Hints

+5 XPno-hints bonus

Solve it on your own to keep the bonus. Each hint gets one step closer to the formula.

The data in this exercise

This is the grid you start with. Cell references in the task — B6, C2 — point at the row numbers and column letters below.

6 rows × 3 columns5 cells you fill in
ABC
1NameEmailUsername
2Ines Moreauines.moreau@harbour.co
3Jon Pricejprice@harbour.co
4Kemi Adekemi.ade@harbour.co
5Lars Berglberg@harbour.co
6Mo Haddadm.haddad@harbour.co
What this exercise teachesMay contain the answer

LEFT(B2,FIND("@",B2)-1) gets the same result with an off-by-one waiting to happen. TEXTBEFORE says what it means — the text before the @ — and needs no arithmetic at all.