summaryrefslogtreecommitdiffstats
path: root/helpcontent2/source/text/scalc/01/func_maxifs.xhp
diff options
context:
space:
mode:
Diffstat (limited to 'helpcontent2/source/text/scalc/01/func_maxifs.xhp')
-rw-r--r--helpcontent2/source/text/scalc/01/func_maxifs.xhp78
1 files changed, 78 insertions, 0 deletions
diff --git a/helpcontent2/source/text/scalc/01/func_maxifs.xhp b/helpcontent2/source/text/scalc/01/func_maxifs.xhp
new file mode 100644
index 000000000..ec778f57d
--- /dev/null
+++ b/helpcontent2/source/text/scalc/01/func_maxifs.xhp
@@ -0,0 +1,78 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<helpdocument version="1.0">
+<!--
+ * This file is part of the LibreOffice project.
+ *
+ * This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/.
+ *
+-->
+
+<meta>
+ <topic id="textscalc01func_sumifsxml">
+ <title id="tit" xml-lang="en-US">MAXIFS function</title>
+ <filename>/text/scalc/01/func_maxifs.xhp</filename>
+ </topic>
+</meta>
+
+<body>
+<section id="maxifs_function">
+<bookmark xml-lang="en-US" branch="hid/SC_HID_FUNC_MAXIFS" id="bm_id657666576665766" localize="false"/>
+<bookmark xml-lang="en-US" branch="index" id="bm_id658066580665806">
+ <bookmark_value>MAXIFS function</bookmark_value>
+ <bookmark_value>maximum;satisfying conditions</bookmark_value>
+</bookmark>
+<h1 id="hd_id658866588665886"><variable id="maxifs_head"><link href="text/scalc/01/func_maxifs.xhp">MAXIFS</link></variable> function</h1>
+<paragraph id="par_id659756597565975" role="paragraph" xml-lang="en-US"><ahelp hid="."><variable id="maxifs_des">Returns the maximum of the values of cells in a range that meets multiple criteria in multiple ranges.</variable></ahelp></paragraph>
+</section>
+<embed href="text/scalc/01/common_func.xhp#sectionsyntax"/>
+<paragraph id="par_id11655988824213" role="code" xml-lang="en-US">MAXIFS(<embedvar href="text/scalc/01/ex_data_stat_func.xhp#args" markup="ignore"/>)</paragraph>
+
+<paragraph id="par_id59901690530236" role="paragraph" xml-lang="en-US"><emph>Func_Range</emph> – required argument. A range of cells, a name of a named range or a label of a column or a row containing values for calculating the maximum.</paragraph>
+
+<embed href="text/scalc/01/ex_data_stat_func.xhp#par00"/>
+<embed href="text/shared/00/00000001.xhp#regex"/>
+<embed href="text/scalc/01/ex_data_stat_func.xhp#warning01"/>
+<embed href="text/scalc/01/ex_data_stat_func.xhp#note01"/>
+<embed href="text/scalc/01/ex_data_stat_func.xhp#par01"/>
+<embed href="text/scalc/01/ODFF.xhp#odff"/>
+<embed href="text/scalc/01/ex_data_stat_func.xhp#ex_func_average"/>
+
+<h4 id="hd_id193452436229521">Simple usage</h4>
+<paragraph id="par_id94321051525036" role="paragraph" xml-lang="en-US"><item type="input">=MAXIFS(B2:B6;B2:B6;"&lt;35")</item></paragraph>
+<paragraph id="par_id28647227259438" role="paragraph" xml-lang="en-US">Calculates the maximum of values of the range B2:B6 that are greater than or equal to 20. Returns 35. The fifth row does not meet the criterion.</paragraph>
+<paragraph id="par_id36952767622741" role="paragraph" xml-lang="en-US"><item type="input">=MAXIFS(C2:C6;B2:B6;"&gt;=20";C2:C6;"&lt;90")</item></paragraph>
+<paragraph id="par_id189772445525114" role="paragraph" xml-lang="en-US">Calculates the maximum of values of the range C2:C6 that are lower than 90 and correspond to cells of the B2:B6 range with values greater than or equal to 20. Returns 85, because the fourth and fifth rows do not meet at least one criterion.</paragraph>
+<h4 id="hd_id30455222431067">Using regular expressions and nested functions</h4>
+<paragraph id="par_id307691022525348" role="paragraph" xml-lang="en-US"><item type="input">=MAXIFS(C2:C6;B2:B6;"&gt;"&amp;MIN(B2:B6);B2:B6;"&lt;"&amp;MAX(B2:B6))</item></paragraph>
+<paragraph id="par_id27619246864839" role="paragraph" xml-lang="en-US">Calculates the maximum of values of the range C2:C6 that correspond to all values of the range B2:B6 except its minimum and maximum. Returns 190, because only the fourth row meet the criteria.</paragraph>
+<paragraph id="par_id220502883332563" role="paragraph" xml-lang="en-US"><item type="input">=MAXIFS(C2:C6;A2:A6;"pen.*";B2:B6;"&lt;="&amp;MAX(B2:B6))</item></paragraph>
+<paragraph id="par_id15342189586295" role="paragraph" xml-lang="en-US">Calculates the maximum of values of the range C2:C6 that correspond to all cells of the A2:A6 range starting with "pen" and to all cells of the B2:B6 range except its maximum. Returns 85, because only the third row meets all criteria.</paragraph>
+<h4 id="hd_id8168283329426">Reference to a cell as a criterion</h4>
+<paragraph id="par_id50762995519951" role="paragraph" xml-lang="en-US">If you need to change a criterion easily, you may want to specify it in a separate cell and use a reference to this cell in the condition of the MAXIFS function. For example, the above function can be rewritten as follows:</paragraph>
+<paragraph id="par_id135761606425300" role="paragraph" xml-lang="en-US"><item type="input">=MAXIFS(C2:C6;A2:A6;E2&amp;".*";B2:B6;"&lt;"&amp;MAX(B2:B6))</item></paragraph>
+<paragraph id="par_id30574750215839" role="paragraph" xml-lang="en-US">If E2 = "pen", the function returns 65, because the reference to the cell is substituted with its content.</paragraph>
+<embed href="text/scalc/06/calcsamplefiles.xhp#func_ifs"/>
+<embed href="text/scalc/01/common_func.xhp#sectiontechinfo"/>
+<embed href="text/scalc/00/avail_release.xhp#5.2"/>
+<embed href="text/scalc/01/common_func.xhp#notODFF"/>
+<paragraph role="paragraph" id="par_id341640873986703" localize="false"><literal>COM.MICROSOFT.MAXIFS</literal></paragraph>
+<section id="relatedtopics">
+<paragraph id="par_id11921178730928" role="paragraph" xml-lang="en-US" localize="false">
+<embedvar href="text/scalc/01/04060184.xhp#max_head"/>,
+<embedvar href="text/scalc/01/04060184.xhp#maxa_head"/>,
+<embedvar href="text/scalc/01/04060184.xhp#min_head"/>,
+<embedvar href="text/scalc/01/04060184.xhp#mina_head"/>,
+</paragraph>
+<paragraph id="par_id11931178730928" role="paragraph" xml-lang="en-US" localize="false">
+<embedvar href="text/scalc/01/func_countifs.xhp#countifs_head"/>,
+<embedvar href="text/scalc/01/func_minifs.xhp#minifs_head"/>,
+<embedvar href="text/scalc/01/func_maxifs.xhp#maxifs_head"/>,
+<embedvar href="text/scalc/01/func_averageifs.xhp#averageifs_head"/>,
+<embedvar href="text/scalc/01/func_sumifs.xhp#sumifs_head"/>
+</paragraph>
+<paragraph id="par_id15970172625152" role="paragraph" localize="false" xml-lang="en-US"><embedvar href="text/shared/01/02100001.xhp#02100001"/></paragraph>
+</section>
+</body>
+</helpdocument>