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

Data Analysis

  • Chart Axes in Excel
  • Excel Frequency Function Example
  • Everything about Charts in Excel
  • Excel Line Chart
  • Number and Text Filters Examples in Excel

References

  • Left Lookup in Excel
  • Offset in Excel
  • How to get last column number in range in Excel
  • Complete List of Excel Lookup and Reference Functions, References and Examples
  • How to use Excel TRANSPOSE Function

Data Validations

  • Excel Data validation date in next 30 days
  • Excel Data validation require unique number
  • Excel Data validation with conditional list
  • Excel Data validation date in specific year
  • Excel Data validation allow weekday only

Summary count of non-blank categories in Excel

by

This tutorial shows Summary count of non-blank categories in Excel using the example below;

Formula

=COUNTIFS(range1,criteria1,range2,"<>")

Explanation

To build a summary count of non-blank categories, you can use the COUNTIFS function.

In the example show, the formula in G6 is:

=COUNTIFS($B$5:$B$11,F6,$C$5:$C$11,"<>")

How this formula works

This example relies on core COUNTIFS functionality.

Worked Example:   Example of COUNTIFS with variable table column in Excel

To create a summary count by building, we would use COUNTIFS like this:

=COUNTIFS($B$5:$B$11,F6)

Where the criteria_range1 is B5:B11 (locked as an absolute reference so that the formula can be copied down the table and criteria1 is pulled from column F. This will return a count of all matching buildings based on column B only.

Worked Example:   Count and Sum Functions in Excel

To count inspections by building, we need to extend the formula by adding an additional range/criteria pair like this:

=COUNTIFS($B$5:$B$11,F6,$C$5:$C$11,"<>")

Here, criteria_range2 is C5:C11 (as an absolute reference) and criteria2 is “<>”, which means “not blank” or “not empty”. For the formula in F6, this translates to: count of entries where building is A and inspection is not blank.

Worked Example:   Highlight duplicate rows in Excel

In a similar way, to count approvals per building, we use this formula in H6:

=COUNTIFS($B$5:$B$11,F6,$D$5:$D$11,"<>")

The first range/criteria pair is the same. The second range/criteria pair simply counts non-blank entries in the approval column (D5:D11).

Post navigation

Previous Post:

44 Practical Excel IF function Examples

Next Post:

Large with criteria 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

  • IFERROR function: Description, Usage, Syntax, Examples and Explanation
  • SWITCH function example in Excel
  • How to use Excel AND Function
  • OR function Examples in Excel
  • AND function: Description, Usage, Syntax, Examples and Explanation

Date Time

  • Convert date to month and year in Excel
  • NETWORKDAYS.INTL function: Description, Usage, Syntax, Examples and Explanation
  • How to join date and text together in Excel
  • Get days, hours, and minutes between dates in Excel
  • How to calculate quarter from date in Excel

Grouping

  • How to randomly assign data to groups in Excel
  • Group numbers with VLOOKUP in Excel
  • If cell contains one of many things in Excel
  • Map inputs to arbitrary values in Excel
  • Calculate conditional mode with criteria in Excel

General

  • How to calculate percentage of total in Excel
  • How to calculate percent variance in Excel
  • How to calculate percent change in Excel
  • Find, Trace and Correct Errors in Excel Formulas using ‘Formula Auditing’
  • Print Excel Sheet In Landscape Or Portrait
© 2023 xlsoffice . All Right Reserved. | Teal Smiles | Abbreviations And Their Meaning