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

Data Analysis

  • What-If Analysis: Scenarios and Goal Seek in Excel
  • How to Sort by Color in Excel
  • Use Data Form to input, edit and delete records in Excel
  • How to combine 2 or more chart types in a single chart in Excel
  • How to calculate average last N values in a table in Excel

References

  • How to use Excel INDIRECT Function
  • How to use Excel ROWS Function
  • How to get relative row numbers in a range in Excel
  • How to use Excel COLUMN Function
  • Find Closest Match in Excel Using INDEX, MATCH, ABS and MIN functions

Data Validations

  • Data validation must not exist in list
  • Excel Data validation allow weekday only
  • Prevent invalid data entering in specific cells
  • Excel Data validation must contain specific text
  • Excel Data validation don’t exceed total

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

  • TRUE function: Description, Usage, Syntax, Examples and Explanation
  • IF with wildcards in Excel
  • XOR function: Description, Usage, Syntax, Examples and Explanation
  • FALSE function: Description, Usage, Syntax, Examples and Explanation
  • IFERROR function: Description, Usage, Syntax, Examples and Explanation

Date Time

  • Count dates in current month in Excel
  • Display the current date in Excel
  • Get last weekday in month in Excel
  • Get last working day in month in Excel
  • How to calculate future date say 6 months ahead in Excel

Grouping

  • Map text to numbers in Excel
  • How to randomly assign data to groups in Excel
  • Group times into 3 hour buckets in Excel
  • Group times into unequal buckets in Excel
  • If cell contains one of many things in Excel

General

  • How to fill cell ranges with random number from fixed set of options in Excel
  • Zoom Worksheet in Excel
  • How to test a range for numbers in Excel
  • Find Most Frequently Occurring Word in Excel Worksheet
  • Sum by group in Excel
© 2026 xlsoffice . All Right Reserved. | Teal Smiles | Abbreviations And Their Meaning