Wildcards let you count text you only know in part. The asterisk replaces any group of characters: “L*” finds every city that starts with L, “*e” every city that ends with e. Combined with COUNTIFS, they let you mix a partial text with a number criterion in the same formula.
The following exercise shows you how to count with two criteria, then with wildcards, on a weather log of several cities.
What you will practice in this exercise
You work on weather readings for several cities. You answer 8 questions, one formula per question:
- Paris with a positive temperature (COUNTIFS, 2 criteria)
- Snow in Lille (2 text criteria)
- Temperature of 5°C or more and no rain (2 number criteria)
- Rain and temperature under 5°C (operators)
- Cities starting with L with rain (wildcard L*)
- Cities ending in e with sun (wildcard *e)
- Cities containing “or” with 4 mm of rain or more (wildcard *or*)
- Paris, read from a cell, with rain (cell reference)
Practice with exercises
COUNTIFS wildcards — Weather log
Count with wildcards (*) to match partial text in your weather data.
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.