Clear, practical technology insights BSOD Code Lookup · Windows Error Code Lookup · Wi-Fi Troubleshooting · PC Troubleshooting Checklist

How to Use the COUNTIFS Function in Excel

Learn how to use COUNTIFS Function in Excel, including its purpose, syntax, examples, and common errors, with clear step-by-step guidance.

Table of Contents

This guide explains how to use COUNTIFS Function in Excel, including its syntax, required arguments, practical examples, and common errors.

How to Use the COUNTIFS Function in Excel screenshot

Description: The function to count the number of cells in a data table satisfies many conditions.

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

Inside:

- criteria_range1: The first range of condition 1, is the required parameter.

- criteria1: The condition that identifies a cell or reference to be counted, which is a required parameter.

- criteria_range2, criteria2: The second data range you want to count corresponding to the second condition ( criteria2). Are optional values containing up to 127 pairs of ranges and conditions.

Attention:

- If the criteria condition refers to an empty cell -> the function considers that cell to be 0.

- Use the characters?, * To combine in counting conditions.

For example:

Calculate the total number of items described in the table below:

How to Use the COUNTIFS Function in Excel screenshot 2

1. Calculating the total number of apple products with unit prices greater than 25000.

- In the cell to calculate, enter the formula : = COUNTIFS (C6: C10, "Apple *", D6: D10, "> 25000")

How to Use the COUNTIFS Function in Excel screenshot 3

Press Enter -> the total number of apple items with unit price greater than 25000 is:

How to Use the COUNTIFS Function in Excel screenshot 4

2. Calculate the total number of Thai products with unit prices greater than 25,000.

- In the cell to calculate enter the formula: = COUNTIFS (C6: C10, "* Thailand", D6: D10, "> 25000")

How to Use the COUNTIFS Function in Excel screenshot 5

- Press Enter -> Total items of Thailand with unit price greater than 25000 are:

How to Use the COUNTIFS Function in Excel screenshot 6

3. Calculate the total number of Thai products that have a unit price between 35,000 and 70000.

- In the cell to calculate enter the formula: = COUNTIFS (C6: C10, "* Thailand", D6: D10, "> 35000", D6: D10, "<70000")

How to Use the COUNTIFS Function in Excel screenshot 7

- Press Enter -> The total number of Thailand products with the unit price range from 35,000 to 70000 is:

How to Use the COUNTIFS Function in Excel screenshot 8

Above are instructions and some specific examples when using the COUNTIFS function in Excel.

Good luck!

FAQ

What does the COUNTIFS function do in Excel?

The COUNTIFS function performs the calculation described in this guide. Use the correct arguments and compatible data types for reliable results.

How do I enter the COUNTIFS function correctly?

Start with an equals sign, enter COUNTIFS, add the required arguments inside parentheses, and confirm that cell references and separators are correct.

Why does the COUNTIFS function return an error?

Common causes include missing arguments, invalid data types, incorrect cell references, unsupported values, or regional separator settings.

Discussion

Reader Comments 0

Sign in with email or Google to join the discussion.