<!DOCTYPE html> <html> <head> <title>COUNTIFS Function</title> <meta charset="utf-8" /> <meta name="description" content="" /> <link type="text/css" rel="stylesheet" href="../editor.css" /> <script type="text/javascript" src="../callback.js"></script> <script type="text/javascript" src="../search/js/page-search.js"></script> </head> <body> <div class="mainpart"> <div class="search-field"> <input id="search" class="searchBar" placeholder="Search" type="text" onkeypress="doSearch(event)"> </div> <h1>COUNTIFS Function</h1> <p>The <b>COUNTIFS</b> function is one of the statistical functions. It is used to count the number of the selected cells based on multiple criteria.</p> <p>The <b>COUNTIFS</b> function syntax is:</p> <p style="text-indent: 150px;"><b><em>COUNTIFS(criteria-range-1, criteria-1, [criteria-range-2, criteria-2], ...)</em></b></p> <p><em>where</em></p> <p style="text-indent: 50px;"><b><em>criteria-range-1</em></b> is the first selected range of cells to apply the <em>criteria-1</em> to. It is a required argument.</p> <p style="text-indent: 50px;"><b><em>criteria-1</em></b> is the first condition that must be met. It is applied to the <em>criteria-range-1</em> and used to determine the cells in the <em>criteria-range-1</em> to count. It can be a value entered manually or included into the cell you make reference to. It is a required argument.</p> <p style="text-indent: 50px;"><b><em>criteria-range-2, criteria-2, ...</em></b> are additional ranges of cells and their corresponding criteria. These arguments are optional. You can add up to 127 ranges and corresponding criteria.</p> <p class="note"><b>Note</b>: you can use wildcard characters when specifying criteria. The question mark "?" can replace any single character and the asterisk "*" can be used instead of any number of characters. If you want to find a question mark or asterisk, type a tilde (~) before the character.</p> <p>To apply the <b>COUNTIFS</b> function,</p> <ol> <li>select the cell where you wish to display the result,</li> <li>click the <b>Insert function</b> <img alt="Insert function icon" src="../images/insertfunction.png" /> icon situated at the top toolbar, <br />or right-click within a selected cell and select the <b>Insert Function</b> option from the menu, <br />or click the <img alt="Function icon" src="../images/function.png" /> icon situated at the formula bar, </li> <li>select the <b>Statistical</b> function group from the list,</li> <li>click the <b>COUNTIFS</b> function,</li> <li>enter the required arguments separating them by commas,</li> <li>press the <b>Enter</b> button.</li> </ol> <p>The result will be displayed in the selected cell.</p> <p style="text-indent: 150px;"><img alt="COUNTIFS Function" src="../images/countifs.png" /></p> </div> </body> </html>