COUNTIF V/s COUNTIFS function
Excel COUNTIF
function
Excel COUNTIF function - count cells that meet one condition
The COUNTIF function is purposed for counting cells that
meet a certain criterion. Its syntax requires 2 arguments which are self explanatory.
COUNTIF (range, criteria) In the first argument, you define a range where you
want to count cells and in the second parameter, you specify a condition that
should be met. For example, to count how many cells in range A2:A17 is "car",
you use the following COUNTIF formula:
Instead if typing a criterion directly in the formula, you
can input a cell reference as demonstrated in the following screenshot:
Excel COUNTIFS
function - count cells that match several criteria
The COUNTIFS function is similar to COUNTIF but it allows
specifying multiple ranges and multiple criteria. Its syntax is as follows:
COUNTIFS (criteria_range1, criteria1, [criteria_range2,
criteria2]…)
For example, to count how many "cars" are there in
column A and how many cars are less than or equal to Rs. 200. For this the formula
is
=COUNTIFS(A2:A17,"car", B2:B17,"<=200")
Note: Because in Price cell Rs. word not defined so do not type Rs. word otherwise it does not give the appropriate result.
You can also watch the video regarding COUNTIF V/s COUNTIFS function
You may be interested in:
Comments
Post a Comment