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!
This article has Top Excel Interview Questions and Answers to test your Excel skills. It’s great for beginners who are just starting out, or even pros who want a refresher. The questions cover everything you might need for jobs like data analyst, business analyst, or accountant.
You must have faced a condition when your data cells contain extra spaces, leading spaces or trailing spaces and you wanted to remove these extra spaces to standardize the data. So here you may use…
In this guide, you will learn how to use the NPV function in Excel to calculate the net present value of an investment and how to avoid common mistakes when using NPV in Excel.
Microsoft Excel “ISBLANK Function” is a Logical Function and it is used to check if cell in question is “BLANK OR NON-BLANK”. “ISBLANK Function” is used as a test to validate if cell contains any…
COUNTBLANK function is used to get the total count of Blank or Empty cell in range.
COUNTBLANK Function has one required argument i.e. range.
Understand the basic Different between Excel Online vs Excel Desktop. Excel Online is like a simpler version of Excel that you can use in your web browser. It has most of the important features you need, but it doesn’t have advanced things like macros. This article dives into the differences between Excel Online and the excel Desktop version to help you understand what each one is good at and where they fall short.