COUNTIFS function in Excel
In the previous articles, you already know that the COUNT () function counts cells that contain numbers and the COUNTIF () function counts cells according to a specified condition. But sometimes you need to count cells under many conditions, it is not possible to apply these two functions. In this case, you need to use the COUNTIFS () function to perform it.
Follow the article below if you do not know the syntax and usage of the COUNTIFS () function.
Description
The COUNTIFS () function counts the number of cells in multiple ranges that satisfy one or more different conditions.
Syntax
= COUNTIFS (criteria_range1, criteria1, [criteria_range2, criteria2], .)
Inside:
- criteria_range1: the first range to evaluate conditions, required.
- criteria1: condition for the first range, required.
- criteria_range2, criteria2: additional ranges and conditions, you can optionally and up to 127 pairs of criteria_range, criteria.
Note
- Each criteria_range2, criteria_range3, . range must have the same number of rows and columns as the criteria_range1 range. The ranges are not necessarily contiguous.
- The condition of each range is applied to each cell in the range once.
- If criteria is a reference to an empty cell, the function will treat the blank cell as a value of 0.
- You can use the question mark characters (?) Instead of any single character, the asterisk (*) will replace any string of characters in the criteria. When you need to find a question mark or asterisk, you need to type ~ before the character.
For example
Give the data table as follows:
Request:
1. Count how much SP1 is rated as "Beautiful".
2. Count how many products The product is rated "Beautiful" by all 3 Comments.
3. Count how many Products are rated by Comments 1 and 2 as "Bad".
Result:
The article introduced the syntax and functions of the COUNTIFS () function, and along with specific examples of how to use the COUNTIFS () function, I hope you will understand this function better. Good luck!
You should read it
- Basic Excel functions that anyone must know
- How to use Hlookup function on Excel
- How to use the SUM function to calculate totals in Excel
- How to use the LEN function in Excel
- How to use COUNTIF function on Excel
- How to use the MOD function and QUOTIENT function in Excel
- How to use MID functions to get strings in Excel
- How to use Excel's VALUE function
May be interested
- How to use MID functions to get strings in Excelmid function in excel is a function that takes the middle character string corresponding to the value that the user requires to perform.
- How to use Excel's VALUE functionexcel's value function will convert a string to a digital form, which can be combined with other functions such as left function, right function, mid function.
- How to use the WRAPROWS function in Excelhaving trouble with handling large data sets in excel? then learn how to use the wraprows function to split them into more manageable rows.
- How to use the IFS function in Excel 2016the ifs function in excel is a logical function introduced in excel 2016. this function is a function that replaces the nested if function and is much easier to use. the ifs function checks one or more conditions and returns a value that meets the first true condition.
- How to use the NPER function in Excel to plan loans and savingsdo you want to effectively manage and control your personal finances? then we invite you to learn how to use excel's nper function.
- How to use the function to delete spaces in Exceldeleting white space with functions in excel makes it easier for users to handle content, instead of traditional editing.
- How to fix the SUM function doesn't add up in Excelin the process of summing with sum in excel, you will encounter some errors such as not jumping the number, not adding the sum. so how to handle this problem?
- How to use the SUBTOTAL function in Excelthe subtotal function in excel is used in many different cases, helping you to sum subtotals in a list or database, unlike the sum function in excel such as counting cells, calculating average, finding the largest / smallest value. or sum the filtered list values in excel
- Save time with these text formatting functions in Microsoft Excelmicrosoft excel is a main application for anyone who has to work with numbers, from students to accountants. but its usefulness extends beyond a large database, it can do a lot of great things with text. the functions listed below will help you analyze, edit, convert, change text and save many hours of boring and repetitive tasks.
- SUMPRODUCT function in Excel: Calculates the sum of corresponding valuesthe sumproduct function is an extremely useful function when you have to deal with a lot of data numbers in microsoft excel. here are the things you need to know about the sumproduct function in excel.