AllLangHelp_scalc.mk                     |    1 
 source/text/scalc/01/04060184.xhp        |    4 +
 source/text/scalc/01/func_averageif.xhp  |   40 +++++++++----------
 source/text/scalc/01/func_averageifs.xhp |   64 +++++++++++++++++++++++++++++++
 4 files changed, 89 insertions(+), 20 deletions(-)

New commits:
commit 27b584d0126fce1c74b6f89d3ce766ea46fa622c
Author: tagezi <lera.goncha...@gmail.com>
Date:   Tue Oct 6 23:41:14 2015 +0300

    Added discription AVERAGEIFS
    
    func_averageif.xhp - corrected typos
        added ODF 1.2
        added the link to AVERAGEIFS
    UPD1 added the function in the 04060184.xhp file
    UPD2 Changed in accordance with the comment of Olivier (08.10 12:47 AM)
    UPD3 corrected some typos
    
    Change-Id: I659991e24418f5328780ca67eef5d3e939e22e7d
    Reviewed-on: https://gerrit.libreoffice.org/19236
    Reviewed-by: Olivier Hallot <olivier.hal...@edx.srv.br>
    Tested-by: Olivier Hallot <olivier.hal...@edx.srv.br>

diff --git a/AllLangHelp_scalc.mk b/AllLangHelp_scalc.mk
index 8ecad3e..96f873a 100644
--- a/AllLangHelp_scalc.mk
+++ b/AllLangHelp_scalc.mk
@@ -183,6 +183,7 @@ $(eval $(call gb_AllLangHelp_add_helpfiles,scalc,\
     helpcontent2/source/text/scalc/01/format_graphic \
     helpcontent2/source/text/scalc/01/func_aggregate \
     helpcontent2/source/text/scalc/01/func_averageif \
+    helpcontent2/source/text/scalc/01/func_averageifs \
     helpcontent2/source/text/scalc/01/func_date \
     helpcontent2/source/text/scalc/01/func_datedif \
     helpcontent2/source/text/scalc/01/func_datevalue \
diff --git a/source/text/scalc/01/04060184.xhp 
b/source/text/scalc/01/04060184.xhp
index 4e12e57..d517a3f 100644
--- a/source/text/scalc/01/04060184.xhp
+++ b/source/text/scalc/01/04060184.xhp
@@ -170,6 +170,10 @@ oldref="162">Example</paragraph>
 <paragraph id="hd_id110421803716508" role="heading" level="2"  
localize="false" xml-lang="en-US"><embedvar 
href="text/scalc/01/func_averageif.xhp#averageif_head"/></paragraph>
 <paragraph id="par_id71462400513325" role="paragraph"  localize="false" 
xml-lang="en-US"><embedvar 
href="text/scalc/01/func_averageif.xhp#averageif_des"/></paragraph>
 </section>
+<section id="averageifs">
+<paragraph id="hd_id5471656631510" role="heading" level="2"  localize="false" 
xml-lang="en-US"><embedvar 
href="text/scalc/01/func_averageifs.xhp#averageifs_head"/></paragraph>
+<paragraph id="par_id5259182024777" role="paragraph"  localize="false" 
xml-lang="en-US"><embedvar 
href="text/scalc/01/func_averageifs.xhp#averageifs_des"/></paragraph>
+</section>
 <section id="mode">
 <bookmark xml-lang="en-US" branch="index" 
id="bm_id3153933"><bookmark_value>MODE function</bookmark_value>
 <bookmark_value>most common value</bookmark_value>
diff --git a/source/text/scalc/01/func_averageif.xhp 
b/source/text/scalc/01/func_averageif.xhp
index a772961..b47eec2 100644
--- a/source/text/scalc/01/func_averageif.xhp
+++ b/source/text/scalc/01/func_averageif.xhp
@@ -27,46 +27,46 @@
 <paragraph id="par_id7281266615152" role="paragraph" xml-lang="en-US"><ahelp 
hid="."><variable id="averageif_des">Returns the arithmetic mean of all cells 
in a range that satisfy a given condition. The AVERAGEIF function sums up all 
the results that match the logical test and divides this sum by the quantity of 
selected values.</variable></ahelp></paragraph>
 </section>
 <paragraph id="hd_id210572014129502" role="heading" level="3" 
xml-lang="en-US">Syntax</paragraph>
-<paragraph id="par_id200801176228491" role="code" 
xml-lang="en-US">AVERAGEIF(Range; Criteria [; Average_Range ])</paragraph>
+<paragraph id="par_id200801176228491" role="code" 
xml-lang="en-US">AVERAGEIF(Range; Criterion [; Average_Range ])</paragraph>
 <paragraph id="par_id15226321619829" role="paragraph" 
xml-lang="en-US"><emph>Range</emph> – required argument. An array, a name of 
named range or a label of a column or a row containing numbers for averaging or 
numbers or text for the condition.</paragraph>
-<paragraph id="par_id24499731228013" role="paragraph" 
xml-lang="en-US"><emph>Criteria</emph> – required argument. A condition in 
the form of expression or cell reference with expression that defines what 
cells should be used to calculate the mean. The expression can contain text, 
numbers or regular expressions.</paragraph>
+<paragraph id="par_id24499731228013" role="paragraph" 
xml-lang="en-US"><emph>Criterion</emph> – required argument. A condition in 
the form of expression or a cell reference with expression that defines what 
cells should be used to calculate the mean. The expression can contain text, 
numbers or regular expressions.</paragraph>
 <paragraph id="par_id174711913219765" role="paragraph" 
xml-lang="en-US"><emph>Average_Range</emph> – optional. It is a range of 
values for calculating the mean.</paragraph>
 <paragraph id="par_id45123108916423" role="note" xml-lang="en-US">Note that if 
the <emph>Average_Range</emph> is not specified, <emph>Range</emph> is used for 
both, the calculation of the mean and the search according to the condition. If 
the <emph>Average_Range</emph> is specified, the <emph>Range</emph> is used 
only for the condition test, while <emph>Average_Range</emph> is used for the 
mean calculation.<br/>
-The <emph>Criteria</emph> needs to be a string expression, in particular, the 
<emph>Criteria</emph> needs to be enclosed in quotation marks ("Criteria") with 
the exception of the names of functions, cell references and an operation of a 
string concatenation (&amp;).</paragraph>
+The <emph>Criterion</emph> needs to be a string expression, in particular, the 
<emph>Criterion</emph> needs to be enclosed in quotation marks ("Criterion") 
with the exception of the names of functions, cell references and an operation 
of a string concatenation (&amp;).</paragraph><embed 
href="text/scalc/01/ODFF.xhp#odff"/>
 <paragraph id="par_id278275053653" role="warning" xml-lang="en-US">If a cell 
in a range of values for calculating the mean is empty or contains text, 
function AVERAGEIF ignores this cell.<br/>
 If the whole range is empty, contains only text or all values of the range do 
not satisfy the condition (or any combination of those), the function returns 
the #DIV/0! error. </paragraph>
 <paragraph id="par_id37381077012888" role="paragraph"  localize="false" 
xml-lang="en-US"><embed 
href="text/scalc/01/ex_data_stat_func.xhp#ex_func_average"/></paragraph>
-<paragraph id="par_id38832436828097" role="warning" xml-lang="en-US">In all 
calculations below, range for average calculation contains the row #6, but it 
is ignored because it contains text.</paragraph>
+<paragraph id="par_id38832436828097" role="warning" xml-lang="en-US">In all 
calculations below, range for average calculation contains the row #6, but it 
is ignored, because it contains text.</paragraph>
 <paragraph id="hd_id229513120314273" role="heading" level="4" 
xml-lang="en-US">Simple usage</paragraph>
-<paragraph id="par_id2509201519225446" role="example" xml-lang="en-US"><item 
type="input">=AVERAGEIF(B6:B6;"&lt;35")</item></paragraph>
+<paragraph id="par_id2509201519225446" role="paragraph" xml-lang="en-US"><item 
type="input">=AVERAGEIF(B2:B6;"&lt;35")</item></paragraph>
 <paragraph id="par_id11322891219251" role="paragraph" 
xml-lang="en-US">Calculates the average for values of the range B2:B6 that are 
less than 35. Returns 19, because the second row does not participate in the 
calculation.</paragraph>
-<paragraph id="par_id250920151922590" role="example" xml-lang="en-US"><item 
type="input">=AVERAGEIF(B2:B6;"&lt;"&amp;MAX(B2:B6))</item></paragraph>
+<paragraph id="par_id250920151922590" role="paragraph" xml-lang="en-US"><item 
type="input">=AVERAGEIF(B2:B6;"&lt;"&amp;MAX(B2:B6))</item></paragraph>
 <paragraph id="par_id3813266131474" role="paragraph" 
xml-lang="en-US">Calculates the average for values of the same range that are 
less than the maximum value of this range. Returns 19, because the largest 
value (the second row) does not participate in the calculation.</paragraph>
-<paragraph id="par_id2509201519230832" role="example" xml-lang="en-US"><item 
type="input">=AVERAGEIF(B2:B6;"&gt;"&amp;SMALL(B2:B6;1))</item></paragraph>
+<paragraph id="par_id2509201519230832" role="paragraph" xml-lang="en-US"><item 
type="input">=AVERAGEIF(B2:B6;"&gt;"&amp;SMALL(B2:B6;1))</item></paragraph>
 <paragraph id="par_id243522732832394" role="paragraph" 
xml-lang="en-US">Calculates the average for values of the same range that are 
greater than the first smallest value of this range. Returns 25, because the 
first smallest value (the fourth row) does not participate in the 
calculation.</paragraph>
 <paragraph id="hd_id2101254257133" role="heading" level="4" 
xml-lang="en-US">Using the Average_Range</paragraph>
-<paragraph id="par_id2509201519315584" role="example" xml-lang="en-US"><item 
type="input">=AVERAGEIF(B2:B6;"&lt;35";C2:C6)</item></paragraph>
+<paragraph id="par_id2509201519315584" role="paragraph" xml-lang="en-US"><item 
type="input">=AVERAGEIF(B2:B6;"&lt;35";C2:C6)</item></paragraph>
 <paragraph id="par_id148222637631350" role="paragraph" xml-lang="en-US">The 
function searches what values are less than 35 in the B2:B6 range, and 
calculates the average of corresponding values from the C2:C6 range. Returns 
145, because the second row does not participate in the calculation. 
</paragraph>
-<paragraph id="par_id2509201519315535" role="example" xml-lang="en-US"><item 
type="input">=AVERAGEIF(B2:B6;"&gt;"&amp;MIN(B2:B6);C2:C6)</item></paragraph>
+<paragraph id="par_id2509201519315535" role="paragraph" xml-lang="en-US"><item 
type="input">=AVERAGEIF(B2:B6;"&gt;"&amp;MIN(B2:B6);C2:C6)</item></paragraph>
 <paragraph id="par_id2412836525208" role="paragraph" xml-lang="en-US">The 
function searches what values from the range B2:B6 are greater than the least 
value in the B2:B6 range, and calculates the average of corresponding values 
from the C2:C6 range. Returns 113,3, because the fourth row (where there is the 
least value in the range B2:B6) does not participate in the 
calculation.</paragraph>
-<paragraph id="par_id2509201519315547" role="example" xml-lang="en-US"><item 
type="input">=AVERAGEIF(B2:B6;"&lt;"&amp;LARGE(B2:B6;2);C2:C6)</item></paragraph>
-<paragraph id="par_id173931101529497" role="paragraph" xml-lang="en-US">The 
function searches what values from the range B2:B6 are less than the second 
large value in theB2:B6 range, and calculates the average of corresponding 
values from the C2:C6 range. Returns 180, because only the fourth row 
participates in the calculation. </paragraph>
+<paragraph id="par_id2509201519315547" role="paragraph" xml-lang="en-US"><item 
type="input">=AVERAGEIF(B2:B6;"&lt;"&amp;LARGE(B2:B6;2);C2:C6)</item></paragraph>
+<paragraph id="par_id173931101529497" role="paragraph" xml-lang="en-US">The 
function searches what values from the range B2:B6 are less than the second 
large value in the B2:B6 range, and calculates the average of corresponding 
values from the C2:C6 range. Returns 180, because only the fourth row 
participates in the calculation. </paragraph>
 <paragraph id="hd_id30054471316969" role="heading" level="4" 
xml-lang="en-US">Using regular expressions</paragraph>
-<paragraph id="par_id2509201519360514" role="example" xml-lang="en-US"><item 
type="input">=AVERAGEIF(A2:A6;"pen";B2:B6)</item></paragraph>
+<paragraph id="par_id2509201519360514" role="paragraph" xml-lang="en-US"><item 
type="input">=AVERAGEIF(A2:A6;"pen";B2:B6)</item></paragraph>
 <paragraph id="par_id14714860719948" role="paragraph" xml-lang="en-US">The 
function searches what cells from the range A2:A6 contain only the word 
“pen”, and calculates the average of corresponding values from the B2:B6 
range. Returns 35, because only the second row participates in the calculation. 
The search is performed in the A2:A6 range, but the values are returned from 
the B2:B6 range.</paragraph>
-<paragraph id="par_id250920151936096" role="example" xml-lang="en-US"><item 
type="input">=AVERAGEIF(A2:A6;"pen.*";B2:B6)</item></paragraph>
+<paragraph id="par_id250920151936096" role="paragraph" xml-lang="en-US"><item 
type="input">=AVERAGEIF(A2:A6;"pen.*";B2:B6)</item></paragraph>
 <paragraph id="par_id26959239098104" role="paragraph" xml-lang="en-US">The 
function searches what cells from the range A2:A6 begin with “pen” ending 
with any quantity of other symbols, and calculates the average of corresponding 
values from the B2:B6 range. Returns 27.5, because now also “pencil” 
satisfies the condition, and both, first and second rows participate in the 
calculation. </paragraph>
-<paragraph id="par_id2509201519361352" role="example" xml-lang="en-US"><item 
type="input">=AVERAGEIF(A2:A6;".*book.*";B2:B6)</item></paragraph>
+<paragraph id="par_id2509201519361352" role="paragraph" xml-lang="en-US"><item 
type="input">=AVERAGEIF(A2:A6;".*book.*";B2:B6)</item></paragraph>
 <paragraph id="par_id227041304619482" role="paragraph" xml-lang="en-US">The 
function searches what cells from the range A2:A6 contain “book” starting 
and ending with any quantity of other symbols, and calculates the average of 
corresponding values from the B2:B6 range. Returns 18.5, because only third and 
fourth rows participate in the calculation.</paragraph>
-<paragraph id="hd_id251309885188" role="heading" level="4" 
xml-lang="en-US">Reference to a cell for as a criteria</paragraph>
-<paragraph id="par_id177972099720424" role="example" xml-lang="en-US">If you 
need to change criteria easily, you may want to specify it in a separate cell 
and use a reference to this cell in the condition of AVERAGEIF function. 
</paragraph>
-<paragraph id="par_id134941261230060" role="example" xml-lang="en-US"><item 
type="input">=AVERAGEIF(A2:A6;".*"&amp;E2&amp;".*";B2:B6)</item></paragraph>
+<paragraph id="hd_id251309885188" role="heading" level="4" 
xml-lang="en-US">Reference to a cell as a criterion</paragraph>
+<paragraph id="par_id177972099720424" 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 AVERAGEIF function. 
</paragraph>
+<paragraph id="par_id134941261230060" role="paragraph" xml-lang="en-US"><item 
type="input">=AVERAGEIF(A2:A6;".*"&amp;E2&amp;".*";B2:B6)</item></paragraph>
 <paragraph id="par_id172572288310247" role="paragraph" xml-lang="en-US">The 
function searches what cells from the range A2:A6 contain a combination of 
symbols specified in E2 starting and ending with any quantity of other symbols, 
and calculates the average of corresponding values from the B2:B6 range. If E2 
= book, the function returns 18.5.</paragraph>
-<paragraph id="par_id316901523627285" role="example" xml-lang="en-US"><item 
type="input">=AVERAGEIF(A2:A6;"&lt;"&amp;E2;B2:B6)</item></paragraph>
+<paragraph id="par_id316901523627285" role="paragraph" xml-lang="en-US"><item 
type="input">=AVERAGEIF(A2:A6;"&lt;"&amp;E2;B2:B6)</item></paragraph>
 <paragraph id="par_id302181300528607" role="paragraph" xml-lang="en-US">The 
function searches what cells from the range A2:A6 are less than the value 
specified in E2, and calculates the average of corresponding values from the 
B2:B6 range. If E2 = 35, the function returns 145.</paragraph>
 <section id="relatedtopics">
-<paragraph id="par_id171371269326270" role="paragraph" xml-lang="en-US"><link 
href="text/scalc/01/04060184.xhp#average">AVERAGE</link>, <link 
href="text/scalc/01/04060184.xhp#averagea">AVERAGEA</link>, <link 
href="text/scalc/01/04060184.xhp#max">MAX</link>, <link 
href="text/scalc/01/04060184.xhp#min">MIN</link>, <link 
href="text/scalc/01/04060183.xhp#large">LARGE</link>, <link 
href="text/scalc/01/04060183.xhp#small">SMALL</link><br/></paragraph>
+<paragraph id="par_id171371269326270" role="paragraph" xml-lang="en-US"><link 
href="text/scalc/01/04060184.xhp#average">AVERAGE</link>, <link 
href="text/scalc/01/04060184.xhp#averagea">AVERAGEA</link>, <embedvar 
href="text/scalc/01/func_averageifs.xhp#averageifs_head"/>, <link 
href="text/scalc/01/04060184.xhp#max">MAX</link>, <link 
href="text/scalc/01/04060184.xhp#min">MIN</link>, <link 
href="text/scalc/01/04060183.xhp#large">LARGE</link>, <link 
href="text/scalc/01/04060183.xhp#small">SMALL</link></paragraph>
 <paragraph id="par_id251321802714497" role="paragraph"  localize="false" 
xml-lang="en-US"><embedvar 
href="text/shared/01/02100001.xhp#02100001"/></paragraph>
 </section>
 </body>
-</helpdocument>
+</helpdocument>
\ No newline at end of file
diff --git a/source/text/scalc/01/func_averageifs.xhp 
b/source/text/scalc/01/func_averageifs.xhp
new file mode 100644
index 0000000..93ae633
--- /dev/null
+++ b/source/text/scalc/01/func_averageifs.xhp
@@ -0,0 +1,64 @@
+<?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_averageifsxml">
+    <title id="tit" xml-lang="en-US">AVERAGEIFS function</title>
+    <filename>text/scalc/01/func_averageifs.xhp</filename>
+  </topic>
+</meta>
+
+<body>
+<section id="averageifs_function">
+<bookmark xml-lang="en-US" branch="hid/SC_HID_FUNC_AVERAGEIFS" 
id="bm_id536295362953629" localize="false"/>
+<bookmark xml-lang="en-US" branch="index" id="bm_id536715367153671">
+  <bookmark_value>AVERAGEIFS function</bookmark_value>
+  <bookmark_value>arithmetic mean;satisfying conditions</bookmark_value>
+</bookmark>
+<paragraph id="hd_id537445374453744" role="heading" level="2" 
xml-lang="en-US"><variable id="averageifs_head"><link 
href="text/scalc/01/func_averageifs.xhp">AVERAGEIFS</link></variable> 
function</paragraph>
+<paragraph id="par_id538405384053840" role="paragraph" xml-lang="en-US"><ahelp 
hid="."><variable id="averageifs_des">Returns the arithmetic mean of all cells 
in a range that satisfy given multiple criteria. The AVERAGEIFS function sums 
up all the results that match the logical tests and divides this sum by the 
quantity of selected values.</variable></ahelp></paragraph>
+</section>
+<paragraph id="hd_id538895388953889" role="heading" level="3" 
xml-lang="en-US">Syntax</paragraph>
+<paragraph id="par_id21050267713178" role="code" 
xml-lang="en-US">AVERAGEIFS(Average_range; Criterion_range1; Criterion1 [; 
Criterion_range2; Criterion2 [; ...]])</paragraph>
+<paragraph id="par_id165832700711773" role="paragraph" 
xml-lang="en-US"><emph>Average_range</emph> – required argument. It is a 
range of cells, a name of a named range or a label of a column or a row 
containing values for calculating the mean.</paragraph>
+<paragraph id="par_id23557225011065" role="paragraph" 
xml-lang="en-US"><emph>Criterion_range1</emph> – required argument. It is a 
range of cells, a name of a named range or a label of a column or a row 
containing values for finding the corresponding criterion.</paragraph>
+<paragraph id="par_id115612745015792" role="paragraph" 
xml-lang="en-US"><emph>Criterion1</emph> – required argument. A condition in 
the form of expression or cell reference with expression that defines what 
cells should be used to calculate the mean. The expression can contain text, 
numbers or regular expressions. </paragraph>
+<paragraph id="par_id249477513695" role="paragraph" 
xml-lang="en-US"><emph>Criterion_range2</emph> – Optional. Criterion_range2 
and all the following mean the same as Criterion_range1.</paragraph>
+<paragraph id="par_id157492744623347" role="paragraph" 
xml-lang="en-US"><emph>Criterion2</emph> – Optional. Criterion2 and all the 
following mean the same as Criterion1.</paragraph>
+<paragraph id="par_id262061474420658" role="note" xml-lang="en-US">The logical 
relation between criteria can be defined as logical AND (conjunction). In other 
words, if and only if all given criteria are met, a value from the 
corresponding cell of the given Average_range is taken into calculation of the 
mean.<br/>
+The <emph>Criterion</emph> needs to be a string expression, in particular, the 
<emph>Criterion</emph> needs to be enclosed in quotation marks ("Criterion") 
with the exception of the names of functions, cell references and the operator 
of a string concatenation (&amp;).<br />
+The function can have up to 255 arguments, meaning that you can specify 127 
criteria ranges and criteria for it.</paragraph><embed 
href="text/scalc/01/ODFF.xhp#odff"/>
+<paragraph id="par_id51531273215056" role="warning" xml-lang="en-US">If a cell 
in a range of values for calculating the mean is empty or contains text, the 
function AVERAGEIFS ignores this cell.<br/>
+If a cell contains TRUE, it is treated as 1, if a cell contains FALSE – as 0 
(zero).<br/>
+If the whole range is empty, contains only text or all values of the range do 
not satisfy the condition (or any combination of those), the function returns 
the #DIV/0! error.<br/>
+If the range of values for calculating the mean and any range for finding 
criterion have unequal sizes, the function returns err:502.</paragraph>
+<paragraph id="par_id9397381616478" role="paragraph"  localize="false" 
xml-lang="en-US"><embed 
href="text/scalc/01/ex_data_stat_func.xhp#ex_func_average"/></paragraph>
+<paragraph id="par_id151201977228038" role="warning" xml-lang="en-US">In all 
examples below, ranges for average calculation contain the row #6, but it is 
ignored, because it contains text.</paragraph>
+<paragraph id="hd_id20733192524041" role="heading" level="4" 
xml-lang="en-US">Simple usage</paragraph>
+<paragraph id="par_id24004653627203" role="paragraph" xml-lang="en-US"><item 
type="input">=AVERAGEIFS(B2:B6;B2:B6;">=20")</item></paragraph>
+<paragraph id="par_id30201168686268" role="paragraph" 
xml-lang="en-US">Calculates the average for values of the range B2:B6 that are 
greater than or equal to 20. Returns 25, because the fifth row does not meet 
the criterion.</paragraph>
+<paragraph id="par_id30279247419921" role="paragraph" xml-lang="en-US"><item 
type="input">=AVERAGEIFS(C2:C6;B2:B6;">=20";C2:C6;">70")</item></paragraph>
+<paragraph id="par_id2930764965983" role="paragraph" 
xml-lang="en-US">Calculates the average for values of the range C2:C6 that are 
greater than 70 and correspond to cells of B2:B6 with values  greater than or 
equal to 20. Returns 137.5, because the second and fifth rows do not meet at 
least one criterion.</paragraph>
+<paragraph id="hd_id317532515726820" role="heading" level="4" 
xml-lang="en-US">Using regular expressions and nested functions</paragraph>
+<paragraph id="par_id457966021670" role="paragraph" xml-lang="en-US"><item 
type="input">=AVERAGEIFS(C2:C6;B2:B6;">"&amp;MIN(B2:B6);B2:B6;"&lt;"&amp;MAX(B2:B6))</item></paragraph>
+<paragraph id="par_id66091035229950" role="paragraph" 
xml-lang="en-US">Calculates the average for values of the range C2:C6 that 
correspond to all values of the range B2:B6 except its minimum and maximum. 
Returns 127.5, because the third and fifth rows do not meet at least one 
criterion.</paragraph>
+<paragraph id="par_id303162761931870" role="paragraph" xml-lang="en-US"><item 
type="input">=AVERAGEIFS(C2:C6;A2:A6;"pen.*";B2:B6;"&lt;"&amp;MAX(B2:B6))</item></paragraph>
+<paragraph id="par_id40031348913642" role="paragraph" 
xml-lang="en-US">Calculates the average for 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 65, because only second row 
meets all criteria.</paragraph>
+<paragraph id="hd_id31201205191857" role="heading" level="4" 
xml-lang="en-US">Reference to a cell as a criterion</paragraph>
+<paragraph id="par_id316794795433" 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 AVERAGEIFS function. 
For example, the above function can be rewritten as follows:</paragraph>
+<paragraph id="par_id67531072426731" role="paragraph" xml-lang="en-US"><item 
type="input">=AVERAGEIFS(C2:C6;A2:A6;E2&amp;".*";B2:B6;"&lt;"&amp;MAX(B2:B6))</item></paragraph>
+<paragraph id="par_id65612244926745" role="paragraph" xml-lang="en-US">If E2 = 
pen, the function returns 65, because the link to the cell is substituted with 
its content.</paragraph>
+<section id="relatedtopics">
+<paragraph id="par_id1279148769260" role="paragraph" xml-lang="en-US"><link 
href="text/scalc/01/04060184.xhp#average">AVERAGE</link>, <link 
href="text/scalc/01/04060184.xhp#averagea">AVERAGEA</link>, <embedvar 
href="text/scalc/01/func_averageif.xhp#averageif_head"/>, <link 
href="text/scalc/01/04060184.xhp#max">MAX</link>, <link 
href="text/scalc/01/04060184.xhp#min">MIN</link></paragraph>
+<paragraph id="par_id20741445030307" role="paragraph"  localize="false" 
xml-lang="en-US"><embedvar 
href="text/shared/01/02100001.xhp#02100001"/></paragraph>
+</section>
+</body>
+</helpdocument>
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to