Basic Functions
Intermediate

COUNTIF with a wildcard

Count the cells that end with, start with or contain some text.

Task:

Before a mailing you want to know how many sign-ups used a Gmail address and how many came from your own company domain. Put the Gmail count in B10 and the count of addresses starting with sales@ in B11.

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.

11 rows × 2 columns2 cells you fill in
AB
1NameEmail
2J. Owusujowusu@gmail.com
3R. Patelsales@harbourtools.co.uk
4L. Novaklnovak@outlook.com
5T. Reyestreyes.work@gmail.com
6M. Byrnesales@byrneandco.ie
7K. Adeyemik.adeyemi@gmail.com
8S. Lindqvistoffice@lindqvist.se
9
10Gmail addresses
11Start with sales@
What this exercise teachesMay contain the answer

An exact-match COUNTIF on "gmail.com" finds nothing, because no cell holds only that. The asterisk lets the condition describe a pattern — where the known text sits — which is how real lists of emails, codes and references are usually searched.