How do the TEXTBEFORE and TEXTAFTER functions in Excel work ... We will start with a very simple one. Let’s separate the username and the domain name from a list of emails. See below for the dataset ...