How to use COUNTIF function on Excel
The COUNTIF function on Excel is the cell count function to satisfy the given condition, often used in statistics tables.
In Excel's basic functions, COUNTIF is the basic statistical function used to count cells that meet the given conditions within the specified range of conditions. At this time, the function syntax will have conditions attached. Often the COUNTIF function will be used with statistical data tables, which require certain values to be searched for. The following article will guide you how to use the COUNTIF function on Excel to find the condition that meets the condition.
- How to use the COUNT function in Excel
- How to combine Sumif and Vlookup functions in Excel
- How to automatically display names when entering code in Excel
Instructions for using COUNTIF Excel function
The COUNTIF function on Excel has a syntax of = COUNTIF (range; criteria) .
In which range is the part of the area where you want to count the required data. May contain numbers, arrays or references containing numbers. Blank values will be ignored. The criteria is a condition required to count values in the range, be it numbers, expressions, cell references, or text strings.
Note to readers:
- The COUNTIF function returns the result after using a condition with strings of characters greater than 255 characters.
- The criteria need to be enclosed in quotation marks. Do not distinguish lowercase or uppercase letters.
You can use a question mark and an asterisk in a criteria condition, where a question mark is a character and an asterisk is a character string. Depending on the settings on the machine, the separator in the function is, or; to use.
We will learn how to use the COUNTIF function with the following data table and examples of finding different data.
1. Search for the number of product names Mango in the table
We have the implementation formula = = COUNTIF (B2: B8, "mango") and then press Enter to execute the function.
The result will output a name value Mango in the data table.
2. Find the number of non-Lemon items in the table
We use non-Lemon name condition '<> lemon' and enter the formula = COUNTIF (B2: B8, "<> lemon") . The result will be 5 items with no lemon name in the data sheet.
3. Find the number of items with sales quantity> = 10 kg
Terms of use with content are '> = 10' at the sales number column with the function formula = COUNTIF (C1: C8, "> = 10") and press Enter.
The result will be 6 items with the quantity sold> = 10 kg.
4. Search for an order named Lemon using alternate characters
We can replace it with the * character to find the value with the formula = COUNTIF (B2: B8, "C *") and press Enter.
The result will be as shown below.
5. Search for an item with a different name than B2
Here we will find items with names other than B2 that are Lemon by using the & before the reference cell, with the function syntax = COUNTIF (B2: B8, "<>" & B2) . The result is also the correct number of items is 5.
Here is how to use the COUNTIF function with specific examples to use the function and how to combine characters to find the value that satisfies the condition in the data area. Note with delimiters, or; depending on the machine, if you report an error in the mark you need to check the delimiter.
See more:
- How to use AVERAGEIF function in Excel
- How to use the LEN function in Excel
- How to use Vlookup function in Excel
I wish you all success!
You should read it
- Conditional counting function in Excel
- 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 the SUBTOTAL function in Excel
- Instructions on how to use the Dmax function in 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 the DAVERAGE function in Excel
- How to fix the SUM function doesn't add up in Excel
- How to use Excel's VALUE function
Maybe you are interested
How to Install PHPMailer Guide to lip sync with Muvik What is Facebook Spaces and how to use this virtual reality social network? Facebook downgrades websites specializing in content stealing Windows 10 October stick serious errors automatically delete files in the computer 10 useful and interesting PHP libraries for developers