Back to Blog

COUNTIFS in Excel: Complete Guide with Examples | SheetXAI

D
David DeSouza
Dec 1, 2025
Flat vector illustration of a stylized spreadsheet or checklist with a dark blue clipboard clip at the top. The grid contains cells with checkmarks in various colors (yellow, light pink, red, light blue) and colored cells (green, yellow, red) representing different statuses or categories. Large green leaves with dark purple outlines flank the grid on both sides, with small dark purple four-pointed stars scattered around. The design represents data organization and conditional counting with multiple criteria in a clean, modern aesthetic.

The Problem

You need to count how many sales were made in the 'East' region AND were over $500. A single COUNTIF can only check one condition at a time.

The Easy Way: Use SheetXAI

If you don't want to mess with formulas, the fastest way to do this is simply by asking.

With SheetXAI, you can open the sidebar and type:

Count how many sales were in the 'East' region and over $500.

SheetXAI will instantly write the formula or script for you and fill the cells. It handles the syntax so you can focus on the result.

The Manual Way: The Formulas You Need

To do this manually, you need to use: COUNTIFS.

1. COUNTIFS

Counts cells that meet multiple conditions. This is the multi-criteria version of COUNTIF.

Syntax: =COUNTIFS(criteria_range1, criteria1, [criteria_range2, criteria2], ...)

  • criteria_range1: The first range to evaluate against criteria1.
  • criteria1: The first condition that must be met (e.g., 'East', '>500', 'Active').
  • [criteria_range2, criteria2]: Additional range-condition pairs (optional, can add many).

Example: Count rows where Region is 'East' AND Revenue is '>500'.

Understanding the Logic

  1. First condition: Check Region column for 'East'.
  2. Second condition: Check Revenue column for '>500'.
  3. Result: Only counts rows where BOTH conditions are true.

You can add as many conditions as needed - all must be true for a row to be counted.

The Final Formula:

=COUNTIFS(A:A, "East", B:B, ">500")

Conclusion

Now you know the "classic" way to solve this using formulas. It's a great skill to have.

But for those times when you just want the job done without the mental math, SheetXAI is there to help.

Boost your productivity today.
Start automating your spreadsheets.

Join thousands of professionals saving hours every week. No credit card required to start.

Learn more