<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	
	xmlns:georss="http://www.georss.org/georss"
	xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#"
	>

<channel>
	<title>countifs Archives - Excel Zoom</title>
	<atom:link href="https://excelzoom.com/tag/countifs/feed/" rel="self" type="application/rss+xml" />
	<link>https://excelzoom.com/tag/countifs/</link>
	<description>...because it&#039;s more than just a calculator</description>
	<lastBuildDate>Wed, 28 Mar 2018 15:55:36 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.7.2</generator>

<image>
	<url>https://excelzoom.com/wp-content/uploads/2022/04/favicon.ico</url>
	<title>countifs Archives - Excel Zoom</title>
	<link>https://excelzoom.com/tag/countifs/</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>Getting Most out of COUNTIF () function</title>
		<link>https://excelzoom.com/getting-most-out-of-countif-function/</link>
					<comments>https://excelzoom.com/getting-most-out-of-countif-function/#respond</comments>
		
		<dc:creator><![CDATA[Mark]]></dc:creator>
		<pubDate>Wed, 28 Mar 2018 15:55:36 +0000</pubDate>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[countifs]]></category>
		<guid isPermaLink="false">http://excelzoom.com/?p=3669</guid>

					<description><![CDATA[<p>Introduction COUNTIF () function constitutes a family of functions that is used for counting and specially for counting conditionally. We said that COUNTIF () is a family because there are few other similar function that are present in Excel that starts with COUNTIF. These functions include COUNTIFS() that is used for counting more than one [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://excelzoom.com/getting-most-out-of-countif-function/">Getting Most out of COUNTIF () function</a> appeared first on <a rel="nofollow" href="https://excelzoom.com">Excel Zoom</a>.</p>
]]></description>
										<content:encoded><![CDATA[<h2><strong>Introduction</strong></h2>
<p>COUNTIF () function constitutes a family of functions that is used for counting and specially for counting conditionally. We said that COUNTIF () is a family because there are few other similar function that are present in Excel that starts with COUNTIF.</p>
<p>These functions include COUNTIFS() that is used for counting more than one criteria, COUNTA () that is used to count the cells in a range that are not empty, COUNTBLANK () that is for counting blank cells and the function COUNT itself.</p>
<p>In today’s post we will explore the instances where these functions can be used. We will take up examples and understand which function best suits the situation and how that functions works to give the desired result.</p>
<h2><strong>An overview of COUNT family syntax:</strong></h2>
<p>Follow table gives the outline of the COUNT family functions:</p>
<table style="height: 409px;" width="799">
<tbody>
<tr>
<td width="82">
<p style="text-align: center;"><strong>Function</strong></p>
</td>
<td colspan="2" width="541">
<p style="text-align: center;"><strong>Syntax</strong></p>
</td>
</tr>
<tr>
<td width="82">COUNT</td>
<td width="251">=COUNT (value1,[value2],..)</td>
<td width="290">Count no. of cells in a range that <u>contains numbers.</u></td>
</tr>
<tr>
<td width="82">COUNTA</td>
<td width="251">
<p style="text-align: left;">=COUNTA (value1,[value2],..)</p>
</td>
<td width="290">Count no. of cells in a range that are <u>not empty</u></td>
</tr>
<tr>
<td width="82">COUNTBLANK</td>
<td width="251">
<p style="text-align: left;">=COUNTA (value1,[value2],..)</p>
</td>
<td width="290">Count no. of cells in a range <u>that are blank</u></td>
</tr>
<tr>
<td width="82">COUNTIF</td>
<td width="251">
<p style="text-align: left;">=COUNTIF (Range, Criteria)</p>
</td>
<td width="290">Count no. of cells in a range that <u>meets a specific requirement. </u></td>
</tr>
<tr>
<td width="82">COUNTIFS</td>
<td width="251">
<p style="text-align: center;">=COUNTIFS (CriteriaRange1, Criteria1,..)</p>
</td>
<td width="290">Count no. of cells in a range that <u>meets a set of requirement.</u></td>
</tr>
</tbody>
</table>
<p>If you look closely, the COUNTIF has become a special case of COUNTIFS() where criteria is set to one only. Let’s take-up few examples of how we can use COUNTIFS() function.</p>
<h2><strong>A simple COUNTIF() function:</strong></h2>
<p>Lets consider the following sample database, where we want to count the number of female student in a class:</p>
<p><img fetchpriority="high" decoding="async" class="aligncenter size-full wp-image-3672" src="https://excelzoom.com/wp-content/uploads/2018/03/1.jpg" alt="" width="570" height="208" /></p>
<p>We can use COUNTIF function to count the number of FEMALES in the data. The formula will be:</p>
<p><img decoding="async" class="aligncenter size-full wp-image-3674" src="https://excelzoom.com/wp-content/uploads/2018/03/3.jpg.png" alt="" width="489" height="50" /></p>
<p style="text-align: center;">=COUNTIF(F2:F41,&#8221;F&#8221;)</p>
<p>Thus there are twenty three females in the said database.</p>
<p>Similarly we can try to find how many of them how many students in class 7 are in certain lass for example, the number can found with this formula:</p>
<p><img decoding="async" class="aligncenter size-full wp-image-3674" src="https://excelzoom.com/wp-content/uploads/2018/03/3.jpg.png" alt="" width="489" height="50" /></p>
<p>Similarly we can find the number of students that are male and are in class 7 using the following formula:</p>
<p style="text-align: center;">=COUNTIFS(F2:F41,&#8221;M&#8221;,G2:G41,7)</p>
<p>..the answer is 8 – i.e. that is there are 8 male students in class 7.</p>
<p>Going one step further we can find the number of students that are male and are student of class 7 and 8 using the following formula:</p>
<p style="text-align: center;">=COUNTIFS(F2:F41,&#8221;M&#8221;,G2:G41,7)+COUNTIFS(F2:F41,&#8221;M&#8221;,G2:G41,8)</p>
<p>Note that in order to get an effect logical operator and, we need to add further COUNTIFS() and multiple criteria’s within COUNTIF() are of no use.</p>
<p>Another question that can be answered is the number of students born in a specific year – this can be calculated by using the date range in the COUNTIF() criteria:</p>
<p style="text-align: center;">=COUNTIFS(E2:E41,&#8221;&gt;=1/1/1995&#8243;,E2:E41,&#8221;&lt;=12/31/1995&#8243;)</p>
<p>To find the number of students born in a month, for example to find the number of Virgo (‎August 23 &#8212; September 22) could be a tricky one, but we can do it with the use of a helper column.</p>
<p><img decoding="async" class="aligncenter size-full wp-image-3677" src="https://excelzoom.com/wp-content/uploads/2018/03/4.jpg" alt="" width="758" height="206" srcset="https://excelzoom.com/wp-content/uploads/2018/03/4.jpg 758w, https://excelzoom.com/wp-content/uploads/2018/03/4-600x163.jpg 600w" sizes="(max-width: 758px) 100vw, 758px" /></p>
<h2>Another example of data-set:</h2>
<p>The following database named Popular Kid has been adopted from this source [<a href="http://lib.stat.cmu.edu/DASL/Datafiles/PopularKids.html">Link</a>]. The database surveyed 400+ students of various grades and school, and localities to found what they will choose to be at school from the following: making good grades, being good at sports or being popular at school. The factors were ranked from 1 to 4, one being most important and 4 being least important.</p>
<p><img decoding="async" class="aligncenter size-full wp-image-3678" src="https://excelzoom.com/wp-content/uploads/2018/03/5.JPG.png" alt="" width="661" height="280" srcset="https://excelzoom.com/wp-content/uploads/2018/03/5.JPG.png 661w, https://excelzoom.com/wp-content/uploads/2018/03/5.JPG-600x254.png 600w" sizes="(max-width: 661px) 100vw, 661px" /></p>
<p>Let’s see how can we use COUNTIFS() to answer questions related to this survey</p>
<h3>What was the response of grade 5 students about being good at grades in school?</h3>
<p>The question asks us to find the response of grade 1 and being good at studies so we have two criteria fields – Grade in Column B and Grades in Column H. Since 1 represents least important and 4 being most important, we will use the following formula to answer the question:</p>
<p style="text-align: center;">=COUNTIFS($B2:$B479,5,H2:H479,1)</p>
<p>The answer is 39. So 39 students from grade 5 said that most important thing to them at school is to be good at grades. But this figure is not really meaning full if we don’t know what percent of student was 39. So we will improve our answer converting it to percentage.</p>
<p><img decoding="async" class="aligncenter size-full wp-image-3679" src="https://excelzoom.com/wp-content/uploads/2018/03/6.jpg" alt="" width="618" height="115" srcset="https://excelzoom.com/wp-content/uploads/2018/03/6.jpg 618w, https://excelzoom.com/wp-content/uploads/2018/03/6-600x112.jpg 600w" sizes="(max-width: 618px) 100vw, 618px" /></p>
<p>Thus 12% of the student said grades are the most important thing to them.</p>
<p>Another important question could be this:</p>
<h3>At what age the students started to consider good grades as the most important goal in their school lives.</h3>
<p>The question can be answered by finding out the responses for all the age groups and for the case where student answered studies to be the most important goal. The following table will be produced when we use COUNTIF():</p>
<p><img decoding="async" class="aligncenter size-full wp-image-3680" src="https://excelzoom.com/wp-content/uploads/2018/03/7.jpg" alt="" width="598" height="190" /></p>
<p>We can see that at the age of 11 years, most student found study to be their main goal.</p>
<p>Another interesting insight can be found if we examine the difference between the goals of the Rural and the suburban students by using COUNTIF. The following table will be produced.</p>
<p><img decoding="async" class="aligncenter size-full wp-image-3682" src="https://excelzoom.com/wp-content/uploads/2018/03/8.jpg" alt="" width="511" height="192" /></p>
<p>The section of table that reports absolute values can be misleading, therefore we will discuss the table in terms of percentage – the right section. We can see that biggest section of suburban students prefer studies over any other goal (57%) whereas students from rural area find “Popularity” as the most appealing goal. It is interesting to note that none of the student is interested in “Looks”.</p>
<h2><strong>Conclusion:</strong></h2>
<p>There are numerous ways we can use COUNTIFS() as we see in second example we can get meaningful insight by correct usage of function. Please down load the file from this <a href="https://www.dropbox.com/s/1b0ixhai456abz4/COUNTIF%20data.xlsx?dl=1">link</a> and see how the examples actually work.</p>
<p>The post <a rel="nofollow" href="https://excelzoom.com/getting-most-out-of-countif-function/">Getting Most out of COUNTIF () function</a> appeared first on <a rel="nofollow" href="https://excelzoom.com">Excel Zoom</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://excelzoom.com/getting-most-out-of-countif-function/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Getting Most Out of COUNTIF() and COUNTIFS() function in Excel</title>
		<link>https://excelzoom.com/getting-most-out-of-countif-function-excel/</link>
					<comments>https://excelzoom.com/getting-most-out-of-countif-function-excel/#respond</comments>
		
		<dc:creator><![CDATA[Mark]]></dc:creator>
		<pubDate>Mon, 16 Oct 2017 10:19:17 +0000</pubDate>
				<category><![CDATA[Tips]]></category>
		<category><![CDATA[countif]]></category>
		<category><![CDATA[countifs]]></category>
		<guid isPermaLink="false">http://excelzoom.com/?p=3226</guid>

					<description><![CDATA[<p>Introduction: There are instances when we are interested in counting things. This is true for accountants, engineers, managers and so on. To count, we usually record quantities, either on paper on spread – or if we record on paper, we eventually transfer it to a spreadsheet to make calculations more manageable. COUNTIF() or COUNTIFS() is [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://excelzoom.com/getting-most-out-of-countif-function-excel/">Getting Most Out of COUNTIF() and COUNTIFS() function in Excel</a> appeared first on <a rel="nofollow" href="https://excelzoom.com">Excel Zoom</a>.</p>
]]></description>
										<content:encoded><![CDATA[<h2><strong>Introduction:<br />
</strong></h2>
<p>There are instances when we are interested in counting things. This is true for accountants, engineers, managers and so on. To count, we usually record quantities, either on paper on spread – or if we record on paper, we eventually transfer it to a spreadsheet to make calculations more manageable. COUNTIF() or COUNTIFS() is the function that we use when doing so on spreadsheets.</p>
<p>In today’s post, we will describes the “celebrated” COUNTIF() function and its sister function COUNTIFS() to see how it can help analyses the data when it comes to count.</p>
<h2><strong>COUNTIF() Function:</strong></h2>
<p>The COUNTIF() function counts for only one criteria and for only one range. This is the definite limitation of the function when a user is willing to count with more than one criterion. But it is not always that we have multiple criteria. The excel help provides following syntax for the function:</p>
<h2><strong>COUNTIFS() Function:</strong></h2>
<p>This function can take more than one.  Hence it a go for choice where we have more than one criterion. It takes consecutive inputs for criteria_range and then criteria and returns the count.</p>
<p>Since most of us are already familiar with the syntax of these functions we will proceed by taking up “Scenarios” where these functions can be used:</p>
<h2><strong>THE COUNTIF () FUNCTION WITH EXAMPLES</strong></h2>
<h3><strong>Accounting – Counting Absents and Presents from attendance recorded:</strong></h3>
<p>Record from Personal or administration department is sent to accounts for finalizing the salaries on monthly basis.  Accountant are faced with the task of counting or re-validating the presents and absents in the data. COUNTIF function is useful in this scenario where we can count for “P”s and “A”s in the data (see Sheet1A):</p>
<p><img decoding="async" class="aligncenter size-full wp-image-3231" src="https://excelzoom.com/wp-content/uploads/2017/10/10-16-2017-9-37-29-AM.png" alt="attandence_example_countif" width="824" height="196" srcset="https://excelzoom.com/wp-content/uploads/2017/10/10-16-2017-9-37-29-AM.png 824w, https://excelzoom.com/wp-content/uploads/2017/10/10-16-2017-9-37-29-AM-600x143.png 600w" sizes="(max-width: 824px) 100vw, 824px" /></p>
<p>The result can be found using the COUNTIF() formula be referring to the ranges and putting up the criteria: “P” and “A” respectively.</p>
<p><img decoding="async" class="aligncenter size-full wp-image-3230" src="https://excelzoom.com/wp-content/uploads/2017/10/10-16-2017-9-35-37-AM.png" alt="summary_attandence_countif" width="828" height="127" srcset="https://excelzoom.com/wp-content/uploads/2017/10/10-16-2017-9-35-37-AM.png 828w, https://excelzoom.com/wp-content/uploads/2017/10/10-16-2017-9-35-37-AM-600x92.png 600w" sizes="(max-width: 828px) 100vw, 828px" /></p>
<p>In the above formulas the first argument refers to the lookup range where attendance is recorded and the second one is the criteria itself. For absents we count for “A” and for presents we count for “P” thus giving the total count of attendance.</p>
<h3><strong>Managing HR Training by using COUNTIF() function:</strong></h3>
<p>Companies hire HR people so to manage their HR and staffing needs. In order to make them work efficiently they are given several types of training. Following is a sample report that records training received by human resource staff and various training areas.</p>
<p>The staff that has been training for a topic is marked “D” or done, ones that are still in progress are represented by “IP” or “in progress” and the areas where no training is attended is represented by “-“ (see Sheet2A).</p>
<p><img decoding="async" class="aligncenter wp-image-3237 size-full" src="https://excelzoom.com/wp-content/uploads/2017/10/10-16-2017-2-49-52-PM.png" alt="hr_training_attandence_countif" width="980" height="328" srcset="https://excelzoom.com/wp-content/uploads/2017/10/10-16-2017-2-49-52-PM.png 980w, https://excelzoom.com/wp-content/uploads/2017/10/10-16-2017-2-49-52-PM-600x201.png 600w" sizes="(max-width: 980px) 100vw, 980px" /></p>
<p>The sheet is populated using the following formula that gives the required results.</p>
<p><img decoding="async" class="aligncenter size-full wp-image-3232" src="https://excelzoom.com/wp-content/uploads/2017/10/10-16-2017-10-02-19-AM.png" alt="hr_attandence_summary_countif" width="853" height="133" srcset="https://excelzoom.com/wp-content/uploads/2017/10/10-16-2017-10-02-19-AM.png 853w, https://excelzoom.com/wp-content/uploads/2017/10/10-16-2017-10-02-19-AM-600x94.png 600w" sizes="(max-width: 853px) 100vw, 853px" /></p>
<h3><strong>Using COUNTIF () function for Inventory Control and Operations:</strong></h3>
<p>Manufacturing companies are always looking for a better way to manage their inventory, be it finished one, raw material or inventory in-process. We can use COUNTIF() function to perform simple counts over inventory sheets. The typical way of doing physical count is to use tally marks notation but count if can also be used to count if data is present in a spreadsheet:</p>
<p><img decoding="async" class="aligncenter size-full wp-image-3233" src="https://excelzoom.com/wp-content/uploads/2017/10/10-16-2017-10-46-53-AM.png" alt="warehouse_countif" width="717" height="216" srcset="https://excelzoom.com/wp-content/uploads/2017/10/10-16-2017-10-46-53-AM.png 717w, https://excelzoom.com/wp-content/uploads/2017/10/10-16-2017-10-46-53-AM-600x181.png 600w" sizes="(max-width: 717px) 100vw, 717px" /></p>
<p>The formulas in this sheet are used with logical operator to confirm if the quantity is cross threshold – or a critical level in simple words. This makes sure that we reorder the part well before it hits zero and our operations is interrupted. The following picture (see Sheet3A) shows the result that is obtained.</p>
<p><img decoding="async" class="aligncenter size-full wp-image-3234" src="https://excelzoom.com/wp-content/uploads/2017/10/10-16-2017-10-49-38-AM.png" alt="warehouse_summary_countif" width="708" height="144" srcset="https://excelzoom.com/wp-content/uploads/2017/10/10-16-2017-10-49-38-AM.png 708w, https://excelzoom.com/wp-content/uploads/2017/10/10-16-2017-10-49-38-AM-600x122.png 600w" sizes="(max-width: 708px) 100vw, 708px" /></p>
<p>In the above formula the logical operator “&lt;=” ensures the that COUNTIF() formula counts for values only lower than one set in threshold cells and are presented by values in Column B. Other logical operators that we can use are equal to sign (“=”), greater than or equal to (“&gt;=”), greater then sign (“&gt;”). Additionally we have less than sign (“&lt;”) and not equal to or other then sign (“&lt;&gt;”) as well.</p>
<h2><strong>USING COUNTIFS() FUNCTION WITH EXAMPLES:</strong></h2>
<p>COUNTIFS() is just a sister function of the COUNTIF() but is more useful when we have more than one traits to count. This function takes multiple criteria and multiple ranges to look up and then return the final count. The argument of the function is already explained in the preceding lines. We will explain it with examples (see Sheet1B):</p>
<p><img decoding="async" class="aligncenter size-full wp-image-3235" src="https://excelzoom.com/wp-content/uploads/2017/10/10-16-2017-11-07-53-AM.png" alt="finance_example_2_countif" width="934" height="303" srcset="https://excelzoom.com/wp-content/uploads/2017/10/10-16-2017-11-07-53-AM.png 934w, https://excelzoom.com/wp-content/uploads/2017/10/10-16-2017-11-07-53-AM-600x195.png 600w" sizes="(max-width: 934px) 100vw, 934px" /></p>
<p>The example in the above sheet is related to both HR and Accounts department where HR department sent an attendance sheet for reimbursement of training fee claim by a trainer.</p>
<p>The result that we obtained with the formula is shown below:</p>
<p><img decoding="async" class="aligncenter size-full wp-image-3236" src="https://excelzoom.com/wp-content/uploads/2017/10/10-16-2017-12-04-19-PM.png" alt="hr_summary2_countif" width="750" height="134" srcset="https://excelzoom.com/wp-content/uploads/2017/10/10-16-2017-12-04-19-PM.png 750w, https://excelzoom.com/wp-content/uploads/2017/10/10-16-2017-12-04-19-PM-600x107.png 600w" sizes="(max-width: 750px) 100vw, 750px" /></p>
<p>Another example of using COUNTIFS () could be for the manufacturing case where we want to count for various items bought from a certain manufacturer. In the following table we have listed items along with their supplier and want to know how frequent we have bought certain item for a supplier (see Sheet3B).</p>
<p><img decoding="async" class="aligncenter size-full wp-image-3228" src="https://excelzoom.com/wp-content/uploads/2017/10/10-16-2017-12-26-12-PM.png" alt="warehouse_2_countifs" width="497" height="276" /></p>
<p>In this case we are interested in not individual items but family of item like ALLEN KEY SCREW bought from a certain supplier. To find such a count we will be using the wild cards for search. Wild cards search for other than exact criteria like we are not searching for ALLEN KEY SCREW 5 X 13 but for ALLEN KEY SCREWS only.</p>
<p>This is accomplished when we embed our criteria in asterisks with ampersand to connect it with the lookup criteria. Following table is produced as a result.</p>
<p><img decoding="async" class="aligncenter size-full wp-image-3229" src="https://excelzoom.com/wp-content/uploads/2017/10/10-16-2017-1-04-11-PM.png" alt="warehouse_summary2_countifs" width="487" height="156" /></p>
<h2><strong>Conclusion:</strong></h2>
<p>There could be various instances where we can use this COUNTIF() or COUNTIFS() we have mentioned just few. Though these functions are really helpful but they have a limitation as well. The functions are limited by the fact that they only works in columns and if will not work for rows. We have to resort to other functions like SUMPRODUCT or SUM (used as an array formula) to count.</p>
<p>Please <a href="https://www.dropbox.com/s/iwervlqzufa56kq/Getting%20Most%20Out%20of%20Countif.xlsx?dl=1">download</a> the attached sheet to see how things actually work in spreadsheet.</p>
<p>The post <a rel="nofollow" href="https://excelzoom.com/getting-most-out-of-countif-function-excel/">Getting Most Out of COUNTIF() and COUNTIFS() function in Excel</a> appeared first on <a rel="nofollow" href="https://excelzoom.com">Excel Zoom</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://excelzoom.com/getting-most-out-of-countif-function-excel/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
