COUNTIFS |
COUNTIFS(criteria_range1, criteria1 [,criteria_range2, criteria2] [..]) |
Returns the number of numerical values that satisfies multiple conditions. |
criteria_range1 | The range of cells you want evaluated. |
criteria1 | The expression that contains the criteria. |
criteria_range2 | (Optional) The range of cells you want evaluated. |
criteria2 | (Optional) The expression that contains the criteria. |
REMARKS |
* For an illustrated example refer to the page under Counting Functions * This function uses the actual cell values and not the displayed formatted values. * Arguments that are references to cells containing zeros are included. * Arguments that are references to cells containing dates are included. * Arguments that are references to cells containing hidden cells are included. * Arguments that are references to cells containing error values are excluded. * Arguments that are references to cells containing logical values are excluded. * Arguments that are references to cells containing text are excluded. * Arguments that are references to cells containing empty cells are excluded. * Arguments that are arrays containing logical values are excluded. * Arguments that are arrays containing text are excluded. * This function is not case sensitive when matching text strings. * This function supports wildcards (? is a single character and * is multiple characters). * To include the actual wildcard characters use a tilde prefix (~?), (~*) and (~~). * The "criteria" can contain wildcard characters. * Every additional range must have the same number of rows and columns as "criteria_range1". * You can use the COUNT function to return the number of non blank cells with no conditions. * You can use the COUNTA function to include logical values, text and errors. * You can use the COUNTVISIBLEIFS - User Defined Function to exclude hidden cells. * You can use the DCOUNT function to return the number of non blank cells in a column that satisfies multiple conditions. * You can use the IFS function to return the value based on multiple conditions. * This is similar to the AVERAGEIFS, MAXIFS, MINIFS and SUMIFS functions. * This function was added in Excel 2007 to replace the COUNTIF function. * For the Microsoft documentation refer to support.microsoft.com * For the Google documentation refer to support.google.com |
|
1 - What is the number of cells that have "Jan" in the range "B1:B5". 2 - What is the number of cells that have "Jan" in the range "B1:B5". Notice that prefixing the condition with an equal sign means the same thing. 3 - What is the number of cells that have "Feb" in the range "B1:B5". 4 - What is the number of cells that have "Jan" in the range "B1:B5" and have a value not equal to 20 in the range "C1:C5". 5 - What is the number of cells that have "Jan" in the range "B1:B5" and have a value equal to 20 in the range "C1:C5". 6 - What is the number of cells that have "Jan" in the range "B1:B5" and have a value greater than the value in cell "C3" in the range "C1:C5". |
© 2025 Better Solutions Limited. All Rights Reserved. © 2025 Better Solutions Limited Top