FIND returns an error when the text is not found. This error is useful: with IFERROR or ISERROR, it becomes a test. You can then check if an email contains an @, or if an address ends with a given domain.
The following exercise shows you how to test the presence of a text with FIND.
What you will practice in this exercise
You work on a list of email addresses. You answer 6 questions, one formula per question:
- Does the email contain an @? (FIND + IFERROR)
- Display “Valid” instead of the position
- Test another email
- Does the email contain “.fr”?
- Test another email for “.fr”
- Full check: contains @ and length over 5 (AND)
Practice with exercises
FIND — Test for presence
Check whether an address contains @ or .com with IFERROR and ISERROR.
Related articles
All the exercises in this series are based on real cases found on Excel forums. Each one answers a question that Excel users really ask.