The Microsoft Excel COUNTIFS function counts the number of cells in a range, that meets a single or multiple criteria and adjacent or non-adjacent. As a Statistical function of Excel, the COUNTIFS supports using comparison operators and wildcard characters.
Countif is used to count specific values given in a range of cells.
Formula :-=countif(B1:B10,”DAVID”)
In this example we are counting how many times David are there in sales rep using the formula.
After applying the formula when we press enter it gives us the result. As we can see below pic total count is 4.
Countifs is used for counting specific value bases on multiple criteria
Formula =COUNTifs(B1:B10,”DAVID”,C1:C10,”Australia”)
In COUNTifs we count a number of cells that contain value with criteria. As we can see in example given below we are counting how many times David did sales in Australia so David’s count is criteria 1 Australia’s count is criteria 2 when we apply the formula and press enter it shows us number 2 as shown below.
Countifs can also be used to count specific values with between, more than, less than criteria as well.
Formula:- =COUNTIFS(B2:B10,”DAVID”,A2:A10,”>=”&”01/07/2020″,A2:A10,”<=”&”01/11/2020″)
In this example, we can see Davids’s sales in a particular country which includes particular dates.. As we can see in the below image we have selected dates and sales reps by applying the formula will get the result of how many times David did sales in Australia from selected dates so the answer is 2 times.
Hope you learnt this Function,
Don’t forget to leave your valuable comments!
The Article of DATEVALUE explains how to use Excel functions to change text into dates and numbers into dates. It also shows how to convert text strings into dates without using formulas. You’ll also learn…
Excel Function COUNTIF COUNTIF Excel Function is also one of the most used function in excel. This helps the user to calculate the number of counts based on single logic given by the user. You…
Blank rows in Excel can be a real hassle, making it harder to move around and work with your data. But don’t worry—there are plenty of easy ways to get rid of these unwanted rows….
“NETWORKDAYS” function is very helpful feature in the Microsoft excel to calculate the working days from a particular period excluding “Saturday and Sundays”. NETWORKDAYS function subtract the Start Day from the End Date provided.
Add new line in Excel cell lets you type on multiple lines within the same cell. Instead of having all the text in one long line, you can split it up to make it easier…
WEEKDAY function applies to a Date and returns the output for Day of the week. The output of the function varies from 0 to 7