How to Use the COUNTIFS Function in Excel

The COUNTIFS function allows you to count records that meet multiple conditions in a dataset. It’s one of the most useful functions for analyzing operational data. In this lesson, you’ll learn how COUNTIFS works and see how it can be used to analyze HVAC service call data, such as counting jobs by service type, technician, or combinations of both.

Download the Excel file used in this tutorial:

The COUNTIFS Function

This tutorial shows how to use the COUNTIFS function to count records that meet one or more conditions in Excel. In the example from the video, the function is used to count HVAC jobs by job type, by technician, and then by both technician and job type together.

1. Start by counting one category at a time

  • Begin with a list of job types such as Emergency, Install Estimate, Maintenance, and Repair
  • Use COUNTIFS to count how many rows match each job type
  • Select the Job Type column as your criteria range
  • Reference the cell that contains the job type label you want to count
  • Fill the formula down to return a count for each category in the list

2. Count jobs by technician

  • Create a second list with technician names
  • Use COUNTIFS again, this time pointing to the Technician column
  • Reference the cell containing each technician’s name
  • Drag or double-click to fill the formula down the list
  • This gives you a quick count of how many jobs were assigned to each technician

3. Combine two conditions in one count

  • Build a small matrix where one dimension is technician and the other is job type
  • Use COUNTIFS with two criteria:
    • one for the Technician column
    • one for the Job Type column
  • This lets you count combinations such as:
    • Emergency calls handled by Anthony
    • Maintenance jobs completed by Mike Torres
    • Repairs assigned to another technician

4. Lock your references before copying across the table

  • When building the technician-by-job-type table, use absolute referencing so the formula copies correctly across rows and columns
  • Use F4 to cycle through reference locking options
  • Lock the row or column depending on whether the label should stay fixed when the formula is copied
  • This is what allows one formula to be pasted across the full matrix without breaking

5. Copy the formula across the matrix

  • Once the references are locked correctly, copy the formula
  • Paste it across the full table
  • Excel will now return the count for each technician and job type combination
  • This creates a more detailed breakdown than the simple single-condition counts

6. Check your results with totals

  • Add totals to each row or column to verify the counts
  • Use SUM or the shortcut Alt + = to total the results
  • Compare those totals to your earlier one-condition counts
  • The totals should match, which confirms your COUNTIFS setup is working correctly

7. Use COUNTIFS as your default counting function

  • In the video, COUNTIFS is used even when there is only one condition
  • That is because COUNTIFS can handle both simple and more advanced counting scenarios
  • Instead of switching between COUNTIF and COUNTIFS, the workflow stays consistent with one flexible function

8. Expand the same logic to other HVAC tracking needs

  • After learning this setup, you can use COUNTIFS for many other operational counts, such as:
    • emergency calls by technician
    • maintenance visits by month
    • service calls by region and technician
    • install estimates by lead source and rep

This same structure works any time you need to count rows based on multiple filters at once.

The COUNTIFS Function in Excel

Q1. What does the COUNTIFS function do in Excel?
The COUNTIFS function counts the number of rows in a dataset that meet one or more conditions. For example, you could count how many service calls were classified as emergency jobs or how many jobs were handled by a specific technician.

Q2. What is the difference between COUNTIF and COUNTIFS?
The COUNTIF function counts records based on a single condition, while COUNTIFS allows multiple conditions. Because COUNTIFS can handle both single and multiple criteria, many analysts prefer using it as their default counting function.

Q3. When should I use COUNTIFS instead of SUM or AVERAGE functions?
Use COUNTIFS when you want to count the number of records, not calculate totals or averages. It’s commonly used to track operational metrics like the number of service calls, job types, customer requests, or technician assignments.

Q4. What kinds of business questions can COUNTIFS answer?
COUNTIFS can help answer questions such as:

  • How many emergency calls occurred this month?
  • How many jobs were handled by a specific technician?
  • How many maintenance jobs were completed by a particular team member?

Q5. Can COUNTIFS handle more than two conditions?
Yes. COUNTIFS can evaluate multiple criteria across different columns, allowing you to filter and count records based on several conditions at the same time.

Q6. Why is COUNTIFS important for operational data analysis?
Many business datasets contain thousands of transactions. COUNTIFS makes it easy to quickly analyze patterns in that data, turning raw records into useful insights about workload, performance, and operational activity.

Get more lessons like this
by joining our newsletter

Receive weekly Excel tutorials, tips, and KPIs straight to your inbox

Databoards

Analysis & Development