Skip to content
Free Excel Tutorials
  • Home
  • Excel For Beginners
  • Excel Intermediate
  • Advanced Excel For Experts

Data Analysis

  • How to Create One and Two Variable Data Tables in Excel
  • How to create Checklist in Excel
  • Error Bars in Excel
  • Conditional Formatting New Rule with Formulas in Excel
  • How To Create Frequency Distribution in Excel

References

  • LOOKUP function: Description, Usage, Syntax, Examples and Explanation
  • How to get first column number in range in Excel
  • Multi-criteria lookup and transpose in Excel
  • How to use Excel INDIRECT Function
  • How to use Excel MMULT Function

Data Validations

  • Excel Data validation with conditional list
  • Data validation must not exist in list
  • Excel Data validation allow weekday only
  • Excel Data validation require unique number
  • Excel Data validation date in next 30 days

Two-way summary count with COUNTIFS in Excel

by

This tutorial shows how to work Two-way summary count with COUNTIFS in Excel using the example below;

Formula

=COUNTIFS(range1,critera1,range2,critera2)

Explanation

To build a two-way summary count (i.e. summarizing by rows and columns) you can use the COUNTIFS function.

In the example shown, the formula in G5 is:

=COUNTIFS(dept,$F5,class,G$4)

How this formula works

The COUNTIFS function is designed to count things based on more than one criteria. In this case, the trick is to build a summary table first that contains one set of criteria in the left-most column, and a second set of criteria as column headings.

Then, inside COUNTIFS function, range1 is the named range “dept” (C5:C11) and the criteria comes from column F, input as the mixed reference $F5 (to lock the column). Range2 is the named range “class” (D5:D11) and the criteria comes from row 4, input as the mixed reference G$4 (to lock the row):

 =COUNTIFS(dept,$F5,class,G$4)

When this formula is copied through the table the mixed references change so that COUNTIFS will generate a count as the intersection of each “pair” of intersecting criteria.

Post navigation

Previous Post:

How to use Excel CHOOSE Function

Next Post:

Customize Ribbon In Excel

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Learn Basic Excel

Ribbon
Workbook
Worksheets
Format Cells
Find & Select
Sort & Filter
Templates
Print
Share
Protect
Keyboard Shortcuts

Categories

  • Charts
  • Data Analysis
  • Data Validation
  • Excel Functions
    • Cube Functions
    • Database Functions
    • Date and Time Functions
    • Engineering Functions
    • Financial Functions
    • Information Functions
    • Logical Functions
    • Lookup and Reference Functions
    • Math and Trig Functions
    • Statistical Functions
    • Text Functions
    • Web Functions
  • Excel VBA
  • Excel Video Tutorials
  • Formatting
  • Grouping
  • Others

Logical Functions

  • Nested IF function example in Excel
  • IF with wildcards in Excel
  • Extract multiple matches into separate rows in Excel
  • IF function: Description, Usage, Syntax, Examples and Explanation
  • Return blank if in Excel

Date Time

  • WEEKDAY function: Description, Usage, Syntax, Examples and Explanation
  • Convert decimal hours to Excel time
  • Get days, hours, and minutes between dates in Excel
  • How to calculate Next working/business day in Excel
  • WORKDAY function: Description, Usage, Syntax, Examples and Explanation

Grouping

  • Map inputs to arbitrary values in Excel
  • Group arbitrary text values in Excel
  • Map text to numbers in Excel
  • Calculate conditional mode with criteria in Excel
  • How to randomly assign people to groups in Excel

General

  • How to calculate profit margin percentage in Excel
  • Sum by group in Excel
  • Cell References: Relative, Absolute and Mixed Referencing Examples
  • Freeze and Unfreeze Panes in Excel
  • How to calculate total from percentage in Excel
© 2025 xlsoffice . All Right Reserved. | Teal Smiles | Abbreviations And Their Meaning