About this lesson

B3 LESSON 12 · PASS

Wildcards in COUNTIF and SUMIF

In COUNTIF and SUMIF criteria, * matches any number of characters and ? matches exactly one. =SUMIF(A2:A13,"*billing*",B2:B13) adds every line whose description contains "billing", and "licen?e" matches both licence and license.

=COUNTIF(A2:A13,"Cloud hosting*")

What you'll practise

Review an energy retailer's IT costs from a messy ledger export: match descriptions that begin with, contain or are spelt two ways, using * and ?.

4 steps · 40 points · the cells outlined in gold below

  • COUNTIF
  • SUMIF
  • wildcards
  • * and ?

The data

AB
1IT opex, Q1 FY26Amount ($k)
2Cloud hosting - billing186.4
3Software licence - payroll42.7
4Contractor - billing upgrade238.5
5Software License - CRM97.3
6Hardware - laptops64.8
7Cloud hosting - analytics121.9
8Software support - CRM33.6
9Telco - mobile plans28.2
10Software licence - finance75.1
11Contractor - cyber review112.4
12Software License - design18.9
13Cloud hosting - website154.7
14
15Cloud hosting lines
16Billing platform ($k)
17Software licences ($k)
18Licences % of IT opex

Semester pass · on sale soon

This drill comes with the semester pass.

Make a free account in the meantime: lessons 2 to 4 are yours now, your points are saved, and you can ask to hear first when the pass goes on sale, with a launch discount code.