About this lesson

B3 LESSON 11 · PASS

Wildcards in COUNTIF and SUMIF in Google Sheets

In Google Sheets, * in a COUNTIF or SUMIF criterion 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.

Using Excel? Do this lesson in Excel.

=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 · A$49 for six months

This drill comes with the semester pass.

Every lesson, for A$49 every six months. Cancel any time and you keep the pass until the six months you've paid for run out.