1<?xml version="1.0" encoding="UTF-8"?> 2 3<!--*********************************************************** 4 * 5 * Licensed to the Apache Software Foundation (ASF) under one 6 * or more contributor license agreements. See the NOTICE file 7 * distributed with this work for additional information 8 * regarding copyright ownership. The ASF licenses this file 9 * to you under the Apache License, Version 2.0 (the 10 * "License"); you may not use this file except in compliance 11 * with the License. You may obtain a copy of the License at 12 * 13 * http://www.apache.org/licenses/LICENSE-2.0 14 * 15 * Unless required by applicable law or agreed to in writing, 16 * software distributed under the License is distributed on an 17 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 18 * KIND, either express or implied. See the License for the 19 * specific language governing permissions and limitations 20 * under the License. 21 * 22 ***********************************************************--> 23 24<helpdocument version="1.0"> 25<meta> 26<topic id="textscalc0104060107xml" indexer="include"> 27<title id="tit" xml-lang="en-US">Array Functions</title> 28<filename>/text/scalc/01/04060107.xhp</filename> 29</topic> 30</meta> 31<body> 32<bookmark xml-lang="en-US" branch="index" id="bm_id3147273"> 33<bookmark_value>matrices; functions</bookmark_value> 34<bookmark_value>Function Wizard; arrays</bookmark_value> 35<bookmark_value>array formulas</bookmark_value> 36<bookmark_value>inline array constants</bookmark_value> 37<bookmark_value>formulas;arrays</bookmark_value> 38<bookmark_value>functions;array functions</bookmark_value> 39<bookmark_value>editing; array formulas</bookmark_value> 40<bookmark_value>copying; array formulas</bookmark_value> 41<bookmark_value>adjusting array ranges</bookmark_value> 42<bookmark_value>calculating;conditional calculations</bookmark_value> 43<bookmark_value>matrices; calculations</bookmark_value> 44<bookmark_value>conditional calculations with arrays</bookmark_value> 45<bookmark_value>implicit array handling</bookmark_value> 46<bookmark_value>forced array handling</bookmark_value> 47</bookmark><comment>mw deleted "creating;"</comment> 48<paragraph role="heading" id="hd_id3147273" xml-lang="en-US" level="1" l10n="U" oldref="1">Array Functions</paragraph> 49<paragraph role="paragraph" id="par_id3154744" xml-lang="en-US" l10n="U" oldref="2"><variable id="matrixtext">This category contains the array functions. 50</variable></paragraph> 51<paragraph role="heading" id="hd_id3146084" xml-lang="en-US" level="2" l10n="U" oldref="257">What is an Array?</paragraph> 52<paragraph role="paragraph" id="par_id3154298" xml-lang="en-US" l10n="U" oldref="258"><variable id="wasmatrix">An array is a linked range of cells on a spreadsheet containing values. 53</variable> A square range of 3 rows and 3 columns is a 3 x 3 array:</paragraph> 54<table id="tbl_id3151168"> 55<tablerow> 56<tablecell> 57</tablecell> 58<tablecell> 59<paragraph role="paragraph" id="par_id3154692" xml-lang="en-US" l10n="U" oldref="260">A</paragraph> 60</tablecell> 61<tablecell> 62<paragraph role="paragraph" id="par_id3150117" xml-lang="en-US" l10n="U" oldref="261">B</paragraph> 63</tablecell> 64<tablecell> 65<paragraph role="paragraph" id="par_id3155325" xml-lang="en-US" l10n="U" oldref="262">C</paragraph> 66</tablecell> 67</tablerow> 68<tablerow> 69<tablecell> 70<paragraph role="paragraph" id="par_id3153104" xml-lang="en-US" l10n="U" oldref="263">1</paragraph> 71</tablecell> 72<tablecell> 73<paragraph role="paragraph" id="par_id3146996" xml-lang="en-US" l10n="U" oldref="264"> 74<item type="input">7</item> 75</paragraph> 76</tablecell> 77<tablecell> 78<paragraph role="paragraph" id="par_id3150529" xml-lang="en-US" l10n="U" oldref="265"> 79<item type="input">31</item> 80</paragraph> 81</tablecell> 82<tablecell> 83<paragraph role="paragraph" id="par_id3148831" xml-lang="en-US" l10n="U" oldref="266"> 84<item type="input">33</item> 85</paragraph> 86</tablecell> 87</tablerow> 88<tablerow> 89<tablecell> 90<paragraph role="paragraph" id="par_id3148943" xml-lang="en-US" l10n="U" oldref="267">2</paragraph> 91</tablecell> 92<tablecell> 93<paragraph role="paragraph" id="par_id3149771" xml-lang="en-US" l10n="U" oldref="268"> 94<item type="input">95</item> 95</paragraph> 96</tablecell> 97<tablecell> 98<paragraph role="paragraph" id="par_id3158407" xml-lang="en-US" l10n="U" oldref="269"> 99<item type="input">17</item> 100</paragraph> 101</tablecell> 102<tablecell> 103<paragraph role="paragraph" id="par_id3148806" xml-lang="en-US" l10n="U" oldref="270"> 104<item type="input">2</item> 105</paragraph> 106</tablecell> 107</tablerow> 108<tablerow> 109<tablecell> 110<paragraph role="paragraph" id="par_id3154904" xml-lang="en-US" l10n="U" oldref="271">3</paragraph> 111</tablecell> 112<tablecell> 113<paragraph role="paragraph" id="par_id3150779" xml-lang="en-US" l10n="U" oldref="272"> 114<item type="input">5</item> 115</paragraph> 116</tablecell> 117<tablecell> 118<paragraph role="paragraph" id="par_id3148449" xml-lang="en-US" l10n="U" oldref="273"> 119<item type="input">10</item> 120</paragraph> 121</tablecell> 122<tablecell> 123<paragraph role="paragraph" id="par_id3147238" xml-lang="en-US" l10n="U" oldref="274"> 124<item type="input">50</item> 125</paragraph> 126</tablecell> 127</tablerow> 128</table> 129<paragraph role="paragraph" id="par_id3153583" xml-lang="en-US" l10n="U" oldref="277">The smallest possible array is a 1 x 2 or 2 x 1 array with two adjacent cells.</paragraph> 130<paragraph role="heading" id="hd_id3148474" xml-lang="en-US" level="2" l10n="U" oldref="275">What is an array formula?</paragraph> 131<paragraph role="paragraph" id="par_id3155355" xml-lang="en-US" l10n="U" oldref="276">A formula in which the individual values in a cell range are evaluated is referred to as an array formula. The difference between an array formula and other formulas is that the array formula deals with several values simultaneously instead of just one.</paragraph> 132<paragraph role="paragraph" id="par_id3151052" xml-lang="en-US" l10n="U" oldref="278">Not only can an array formula process several values, but it can also return several values. The results of an array formula is also an array.</paragraph> 133<paragraph role="paragraph" id="par_id3158432" xml-lang="en-US" l10n="U" oldref="279">To multiply the values in the individual cells by 10 in the above array, you do not need to apply a formula to each individual cell or value. Instead you just need to use a single array formula. Select a range of 3 x 3 cells on another part of the spreadsheet, enter the formula <item type="input">=10*A1:C3</item> and confirm this entry using the key combination <switchinline select="sys"><caseinline select="MAC">Command</caseinline><defaultinline>Ctrl</defaultinline></switchinline>+Shift+Enter. The result is a 3 x 3 array in which the individual values in the cell range (A1:C3) are multiplied by a factor of 10.</paragraph> 134<paragraph role="paragraph" id="par_id3149156" xml-lang="en-US" l10n="U" oldref="280">In addition to multiplication, you can also use other operators on the reference range (an array). With $[officename] Calc, you can add (+), subtract (-), multiply (*), divide (/), use exponents (^), concatenation (&) and comparisons (=, <>, <, >, <=, >=). The operators can be used on each individual value in the cell range and return the result as an array if the array formula was entered.</paragraph> 135<paragraph role="paragraph" id="par_id3166456" xml-lang="en-US" l10n="CHG" oldref="326">Comparison operators in an array formula treat empty cells in the same way as in a normal formula, that is, either as zero or as an empty string. For example, if cells A1 and A2 are empty the array formulas <item type="input">{=A1:A2=""}</item> and <item type="input">{=A1:A2=0}</item> will both return a 1 column 2 row array of cells containing TRUE.</paragraph> 136<paragraph role="heading" id="hd_id3150713" xml-lang="en-US" level="3" l10n="U" oldref="281">When do you use array formulas?</paragraph> 137<paragraph role="paragraph" id="par_id3149787" xml-lang="en-US" l10n="U" oldref="282">Use array formulas if you have to repeat calculations using different values. If you decide to change the calculation method later, you only have to update the array formula. To add an array formula, select the entire array range and then <link href="text/scalc/01/04060107.xhp" name="make the required change to the array formula">make the required change to the array formula</link>.</paragraph> 138<paragraph role="paragraph" id="par_id3149798" xml-lang="en-US" l10n="U" oldref="283">Array formulas are also a space saving option when several values must be calculated, since they are not very memory-intensive. In addition, arrays are an essential tool for carrying out complex calculations, because you can have several cell ranges included in your calculations. $[officename] has different math functions for arrays, such as the MMULT function for multiplying two arrays or the SUMPRODUCT function for calculating the scalar products of two arrays.</paragraph> 139<paragraph role="heading" id="hd_id3155588" xml-lang="en-US" level="2" l10n="U" oldref="284">Using Array Formulas in $[officename] Calc</paragraph> 140<paragraph role="paragraph" id="par_id3152876" xml-lang="en-US" l10n="U" oldref="285">You can also create a "normal" formula in which the reference range, such as parameters, indicate an array formula. The result is obtained from the intersection of the reference range and the rows or columns in which the formula is found. If there is no intersection or if the range at the intersection covers several rows or columns, a #VALUE! error message appears. The following example illustrates this concept:</paragraph> 141<paragraph role="heading" id="hd_id3151271" xml-lang="en-US" level="3" l10n="U" oldref="313">Creating Array Formulas</paragraph> 142<section id="somatrixformel"> 143<paragraph role="paragraph" id="par_id3149102" xml-lang="en-US" l10n="U" oldref="314">If you create an array formula using the <emph>Function Wizard</emph>, you must mark the <emph>Array</emph> check box each time so that the results are returned in an array. Otherwise, only the value in the upper-left cell of the array being calculated is returned.</paragraph> 144<paragraph role="paragraph" id="par_id3153392" xml-lang="en-US" l10n="U" oldref="4">If you enter the array formula directly into the cell, you must use the key combination Shift+<switchinline select="sys"><caseinline select="MAC">Command</caseinline><defaultinline>Ctrl</defaultinline></switchinline>+Enter instead of the Enter key. Only then does the formula become an array formula.</paragraph> 145<paragraph role="note" id="par_id3151120" xml-lang="en-US" l10n="U" oldref="315">Array formulas appear in braces in $[officename] Calc. You cannot create array formulas by manually entering the braces.</paragraph> 146</section> 147<paragraph role="paragraph" id="par_id3154342" xml-lang="en-US" l10n="U" oldref="5">The cells in a results array are automatically protected against changes. However, you can edit or copy the array formula by selecting the entire array cell range.</paragraph> 148<paragraph role="heading" id="hd_id8834803" xml-lang="en-US" level="3" l10n="NEW">Using Inline Array Constants in Formulas</paragraph> 149<paragraph role="paragraph" id="par_id985747" xml-lang="en-US" l10n="NEW">Calc supports inline matrix/array constants in formulas. An inline array is surrounded by curly braces '{' and '}'. Elements can be each a number (including negatives), a logical constant (TRUE, FALSE), or a literal string. Non-constant expressions are not allowed. Arrays can be entered with one or more rows, and one or more columns. All rows must consist of the same number of elements, all columns must consist of the same number of elements. </paragraph> 150<paragraph role="paragraph" id="par_id936613" xml-lang="en-US" l10n="NEW">The column separator (separating elements in one row) is the ';' semicolon. The row separator is a '|' pipe symbol. The separators are not language and locale dependent. </paragraph> 151<paragraph role="paragraph" id="par_id1877498" xml-lang="en-US" l10n="NEW">Arrays can not be nested.</paragraph> 152<paragraph role="paragraph" id="par_id4262520" xml-lang="en-US" l10n="NEW"> 153<emph>Examples:</emph> 154</paragraph> 155<paragraph role="code" id="par_id9387493" xml-lang="en-US" l10n="NEW">={1;2;3}</paragraph> 156<paragraph role="paragraph" id="par_id8207037" xml-lang="en-US" l10n="NEW">An array with one row consisting of the three numbers 1, 2, and 3.</paragraph> 157<paragraph role="paragraph" id="par_id6757103" xml-lang="en-US" l10n="NEW">To enter this array constant, you select three cells in a row, then you type the formula <item type="input">={1;2;3}</item> using the curly braces and the semicolons, then press <switchinline select="sys"><caseinline select="MAC">Command</caseinline><defaultinline>Ctrl</defaultinline></switchinline>+Shift+Enter.</paragraph> 158<paragraph role="code" id="par_id8868068" xml-lang="en-US" l10n="NEW">={1;2;3|4;5;6}</paragraph> 159<paragraph role="paragraph" id="par_id6626483" xml-lang="en-US" l10n="NEW">An array with two rows and three values in each row.</paragraph> 160<paragraph role="code" id="par_id5262916" xml-lang="en-US" l10n="NEW">={0;1;2|FALSE;TRUE;"two"}</paragraph> 161<paragraph role="paragraph" id="par_id1623889" xml-lang="en-US" l10n="NEW">A mixed data array.</paragraph> 162<paragraph role="code" id="par_id7781914" xml-lang="en-US" l10n="NEW">=SIN({1;2;3})</paragraph> 163<paragraph role="paragraph" id="par_id300912" xml-lang="en-US" l10n="NEW">Entered as a matrix formula, delivers the result of three SIN calculations with the arguments 1, 2, and 3.</paragraph> 164<paragraph role="heading" id="hd_id3148660" xml-lang="en-US" level="3" l10n="U" oldref="316">Editing Array Formulas</paragraph> 165<list type="ordered"> 166<listitem> 167<paragraph role="listitem" id="par_id3149241" xml-lang="en-US" l10n="U" oldref="317">Select the cell range or array containing the array formula. To select the whole array, position the cell cursor inside the array range, then press <switchinline select="sys"><caseinline select="MAC">Command </caseinline><defaultinline>Ctrl </defaultinline></switchinline>+ /, where / is the Division key on the numeric keypad.</paragraph> 168</listitem> 169<listitem> 170<paragraph role="listitem" id="par_id3143274" xml-lang="en-US" l10n="U" oldref="318">Either press F2 or position the cursor in the input line. Both of these actions let you edit the formula.</paragraph> 171</listitem> 172<listitem> 173<paragraph role="listitem" id="par_id3154798" xml-lang="en-US" l10n="U" oldref="319">After you have made changes, press <switchinline select="sys"><caseinline select="MAC">Command</caseinline><defaultinline>Ctrl</defaultinline></switchinline>+Shift+Enter.</paragraph> 174</listitem> 175</list> 176<paragraph role="tip" id="par_id3150628" xml-lang="en-US" l10n="U" oldref="334">You can format the separate parts of an array. For example, you can change the font color. Select a cell range and then change the attribute you want.</paragraph> 177<paragraph role="heading" id="hd_id3145608" xml-lang="en-US" level="3" l10n="U" oldref="320">Copying Array Formulas</paragraph> 178<list type="ordered"> 179<listitem> 180<paragraph role="listitem" id="par_id3149585" xml-lang="en-US" l10n="U" oldref="321">Select the cell range or array containing the array formula.</paragraph> 181</listitem> 182<listitem> 183<paragraph role="listitem" id="par_id3154619" xml-lang="en-US" l10n="U" oldref="322">Either press F2 or position the cursor in the input line.</paragraph> 184</listitem> 185<listitem> 186<paragraph role="listitem" id="par_id3150994" xml-lang="en-US" l10n="U" oldref="323">Copy the formula into the input line by pressing <switchinline select="sys"><caseinline select="MAC">Command</caseinline><defaultinline>Ctrl</defaultinline></switchinline>+C.</paragraph> 187</listitem> 188<listitem> 189<paragraph role="listitem" id="par_id3146787" xml-lang="en-US" l10n="U" oldref="324">Select a range of cells where you want to insert the array formula and either press F2 or position the cursor in the input line.</paragraph> 190</listitem> 191<listitem> 192<paragraph role="listitem" id="par_id3154419" xml-lang="en-US" l10n="U" oldref="325">Paste the formula by pressing <switchinline select="sys"><caseinline select="MAC">Command</caseinline><defaultinline>Ctrl</defaultinline></switchinline>+V in the selected space and confirm it by pressing <switchinline select="sys"><caseinline select="MAC">Command</caseinline><defaultinline>Ctrl</defaultinline></switchinline>+Shift+Enter. The selected range now contains the array formula.</paragraph> 193</listitem> 194</list> 195<paragraph role="heading" id="hd_id3154834" xml-lang="en-US" level="3" l10n="U" oldref="328">Adjusting an Array Range</paragraph> 196<paragraph role="paragraph" id="par_id3148679" xml-lang="en-US" l10n="U" oldref="329">If you want to edit the output array, do the following:</paragraph> 197<list type="ordered"> 198<listitem> 199<paragraph role="listitem" id="par_id3151102" xml-lang="en-US" l10n="U" oldref="330">Select the cell range or array containing the array formula.</paragraph> 200</listitem> 201<listitem> 202<paragraph role="listitem" id="par_id3147096" xml-lang="en-US" l10n="U" oldref="331">Below the selection, to the right, you will see a small icon with which you can zoom in or out on the range using your mouse.</paragraph> 203</listitem> 204</list> 205<paragraph role="note" id="par_id3150974" xml-lang="en-US" l10n="U" oldref="332">When you adjust the array range, the array formula will not automatically be adjusted. You are only changing the range in which the result will appear.</paragraph> 206<paragraph role="paragraph" id="par_id3146080" xml-lang="en-US" l10n="U" oldref="333">By holding down the <switchinline select="sys"><caseinline select="MAC">Command </caseinline><defaultinline>Ctrl </defaultinline></switchinline>key, you can create a copy of the array formula in the given range.</paragraph> 207<paragraph role="heading" id="par_idN10D47" xml-lang="en-US" level="3" l10n="NEW">Conditional Array Calculations</paragraph> 208<paragraph role="paragraph" id="par_idN10D4B" xml-lang="en-US" l10n="NEW">A conditional array calculation is an array or matrix formula that includes an IF() or CHOOSE() function. The condition argument in the formula is an area reference or a matrix result.</paragraph> 209<paragraph role="paragraph" id="par_idN10D4E" xml-lang="en-US" l10n="NEW">In the following example, the >0 test of the {=IF(A1:A3>0;"yes";"no")} formula is applied to each cell in the range A1:A3 and the result is copied to the corresponding cell.</paragraph> 210<table id="tbl_id2511673"> 211<tablerow> 212<tablecell> 213</tablecell> 214<tablecell> 215<paragraph role="tablehead" id="par_idN10D65" xml-lang="en-US" l10n="NEW">A</paragraph> 216</tablecell> 217<tablecell> 218<paragraph role="tablehead" id="par_idN10D6B" xml-lang="en-US" l10n="NEW">B (formula)</paragraph> 219</tablecell> 220<tablecell> 221<paragraph role="tablehead" id="par_idN10B75" xml-lang="en-US" l10n="NEW">B (result)</paragraph> 222</tablecell> 223</tablerow> 224<tablerow> 225<tablecell> 226<paragraph role="tablehead" id="par_idN10D79" xml-lang="en-US" l10n="NEW">1</paragraph> 227</tablecell> 228<tablecell> 229<paragraph role="paragraph" id="par_idN10D80" xml-lang="en-US" l10n="NEW">1</paragraph> 230</tablecell> 231<tablecell> 232<paragraph role="paragraph" id="par_idN10D86" xml-lang="en-US" l10n="NEW">{=IF(A1:A3>0;"yes";"no")}</paragraph> 233</tablecell> 234<tablecell> 235<paragraph role="tablecontent" id="par_idN10D8C" xml-lang="en-US" l10n="NEW">yes</paragraph> 236</tablecell> 237</tablerow> 238<tablerow> 239<tablecell> 240<paragraph role="tablehead" id="par_idN10D94" xml-lang="en-US" l10n="NEW">2</paragraph> 241</tablecell> 242<tablecell> 243<paragraph role="paragraph" id="par_idN10D9B" xml-lang="en-US" l10n="NEW">0</paragraph> 244</tablecell> 245<tablecell> 246<paragraph role="paragraph" id="par_idN10DA1" xml-lang="en-US" l10n="NEW">{=IF(A1:A3>0;"yes";"no")}</paragraph> 247</tablecell> 248<tablecell> 249<paragraph role="tablecontent" id="par_idN10DA7" xml-lang="en-US" l10n="NEW">no</paragraph> 250</tablecell> 251</tablerow> 252<tablerow> 253<tablecell> 254<paragraph role="tablehead" id="par_idN10DAF" xml-lang="en-US" l10n="NEW">3</paragraph> 255</tablecell> 256<tablecell> 257<paragraph role="paragraph" id="par_idN10DB6" xml-lang="en-US" l10n="NEW">1</paragraph> 258</tablecell> 259<tablecell> 260<paragraph role="paragraph" id="par_idN10DBC" xml-lang="en-US" l10n="NEW">{=IF(A1:A3>0;"yes";"no")}</paragraph> 261</tablecell> 262<tablecell> 263<paragraph role="tablecontent" id="par_idN10DC2" xml-lang="en-US" l10n="NEW">yes</paragraph> 264</tablecell> 265</tablerow> 266</table> 267<paragraph role="paragraph" id="par_idN10DD0" xml-lang="en-US" l10n="NEW">The following functions provide forced array handling: CORREL, COVAR, FORECAST, FTEST, INTERCEPT, MDETERM, MINVERSE, MMULT, MODE, PEARSON, PROB, RSQ, SLOPE, STEYX, SUMPRODUCT, SUMX2MY2, SUMX2PY2, SUMXMY2, TTEST. If you use area references as arguments when you call one of these functions, the functions behave as array functions. The following table provides an example of forced array handling:</paragraph> 268<table id="tbl_id7380291"> 269<tablerow> 270<tablecell> 271</tablecell> 272<tablecell> 273<paragraph role="tablehead" id="par_idN10DE2" xml-lang="en-US" l10n="NEW">A</paragraph> 274</tablecell> 275<tablecell> 276<paragraph role="tablehead" id="par_idN10DE8" xml-lang="en-US" l10n="NEW">B (formula)</paragraph> 277</tablecell> 278<tablecell> 279<paragraph role="tablehead" id="par_idN10DEE" xml-lang="en-US" l10n="NEW">B (result)</paragraph> 280</tablecell> 281<tablecell> 282<paragraph role="tablehead" id="par_idN10DF4" xml-lang="en-US" l10n="NEW">C (forced array formula)</paragraph> 283</tablecell> 284<tablecell> 285<paragraph role="tablehead" id="par_idN10DFA" xml-lang="en-US" l10n="NEW">C (result)</paragraph> 286</tablecell> 287</tablerow> 288<tablerow> 289<tablecell> 290<paragraph role="tablehead" id="par_idN10E02" xml-lang="en-US" l10n="NEW">1</paragraph> 291</tablecell> 292<tablecell> 293<paragraph role="tablecontent" id="par_idN10E09" xml-lang="en-US" l10n="NEW">1</paragraph> 294</tablecell> 295<tablecell> 296<paragraph role="tablecontent" id="par_idN10E0F" xml-lang="en-US" l10n="NEW">=A1:A2+1</paragraph> 297</tablecell> 298<tablecell> 299<paragraph role="tablecontent" id="par_idN10E17" xml-lang="en-US" l10n="NEW">2</paragraph> 300</tablecell> 301<tablecell> 302<paragraph role="tablecontent" id="par_idN10E1D" xml-lang="en-US" l10n="NEW">=SUMPRODUCT(A1:A2+1)</paragraph> 303</tablecell> 304<tablecell> 305<paragraph role="tablecontent" id="par_idN10E25" xml-lang="en-US" l10n="NEW">5</paragraph> 306</tablecell> 307</tablerow> 308<tablerow> 309<tablecell> 310<paragraph role="tablehead" id="par_idN10E2D" xml-lang="en-US" l10n="NEW">2</paragraph> 311</tablecell> 312<tablecell> 313<paragraph role="tablecontent" id="par_idN10E34" xml-lang="en-US" l10n="NEW">2</paragraph> 314</tablecell> 315<tablecell> 316<paragraph role="tablecontent" id="par_idN10E3A" xml-lang="en-US" l10n="NEW">=A1:A2+1</paragraph> 317</tablecell> 318<tablecell> 319<paragraph role="tablecontent" id="par_idN10E42" xml-lang="en-US" l10n="NEW">3</paragraph> 320</tablecell> 321<tablecell> 322<paragraph role="tablecontent" id="par_idN10E48" xml-lang="en-US" l10n="NEW">=SUMPRODUCT(A1:A2+1)</paragraph> 323</tablecell> 324<tablecell> 325<paragraph role="tablecontent" id="par_idN10E50" xml-lang="en-US" l10n="NEW">5</paragraph> 326</tablecell> 327</tablerow> 328<tablerow> 329<tablecell> 330<paragraph role="tablehead" id="par_idN10E58" xml-lang="en-US" l10n="NEW">3</paragraph> 331</tablecell> 332<tablecell> 333</tablecell> 334<tablecell> 335<paragraph role="tablecontent" id="par_idN10E63" xml-lang="en-US" l10n="NEW">=A1:A2+1</paragraph> 336</tablecell> 337<tablecell> 338<paragraph role="tablecontent" id="par_idN10E6A" xml-lang="en-US" l10n="NEW">#VALUE!</paragraph> 339</tablecell> 340<tablecell> 341<paragraph role="tablecontent" id="par_idN10E70" xml-lang="en-US" l10n="NEW">=SUMPRODUCT(A1:A2+1)</paragraph> 342</tablecell> 343<tablecell> 344<paragraph role="tablecontent" id="par_idN10E78" xml-lang="en-US" l10n="NEW">5</paragraph> 345</tablecell> 346</tablerow> 347</table> 348<sort> 349<section id="Section14"> 350<bookmark xml-lang="en-US" branch="index" id="bm_id3158446"> 351<bookmark_value>MUNIT function</bookmark_value> 352</bookmark> 353<bookmark xml-lang="en-US" branch="hid/SC_HID_FUNC_EINHEITSMATRIX" id="bm_id3151317" localize="false"/> 354<paragraph role="heading" id="hd_id3158446" xml-lang="en-US" level="2" l10n="U" oldref="12">MUNIT</paragraph> 355<paragraph role="paragraph" id="par_id3154121" xml-lang="en-US" l10n="U" oldref="13"><ahelp hid="HID_FUNC_EINHEITSMATRIX">Returns the unitary square array of a certain size.</ahelp> The unitary array is a square array where the main diagonal elements equal 1 and all other array elements are equal to 0.</paragraph> 356<paragraph role="heading" id="hd_id3155123" xml-lang="en-US" level="3" l10n="U" oldref="14">Syntax</paragraph> 357<paragraph role="code" id="par_id3156271" xml-lang="en-US" l10n="U" oldref="15">MUNIT(Dimensions)</paragraph> 358<paragraph role="paragraph" id="par_id3159390" xml-lang="en-US" l10n="U" oldref="16"> 359<emph>Dimensions</emph> refers to the size of the array unit.</paragraph> 360<paragraph role="note" id="par_idN10C9B" xml-lang="en-US" l10n="NEW">You can find a general introduction to Array functions at the top of this page.</paragraph> 361<paragraph role="heading" id="hd_id3156162" xml-lang="en-US" level="3" l10n="U" oldref="17">Example</paragraph> 362<paragraph role="paragraph" id="par_id3150949" xml-lang="en-US" l10n="U" oldref="18">Select a square range within the spreadsheet, for example, from A1 to E5.</paragraph> 363<paragraph role="paragraph" id="par_id3151260" xml-lang="en-US" l10n="U" oldref="19">Without deselecting the range, select the MUNIT function. Mark the <emph>Array</emph> check box. Enter the desired dimensions for the array unit, in this case <item type="input">5</item>, and click <emph>OK</emph>.</paragraph> 364<paragraph role="paragraph" id="par_id3150403" xml-lang="en-US" l10n="U" oldref="20">You can also enter the <item type="input">=Munit(5)</item> formula in the last cell of the selected range (E5), and press <switchinline select="sys"><caseinline select="MAC">Shift+Command+Enter</caseinline><defaultinline>Shift+Ctrl+Enter</defaultinline></switchinline>.</paragraph> 365<paragraph role="paragraph" id="par_id3156143" xml-lang="en-US" l10n="U" oldref="21">You now see a unit array with a range of A1:E5.</paragraph> 366<paragraph role="paragraph" id="par_idN10FA7" xml-lang="en-US" l10n="NEW"> 367<embedvar href="text/scalc/00/00000004.xhp#moreontop"/> 368</paragraph> 369</section> 370<section id="Section13"> 371<bookmark xml-lang="en-US" branch="index" id="bm_id3159084"> 372<bookmark_value>FREQUENCY function</bookmark_value> 373</bookmark> 374<bookmark xml-lang="en-US" branch="hid/SC_HID_FUNC_HAEUFIGKEIT" id="bm_id3153883" localize="false"/> 375<paragraph role="heading" id="hd_id3159084" xml-lang="en-US" level="2" l10n="U" oldref="22">FREQUENCY</paragraph> 376<paragraph role="paragraph" id="par_id3145777" xml-lang="en-US" l10n="CHG" oldref="23"><ahelp hid="HID_FUNC_HAEUFIGKEIT">Indicates the frequency distribution in a one-column-array.</ahelp> The function counts the number of values in the Data array that are within the values given by the Classes array.</paragraph> 377<paragraph role="heading" id="hd_id3153347" xml-lang="en-US" level="3" l10n="U" oldref="24">Syntax</paragraph> 378<paragraph role="code" id="par_id3155498" xml-lang="en-US" l10n="U" oldref="25">FREQUENCY(Data; Classes)</paragraph> 379<paragraph role="paragraph" id="par_id3154352" xml-lang="en-US" l10n="CHG" oldref="26"> 380<emph>Data</emph> represents the reference to the values to be counted.</paragraph> 381<paragraph role="paragraph" id="par_id3148402" xml-lang="en-US" l10n="CHG" oldref="27"> 382<emph>Classes</emph> represents the array of the limit values.</paragraph> 383<paragraph role="note" id="par_idN10D71" xml-lang="en-US" l10n="NEW">You can find a general introduction to Array functions at the top of this page.</paragraph> 384<paragraph role="heading" id="hd_id3148981" xml-lang="en-US" level="3" l10n="U" oldref="28">Example</paragraph> 385<paragraph role="paragraph" id="par_id3155904" xml-lang="en-US" l10n="CHG" oldref="219">In the following table, column A lists unsorted measurement values. Column B contains the upper limit you entered for the classes into which you want to divide the data in column A. According to the limit entered in B1, the FREQUENCY function returns the number of measured values less than or equal to 5. As the limit in B2 is 10, the FREQUENCY function returns the second result as the number of measured values that are greater than 5 and less than or equal to 10. The text you entered in B6, ">25", is only for reference purposes.<comment>i77461: replace old text: As the limit in B2 is 10, the FREQUENCY function returns the second result as the number of measured values that are greater than 5 or greater than or equal to 10.</comment></paragraph><comment>UFI: replace table by picture</comment> 386<table id="tbl_id3150680"> 387<tablerow> 388<tablecell> 389</tablecell> 390<tablecell> 391<paragraph role="paragraph" id="par_id3155869" xml-lang="en-US" l10n="U" oldref="220"> 392<emph>A</emph> 393</paragraph> 394</tablecell> 395<tablecell> 396<paragraph role="paragraph" id="par_id3149328" xml-lang="en-US" l10n="U" oldref="221"> 397<emph>B</emph> 398</paragraph> 399</tablecell> 400<tablecell> 401<paragraph role="paragraph" id="par_id3152467" xml-lang="en-US" l10n="U" oldref="222"> 402<emph>C</emph> 403</paragraph> 404</tablecell> 405</tablerow> 406<tablerow> 407<tablecell> 408<paragraph role="paragraph" id="par_id3154528" xml-lang="en-US" l10n="U" oldref="223"> 409<emph>1</emph> 410</paragraph> 411</tablecell> 412<tablecell> 413<paragraph role="paragraph" id="par_id3149744" xml-lang="en-US" l10n="U" oldref="224">12</paragraph> 414</tablecell> 415<tablecell> 416<paragraph role="paragraph" id="par_id3147309" xml-lang="en-US" l10n="U" oldref="225">5</paragraph> 417</tablecell> 418<tablecell> 419<paragraph role="paragraph" id="par_id3154199" xml-lang="en-US" l10n="U" oldref="226">1</paragraph> 420</tablecell> 421</tablerow> 422<tablerow> 423<tablecell> 424<paragraph role="paragraph" id="par_id3159218" xml-lang="en-US" l10n="U" oldref="227"> 425<emph>2</emph> 426</paragraph> 427</tablecell> 428<tablecell> 429<paragraph role="paragraph" id="par_id3153263" xml-lang="en-US" l10n="U" oldref="228">8</paragraph> 430</tablecell> 431<tablecell> 432<paragraph role="paragraph" id="par_id3156201" xml-lang="en-US" l10n="U" oldref="229">10</paragraph> 433</tablecell> 434<tablecell> 435<paragraph role="paragraph" id="par_id3147552" xml-lang="en-US" l10n="U" oldref="230">3</paragraph> 436</tablecell> 437</tablerow> 438<tablerow> 439<tablecell> 440<paragraph role="paragraph" id="par_id3149174" xml-lang="en-US" l10n="U" oldref="231"> 441<emph>3</emph> 442</paragraph> 443</tablecell> 444<tablecell> 445<paragraph role="paragraph" id="par_id3151201" xml-lang="en-US" l10n="U" oldref="232">24</paragraph> 446</tablecell> 447<tablecell> 448<paragraph role="paragraph" id="par_id3150245" xml-lang="en-US" l10n="U" oldref="233">15</paragraph> 449</tablecell> 450<tablecell> 451<paragraph role="paragraph" id="par_id3159194" xml-lang="en-US" l10n="U" oldref="234">2</paragraph> 452</tablecell> 453</tablerow> 454<tablerow> 455<tablecell> 456<paragraph role="paragraph" id="par_id3146925" xml-lang="en-US" l10n="U" oldref="235"> 457<emph>4</emph> 458</paragraph> 459</tablecell> 460<tablecell> 461<paragraph role="paragraph" id="par_id3154128" xml-lang="en-US" l10n="U" oldref="236">11</paragraph> 462</tablecell> 463<tablecell> 464<paragraph role="paragraph" id="par_id3151067" xml-lang="en-US" l10n="U" oldref="237">20</paragraph> 465</tablecell> 466<tablecell> 467<paragraph role="paragraph" id="par_id3156033" xml-lang="en-US" l10n="U" oldref="238">3</paragraph> 468</tablecell> 469</tablerow> 470<tablerow> 471<tablecell> 472<paragraph role="paragraph" id="par_id3149298" xml-lang="en-US" l10n="U" oldref="239"> 473<emph>5</emph> 474</paragraph> 475</tablecell> 476<tablecell> 477<paragraph role="paragraph" id="par_id3151382" xml-lang="en-US" l10n="U" oldref="240">5</paragraph> 478</tablecell> 479<tablecell> 480<paragraph role="paragraph" id="par_id3155141" xml-lang="en-US" l10n="U" oldref="241">25</paragraph> 481</tablecell> 482<tablecell> 483<paragraph role="paragraph" id="par_id3145213" xml-lang="en-US" l10n="U" oldref="242">1</paragraph> 484</tablecell> 485</tablerow> 486<tablerow> 487<tablecell> 488<paragraph role="paragraph" id="par_id3145268" xml-lang="en-US" l10n="U" oldref="243"> 489<emph>6</emph> 490</paragraph> 491</tablecell> 492<tablecell> 493<paragraph role="paragraph" id="par_id3163724" xml-lang="en-US" l10n="U" oldref="244">20</paragraph> 494</tablecell> 495<tablecell> 496<paragraph role="paragraph" id="par_id3147132" xml-lang="en-US" l10n="U" oldref="245">>25</paragraph> 497</tablecell> 498<tablecell> 499<paragraph role="paragraph" id="par_id3148903" xml-lang="en-US" l10n="U" oldref="246">1</paragraph> 500</tablecell> 501</tablerow> 502<tablerow> 503<tablecell> 504<paragraph role="paragraph" id="par_id3151007" xml-lang="en-US" l10n="U" oldref="247"> 505<emph>7</emph> 506</paragraph> 507</tablecell> 508<tablecell> 509<paragraph role="paragraph" id="par_id3153294" xml-lang="en-US" l10n="U" oldref="248">16</paragraph> 510</tablecell> 511<tablecell> 512</tablecell> 513<tablecell> 514</tablecell> 515</tablerow> 516<tablerow> 517<tablecell> 518<paragraph role="paragraph" id="par_id3147284" xml-lang="en-US" l10n="U" oldref="249"> 519<emph>8</emph> 520</paragraph> 521</tablecell> 522<tablecell> 523<paragraph role="paragraph" id="par_id3154914" xml-lang="en-US" l10n="U" oldref="250">9</paragraph> 524</tablecell> 525<tablecell> 526</tablecell> 527<tablecell> 528</tablecell> 529</tablerow> 530<tablerow> 531<tablecell> 532<paragraph role="paragraph" id="par_id3154218" xml-lang="en-US" l10n="U" oldref="251"> 533<emph>9</emph> 534</paragraph> 535</tablecell> 536<tablecell> 537<paragraph role="paragraph" id="par_id3147226" xml-lang="en-US" l10n="U" oldref="252">7</paragraph> 538</tablecell> 539<tablecell> 540</tablecell> 541<tablecell> 542</tablecell> 543</tablerow> 544<tablerow> 545<tablecell> 546<paragraph role="paragraph" id="par_id3149045" xml-lang="en-US" l10n="U" oldref="253"> 547<emph>10</emph> 548</paragraph> 549</tablecell> 550<tablecell> 551<paragraph role="paragraph" id="par_id3155799" xml-lang="en-US" l10n="U" oldref="254">16</paragraph> 552</tablecell> 553<tablecell> 554</tablecell> 555<tablecell> 556</tablecell> 557</tablerow> 558<tablerow> 559<tablecell> 560<paragraph role="paragraph" id="par_id3155076" xml-lang="en-US" l10n="U" oldref="255"> 561<emph>11</emph> 562</paragraph> 563</tablecell> 564<tablecell> 565<paragraph role="paragraph" id="par_id3150217" xml-lang="en-US" l10n="U" oldref="256">33</paragraph> 566</tablecell> 567<tablecell> 568</tablecell> 569<tablecell> 570</tablecell> 571</tablerow> 572</table> 573<paragraph role="paragraph" id="par_id3150312" xml-lang="en-US" l10n="CHG" oldref="29">Select a single column range in which to enter the frequency according to the class limits. You must select one field more than the class ceiling. In this example, select the range C1:C6. Call up the FREQUENCY function in the <emph>Function Wizard</emph>. Select the <emph>Data</emph> range in (A1:A11), and then the <emph>Classes</emph> range in which you entered the class limits (B1:B6). Select the <emph>Array</emph> check box and click <emph>OK</emph>. You will see the frequency count in the range C1:C6.</paragraph> 574<paragraph role="paragraph" id="par_idN11269" xml-lang="en-US" l10n="NEW"> 575<embedvar href="text/scalc/00/00000004.xhp#moreontop"/> 576</paragraph> 577</section> 578<section id="Section12"> 579<bookmark xml-lang="en-US" branch="index" id="bm_id3151030"> 580<bookmark_value>MDETERM function</bookmark_value> 581<bookmark_value>determinants</bookmark_value> 582</bookmark> 583<bookmark xml-lang="en-US" branch="hid/SC_HID_FUNC_MDET" id="bm_id3154057" localize="false"/> 584<paragraph role="heading" id="hd_id3151030" xml-lang="en-US" level="2" l10n="U" oldref="31">MDETERM</paragraph> 585<paragraph role="paragraph" id="par_id3154073" xml-lang="en-US" l10n="U" oldref="32"><ahelp hid="HID_FUNC_MDET">Returns the array determinant of an array.</ahelp> This function returns a value in the current cell; it is not necessary to define a range for the results.</paragraph> 586<paragraph role="heading" id="hd_id3156366" xml-lang="en-US" level="3" l10n="U" oldref="33">Syntax</paragraph> 587<paragraph role="code" id="par_id3156380" xml-lang="en-US" l10n="U" oldref="34">MDETERM(Array)</paragraph> 588<paragraph role="paragraph" id="par_id3150290" xml-lang="en-US" l10n="U" oldref="35"> 589<emph>Array</emph> represents a square array in which the determinants are defined.</paragraph> 590<paragraph role="note" id="par_idN11035" xml-lang="en-US" l10n="NEW">You can find a general introduction to using Array functions on top of this page.</paragraph> 591<paragraph role="paragraph" id="par_idN11333" xml-lang="en-US" l10n="NEW"> 592<embedvar href="text/scalc/00/00000004.xhp#moreontop"/> 593</paragraph> 594</section> 595<section id="Section11"> 596<bookmark xml-lang="en-US" branch="index" id="bm_id3151348"> 597<bookmark_value>MINVERSE function</bookmark_value> 598<bookmark_value>inverse arrays</bookmark_value> 599</bookmark> 600<bookmark xml-lang="en-US" branch="hid/SC_HID_FUNC_MINV" id="bm_id3151360" localize="false"/> 601<paragraph role="heading" id="hd_id3151348" xml-lang="en-US" level="2" l10n="U" oldref="39">MINVERSE</paragraph> 602<paragraph role="paragraph" id="par_id3145569" xml-lang="en-US" l10n="U" oldref="40"><ahelp hid="HID_FUNC_MINV">Returns the inverse array.</ahelp></paragraph> 603<paragraph role="heading" id="hd_id3156072" xml-lang="en-US" level="3" l10n="U" oldref="41">Syntax</paragraph> 604<paragraph role="code" id="par_id3156085" xml-lang="en-US" l10n="U" oldref="42">MINVERSE(Array)</paragraph> 605<paragraph role="paragraph" id="par_id3157849" xml-lang="en-US" l10n="U" oldref="43"> 606<emph>Array</emph> represents a square array that is to be inverted.</paragraph> 607<paragraph role="paragraph" id="par_idN113EE" xml-lang="en-US" l10n="NEW"> 608<embedvar href="text/scalc/00/00000004.xhp#moreontop"/> 609</paragraph> 610<paragraph role="heading" id="hd_id3157868" xml-lang="en-US" level="3" l10n="U" oldref="44">Example</paragraph> 611<paragraph role="paragraph" id="par_id3149638" xml-lang="en-US" l10n="U" oldref="45">Select a square range and select MINVERSE. Select the output array, select the <emph>Array</emph> field and click <emph>OK</emph>.</paragraph> 612</section> 613<section id="Section10"> 614<bookmark xml-lang="en-US" branch="index" id="bm_id3148546"> 615<bookmark_value>MMULT function</bookmark_value> 616</bookmark> 617<bookmark xml-lang="en-US" branch="hid/SC_HID_FUNC_MMULT" id="bm_id3148501" localize="false"/> 618<paragraph role="heading" id="hd_id3148546" xml-lang="en-US" level="2" l10n="U" oldref="47">MMULT</paragraph> 619<paragraph role="paragraph" id="par_id3148518" xml-lang="en-US" l10n="U" oldref="48"><ahelp hid="HID_FUNC_MMULT">Calculates the array product of two arrays.</ahelp> The number of columns for array 1 must match the number of rows for array 2. The square array has an equal number of rows and columns.</paragraph> 620<paragraph role="heading" id="hd_id3146767" xml-lang="en-US" level="3" l10n="U" oldref="49">Syntax</paragraph> 621<paragraph role="code" id="par_id3150798" xml-lang="en-US" l10n="U" oldref="50">MMULT(Array; Array)</paragraph> 622<paragraph role="paragraph" id="par_id3150812" xml-lang="en-US" l10n="U" oldref="51"> 623<emph>Array</emph> at first place represents the first array used in the array product.</paragraph> 624<paragraph role="paragraph" id="par_id3152553" xml-lang="en-US" l10n="U" oldref="52"> 625<emph>Array</emph> at second place represents the second array with the same number of rows.</paragraph> 626<paragraph role="note" id="par_idN114C3" xml-lang="en-US" l10n="NEW"> 627<embedvar href="text/scalc/00/00000004.xhp#moreontop"/> 628</paragraph> 629<paragraph role="heading" id="hd_id3152574" xml-lang="en-US" level="3" l10n="U" oldref="53">Example</paragraph> 630<paragraph role="paragraph" id="par_id3146826" xml-lang="en-US" l10n="U" oldref="54">Select a square range. Choose the MMULT function. Select the first <emph>Array</emph>, then select the second <emph>Array</emph>. Using <emph>Function Wizard</emph>, mark the <emph>Array</emph> check box. Click <emph>OK</emph>. The output array will appear in the first selected range.</paragraph> 631</section> 632<section id="Section9"> 633<bookmark xml-lang="en-US" branch="index" id="bm_id3154970"> 634<bookmark_value>TRANSPOSE function</bookmark_value> 635</bookmark> 636<bookmark xml-lang="en-US" branch="hid/SC_HID_FUNC_MTRANS" id="bm_id3154982" localize="false"/> 637<paragraph role="heading" id="hd_id3154970" xml-lang="en-US" level="2" l10n="U" oldref="56">TRANSPOSE</paragraph> 638<paragraph role="paragraph" id="par_id3155276" xml-lang="en-US" l10n="U" oldref="57"><ahelp hid="HID_FUNC_MTRANS">Transposes the rows and columns of an array.</ahelp></paragraph> 639<paragraph role="heading" id="hd_id3155294" xml-lang="en-US" level="3" l10n="U" oldref="58">Syntax</paragraph> 640<paragraph role="code" id="par_id3153843" xml-lang="en-US" l10n="U" oldref="59">TRANSPOSE(Array)</paragraph> 641<paragraph role="paragraph" id="par_id3153857" xml-lang="en-US" l10n="U" oldref="60"> 642<emph>Array</emph> represents the array in the spreadsheet that is to be transposed.</paragraph> 643<paragraph role="paragraph" id="par_idN115A5" xml-lang="en-US" l10n="NEW"> 644<embedvar href="text/scalc/00/00000004.xhp#moreontop"/> 645</paragraph> 646<paragraph role="heading" id="hd_id3159352" xml-lang="en-US" level="3" l10n="U" oldref="61">Example</paragraph> 647<paragraph role="paragraph" id="par_id3159366" xml-lang="en-US" l10n="U" oldref="62">In the spreadsheet, select the range in which the transposed array can appear. If the original array has n rows and m columns, your selected range must have at least m rows and n columns. Then enter the formula directly, select the original array and press <switchinline select="sys"><caseinline select="MAC">Shift+Command+Enter</caseinline><defaultinline>Shift+Ctrl+Enter</defaultinline></switchinline>. Or, if you are using the <emph>Function Wizard</emph>, mark the <emph>Array</emph> check box. The transposed array appears in the selected target range and is protected automatically against changes.</paragraph> 648</section> 649<section id="Section8"> 650<bookmark xml-lang="en-US" branch="index" id="bm_id3109846"> 651<bookmark_value>LINEST function</bookmark_value> 652</bookmark> 653<bookmark xml-lang="en-US" branch="hid/SC_HID_FUNC_RGP" id="bm_id3144716" localize="false"/> 654<paragraph role="heading" id="hd_id3109846" xml-lang="en-US" level="2" l10n="U" oldref="64">LINEST</paragraph> 655<paragraph role="paragraph" id="par_id3144733" xml-lang="en-US" l10n="CHG" oldref="65"><ahelp hid="HID_FUNC_RGP">Returns a table of statistics for a straight line that best fits a data set.</ahelp><comment>changed based on https://wiki.openoffice.org/wiki/Documentation/How_Tos/Calc:_LINEST_function (issue 76142)</comment></paragraph> 656<paragraph role="heading" id="hd_id3152825" xml-lang="en-US" level="3" l10n="U" oldref="66">Syntax</paragraph> 657<paragraph role="code" id="par_id3152839" xml-lang="en-US" l10n="U" oldref="67">LINEST(data_Y; data_X; linearType; stats)</paragraph> 658<paragraph role="paragraph" id="par_id3152853" xml-lang="en-US" l10n="U" oldref="68"> 659<emph>data_Y</emph> is a single row or column range specifying the y coordinates in a set of data points.</paragraph> 660<paragraph role="paragraph" id="par_id3154428" xml-lang="en-US" l10n="U" oldref="69"> 661<emph>data_X</emph> is a corresponding single row or column range specifying the x coordinates. If <emph>data_X</emph> is omitted it defaults to <item type="literal">1, 2, 3, ..., n</item>. If there is more than one set of variables <emph>data_X</emph> may be a range with corresponding multiple rows or columns.</paragraph> 662<paragraph role="paragraph" id="par_id0811200804502119" xml-lang="en-US" l10n="NEW">LINEST finds a straight line <item type="literal">y = a + bx</item> that best fits the data, using linear regression (the "least squares" method). With more than one set of variables the straight line is of the form <item type="literal">y = a + b1x1 + b2x2 ... + bnxn</item>.</paragraph> 663<paragraph role="paragraph" id="par_id3154448" xml-lang="en-US" l10n="U" oldref="70"> if<emph>linearType</emph> is FALSE the straight line found is forced to pass through the origin (the constant a is zero; y = bx). If omitted, <emph>linearType</emph> defaults to TRUE (the line is not forced through the origin).</paragraph> 664<paragraph role="paragraph" id="par_id3154142" xml-lang="en-US" l10n="U" oldref="71">if<emph>stats</emph> is omitted or FALSE only the top line of the statistics table is returned. If TRUE the entire table is returned.</paragraph> 665<paragraph role="paragraph" id="par_id0811200804502261" xml-lang="en-US" l10n="NEW">LINEST returns a table (array) of statistics as below and must be entered as an array formula (for example by using <switchinline select="sys"><caseinline select="MAC">Command</caseinline><defaultinline>Ctrl</defaultinline></switchinline>+Shift+Return rather than just Return).</paragraph> 666<paragraph role="paragraph" id="par_idN11416" xml-lang="en-US" l10n="NEW"> 667<embedvar href="text/scalc/00/00000004.xhp#optional"/> 668</paragraph> 669<paragraph role="paragraph" id="par_idN116C6" xml-lang="en-US" l10n="NEW"> 670<embedvar href="text/scalc/00/00000004.xhp#moreontop"/> 671</paragraph> 672<paragraph role="heading" id="hd_id3154162" xml-lang="en-US" level="3" l10n="U" oldref="72">Example</paragraph> 673<paragraph role="paragraph" id="par_id3154176" xml-lang="en-US" l10n="U" oldref="73">This function returns an array and is handled in the same way as the other array functions. Select a range for the answers and then the function. Select <emph>data_Y</emph>. If you want, you can enter other parameters. Select <emph>Array</emph> and click <emph>OK</emph>.</paragraph> 674<paragraph role="paragraph" id="par_id3155468" xml-lang="en-US" l10n="U" oldref="74">The results returned by the system (if <emph>stats</emph> = 0), will at least show the slope of the regression line and its intersection with the Y axis. If <emph>stats</emph> does not equal 0, other results are to be displayed.</paragraph> 675<paragraph role="heading" id="hd_id3155491" xml-lang="en-US" level="3" l10n="U" oldref="75">Other LINEST Results:</paragraph> 676<paragraph role="paragraph" id="par_id3159291" xml-lang="en-US" l10n="U" oldref="76">Examine the following examples:</paragraph> 677<table id="tbl_id3159305"> 678<tablerow> 679<tablecell> 680</tablecell> 681<tablecell> 682<paragraph role="paragraph" id="par_id3157922" xml-lang="en-US" l10n="U" oldref="77">A</paragraph> 683</tablecell> 684<tablecell> 685<paragraph role="paragraph" id="par_id3157945" xml-lang="en-US" l10n="U" oldref="78">B</paragraph> 686</tablecell> 687<tablecell> 688<paragraph role="paragraph" id="par_id3152486" xml-lang="en-US" l10n="U" oldref="79">C</paragraph> 689</tablecell> 690<tablecell> 691<paragraph role="paragraph" id="par_id3152509" xml-lang="en-US" l10n="U" oldref="80">D</paragraph> 692</tablecell> 693<tablecell> 694<paragraph role="paragraph" id="par_id3152532" xml-lang="en-US" l10n="U" oldref="81">E</paragraph> 695</tablecell> 696<tablecell> 697<paragraph role="paragraph" id="par_id3153431" xml-lang="en-US" l10n="U" oldref="82">F</paragraph> 698</tablecell> 699<tablecell> 700<paragraph role="paragraph" id="par_id3153454" xml-lang="en-US" l10n="U" oldref="83">G</paragraph> 701</tablecell> 702</tablerow> 703<tablerow> 704<tablecell> 705<paragraph role="paragraph" id="par_id3154995" xml-lang="en-US" l10n="U" oldref="84"> 706<emph>1</emph> 707</paragraph> 708</tablecell> 709<tablecell> 710<paragraph role="paragraph" id="par_id3155021" xml-lang="en-US" l10n="U" oldref="85"> 711<item type="input">x1</item> 712</paragraph> 713</tablecell> 714<tablecell> 715<paragraph role="paragraph" id="par_id3155044" xml-lang="en-US" l10n="U" oldref="86"> 716<item type="input">x2</item> 717</paragraph> 718</tablecell> 719<tablecell> 720<paragraph role="paragraph" id="par_id3163734" xml-lang="en-US" l10n="U" oldref="87"> 721<item type="input">y</item> 722</paragraph> 723</tablecell> 724<tablecell> 725</tablecell> 726<tablecell> 727<paragraph role="paragraph" id="par_id3163766" xml-lang="en-US" l10n="U" oldref="88"> 728<item type="input">LIN</item> 729<item type="input">EST value</item> 730</paragraph> 731</tablecell> 732<tablecell> 733</tablecell> 734<tablecell> 735</tablecell> 736</tablerow> 737<tablerow> 738<tablecell> 739<paragraph role="paragraph" id="par_id3145686" xml-lang="en-US" l10n="U" oldref="89"> 740<emph>2</emph> 741</paragraph> 742</tablecell> 743<tablecell> 744<paragraph role="paragraph" id="par_id3145713" xml-lang="en-US" l10n="U" oldref="90"> 745<item type="input">4</item> 746</paragraph> 747</tablecell> 748<tablecell> 749<paragraph role="paragraph" id="par_id3145736" xml-lang="en-US" l10n="U" oldref="91"> 750<item type="input">7</item> 751</paragraph> 752</tablecell> 753<tablecell> 754<paragraph role="paragraph" id="par_id3159427" xml-lang="en-US" l10n="U" oldref="92"> 755<item type="input">100</item> 756</paragraph> 757</tablecell> 758<tablecell> 759</tablecell> 760<tablecell> 761<paragraph role="paragraph" id="par_id3159460" xml-lang="en-US" l10n="U" oldref="93"> 762<item type="input">4,17</item> 763</paragraph> 764</tablecell> 765<tablecell> 766<paragraph role="paragraph" id="par_id3159483" xml-lang="en-US" l10n="U" oldref="94">-<item type="input">3,48</item> 767</paragraph> 768</tablecell> 769<tablecell> 770<paragraph role="paragraph" id="par_id3152381" xml-lang="en-US" l10n="U" oldref="95"> 771<item type="input">82,33</item> 772</paragraph> 773</tablecell> 774</tablerow> 775<tablerow> 776<tablecell> 777<paragraph role="paragraph" id="par_id3152408" xml-lang="en-US" l10n="U" oldref="96"> 778<emph>3</emph> 779</paragraph> 780</tablecell> 781<tablecell> 782<paragraph role="paragraph" id="par_id3152435" xml-lang="en-US" l10n="U" oldref="97"> 783<item type="input">5</item> 784</paragraph> 785</tablecell> 786<tablecell> 787<paragraph role="paragraph" id="par_id3152458" xml-lang="en-US" l10n="U" oldref="98"> 788<item type="input">9</item> 789</paragraph> 790</tablecell> 791<tablecell> 792<paragraph role="paragraph" id="par_id3155652" xml-lang="en-US" l10n="U" oldref="99"> 793<item type="input">105</item> 794</paragraph> 795</tablecell> 796<tablecell> 797</tablecell> 798<tablecell> 799<paragraph role="paragraph" id="par_id3155684" xml-lang="en-US" l10n="U" oldref="100"> 800<item type="input">5,46</item> 801</paragraph> 802</tablecell> 803<tablecell> 804<paragraph role="paragraph" id="par_id3155707" xml-lang="en-US" l10n="U" oldref="101"> 805<item type="input">10,96</item> 806</paragraph> 807</tablecell> 808<tablecell> 809<paragraph role="paragraph" id="par_id3155730" xml-lang="en-US" l10n="U" oldref="102"> 810<item type="input">9,35</item> 811</paragraph> 812</tablecell> 813</tablerow> 814<tablerow> 815<tablecell> 816<paragraph role="paragraph" id="par_id3159506" xml-lang="en-US" l10n="U" oldref="103"> 817<emph>4</emph> 818</paragraph> 819</tablecell> 820<tablecell> 821<paragraph role="paragraph" id="par_id3159533" xml-lang="en-US" l10n="U" oldref="104"> 822<item type="input">6</item> 823</paragraph> 824</tablecell> 825<tablecell> 826<paragraph role="paragraph" id="par_id3159556" xml-lang="en-US" l10n="U" oldref="105"> 827<item type="input">11</item> 828</paragraph> 829</tablecell> 830<tablecell> 831<paragraph role="paragraph" id="par_id3159579" xml-lang="en-US" l10n="U" oldref="106"> 832<item type="input">104</item> 833</paragraph> 834</tablecell> 835<tablecell> 836</tablecell> 837<tablecell> 838<paragraph role="paragraph" id="par_id3159611" xml-lang="en-US" l10n="U" oldref="107"> 839<item type="input">0,87</item> 840</paragraph> 841</tablecell> 842<tablecell> 843<paragraph role="paragraph" id="par_id3152606" xml-lang="en-US" l10n="U" oldref="108"> 844<item type="input">5,06</item> 845</paragraph> 846</tablecell> 847<tablecell> 848<paragraph role="paragraph" id="par_id3152629" xml-lang="en-US" l10n="U" oldref="109"> 849<item type="input">#NA</item> 850</paragraph> 851</tablecell> 852</tablerow> 853<tablerow> 854<tablecell> 855<paragraph role="paragraph" id="par_id3152655" xml-lang="en-US" l10n="U" oldref="110"> 856<emph>5</emph> 857</paragraph> 858</tablecell> 859<tablecell> 860<paragraph role="paragraph" id="par_id3152682" xml-lang="en-US" l10n="U" oldref="111"> 861<item type="input">7</item> 862</paragraph> 863</tablecell> 864<tablecell> 865<paragraph role="paragraph" id="par_id3152705" xml-lang="en-US" l10n="U" oldref="112"> 866<item type="input">12</item> 867</paragraph> 868</tablecell> 869<tablecell> 870<paragraph role="paragraph" id="par_id3152728" xml-lang="en-US" l10n="U" oldref="113"> 871<item type="input">108</item> 872</paragraph> 873</tablecell> 874<tablecell> 875</tablecell> 876<tablecell> 877<paragraph role="paragraph" id="par_id3144352" xml-lang="en-US" l10n="U" oldref="114"> 878<item type="input">13,21</item> 879</paragraph> 880</tablecell> 881<tablecell> 882<paragraph role="paragraph" id="par_id3144375" xml-lang="en-US" l10n="U" oldref="115"> 883<item type="input">4</item> 884</paragraph> 885</tablecell> 886<tablecell> 887<paragraph role="paragraph" id="par_id3144398" xml-lang="en-US" l10n="U" oldref="116"> 888<item type="input">#NA</item> 889</paragraph> 890</tablecell> 891</tablerow> 892<tablerow> 893<tablecell> 894<paragraph role="paragraph" id="par_id3144425" xml-lang="en-US" l10n="U" oldref="117"> 895<emph>6</emph> 896</paragraph> 897</tablecell> 898<tablecell> 899<paragraph role="paragraph" id="par_id3144452" xml-lang="en-US" l10n="U" oldref="118"> 900<item type="input">8</item> 901</paragraph> 902</tablecell> 903<tablecell> 904<paragraph role="paragraph" id="par_id3144475" xml-lang="en-US" l10n="U" oldref="119"> 905<item type="input">15</item> 906</paragraph> 907</tablecell> 908<tablecell> 909<paragraph role="paragraph" id="par_id3144498" xml-lang="en-US" l10n="U" oldref="120"> 910<item type="input">111</item> 911</paragraph> 912</tablecell> 913<tablecell> 914</tablecell> 915<tablecell> 916<paragraph role="paragraph" id="par_id3158233" xml-lang="en-US" l10n="U" oldref="121"> 917<item type="input">675,45</item> 918</paragraph> 919</tablecell> 920<tablecell> 921<paragraph role="paragraph" id="par_id3158256" xml-lang="en-US" l10n="U" oldref="122"> 922<item type="input">102,26</item> 923</paragraph> 924</tablecell> 925<tablecell> 926<paragraph role="paragraph" id="par_id3158279" xml-lang="en-US" l10n="U" oldref="123"> 927<item type="input">#NA</item> 928</paragraph> 929</tablecell> 930</tablerow> 931<tablerow> 932<tablecell> 933<paragraph role="paragraph" id="par_id3158306" xml-lang="en-US" l10n="U" oldref="124"> 934<emph>7</emph> 935</paragraph> 936</tablecell> 937<tablecell> 938<paragraph role="paragraph" id="par_id3158333" xml-lang="en-US" l10n="U" oldref="125"> 939<item type="input">9</item> 940</paragraph> 941</tablecell> 942<tablecell> 943<paragraph role="paragraph" id="par_id3158356" xml-lang="en-US" l10n="U" oldref="126"> 944<item type="input">17</item> 945</paragraph> 946</tablecell> 947<tablecell> 948<paragraph role="paragraph" id="par_id3158379" xml-lang="en-US" l10n="U" oldref="127"> 949<item type="input">120</item> 950</paragraph> 951</tablecell> 952<tablecell> 953</tablecell> 954<tablecell> 955</tablecell> 956<tablecell> 957</tablecell> 958<tablecell> 959</tablecell> 960</tablerow> 961<tablerow> 962<tablecell> 963<paragraph role="paragraph" id="par_id3144560" xml-lang="en-US" l10n="U" oldref="128"> 964<emph>8</emph> 965</paragraph> 966</tablecell> 967<tablecell> 968<paragraph role="paragraph" id="par_id3144586" xml-lang="en-US" l10n="U" oldref="129"> 969<item type="input">10</item> 970</paragraph> 971</tablecell> 972<tablecell> 973<paragraph role="paragraph" id="par_id3144609" xml-lang="en-US" l10n="U" oldref="130"> 974<item type="input">19</item> 975</paragraph> 976</tablecell> 977<tablecell> 978<paragraph role="paragraph" id="par_id3144632" xml-lang="en-US" l10n="U" oldref="131"> 979<item type="input">133</item> 980</paragraph> 981</tablecell> 982<tablecell> 983</tablecell> 984<tablecell> 985</tablecell> 986<tablecell> 987</tablecell> 988<tablecell> 989</tablecell> 990</tablerow> 991</table> 992<paragraph role="paragraph" id="par_id3144687" xml-lang="en-US" l10n="U" oldref="132">Column A contains several X1 values, column B several X2 values and column C the Y values. You have already entered these values in your spreadsheet. You have now set up E2:G6 in the spreadsheet and activated the <emph>Function Wizard</emph>. For the LINEST function to work, you must have marked the <emph>Array</emph> check box in the <emph>Function Wizard</emph>. Next, select the following values in the spreadsheet (or enter them using the keyboard):</paragraph> 993<paragraph role="paragraph" id="par_id3158020" xml-lang="en-US" l10n="U" oldref="133"> 994<emph>data_Y</emph> is C2:C8</paragraph> 995<paragraph role="paragraph" id="par_id3158039" xml-lang="en-US" l10n="U" oldref="134"> 996<emph>data_X</emph> is A2:B8</paragraph> 997<paragraph role="paragraph" id="par_id3158058" xml-lang="en-US" l10n="U" oldref="135"> 998<emph>linearType</emph> and <emph>stats</emph> are both set to 1.</paragraph> 999<paragraph role="paragraph" id="par_id3158084" xml-lang="en-US" l10n="U" oldref="136">As soon as you click <emph>OK</emph>, $[officename] Calc will fill the above example with the LINEST values as shown in the example.</paragraph> 1000<paragraph role="paragraph" id="par_id3158106" xml-lang="en-US" l10n="U" oldref="137">The formula in the <emph>Formula</emph> Bar corresponds to each cell of the LINEST array <item type="input">{=LINEST(C2:C8;A2:B8;1;1)}</item> 1001</paragraph> 1002<paragraph role="paragraph" id="par_id3158128" xml-lang="en-US" l10n="U" oldref="138"> 1003<emph>This represents the calculated LINEST values:</emph> 1004</paragraph> 1005<bookmark xml-lang="en-US" branch="index" id="bm_id3158146"> 1006<bookmark_value>slopes, see also regression lines</bookmark_value> 1007<bookmark_value>regression lines;LINEST function</bookmark_value> 1008</bookmark><comment>mw made "regression lines" a two level entry</comment> 1009<paragraph role="paragraph" id="par_id3158146" xml-lang="en-US" l10n="U" oldref="139">E2 and F2: Slope m of the regression line y=b+m*x for the x1 and x2 values. The values are given in reverse order; that is, the slope for x2 in E2 and the slope for x1 in F2.</paragraph> 1010<paragraph role="paragraph" id="par_id3158184" xml-lang="en-US" l10n="U" oldref="140">G2: Intersection b with the y axis.</paragraph> 1011<bookmark xml-lang="en-US" branch="index" id="bm_id3158204"> 1012<bookmark_value>standard errors;array functions</bookmark_value> 1013</bookmark><comment>MW changed "standard errors"</comment> 1014<paragraph role="paragraph" id="par_id3158204" xml-lang="en-US" l10n="U" oldref="141">E3 and F3: The standard error of the slope value.</paragraph> 1015<paragraph role="paragraph" id="par_id3145845" xml-lang="en-US" l10n="U" oldref="142">G3: The standard error of the intercept</paragraph> 1016<bookmark xml-lang="en-US" branch="index" id="bm_id3145859"> 1017<bookmark_value>RSQ calculations</bookmark_value> 1018</bookmark> 1019<paragraph role="paragraph" id="par_id3145859" xml-lang="en-US" l10n="U" oldref="143">E4: RSQ</paragraph> 1020<paragraph role="paragraph" id="par_id3145880" xml-lang="en-US" l10n="U" oldref="144">F4: The standard error of the regression calculated for the Y value.</paragraph> 1021<paragraph role="paragraph" id="par_id3145894" xml-lang="en-US" l10n="U" oldref="145">E5: The F value from the variance analysis.</paragraph> 1022<paragraph role="paragraph" id="par_id3145915" xml-lang="en-US" l10n="U" oldref="146">F5: The degrees of freedom from the variance analysis.</paragraph> 1023<paragraph role="paragraph" id="par_id3145937" xml-lang="en-US" l10n="U" oldref="147">E6: The sum of the squared deviation of the estimated Y values from their linear mean.</paragraph> 1024<paragraph role="paragraph" id="par_id3145952" xml-lang="en-US" l10n="U" oldref="148">F6: The sum of the squared deviation of the estimated Y value from the given Y values.</paragraph> 1025<paragraph role="paragraph" id="par_idN11B04" xml-lang="en-US" l10n="NEW"> 1026<embedvar href="text/scalc/00/00000004.xhp#moreontop"/> 1027</paragraph> 1028</section> 1029<section id="Section7"> 1030<bookmark xml-lang="en-US" branch="index" id="bm_id1596728"> 1031<bookmark_value>LOGEST function</bookmark_value> 1032</bookmark> 1033<bookmark xml-lang="en-US" branch="hid/SC_HID_FUNC_RKP" id="bm_id3146020" localize="false"/> 1034<paragraph role="heading" id="hd_id3146009" xml-lang="en-US" level="2" l10n="U" oldref="150">LOGEST</paragraph> 1035<paragraph role="paragraph" id="par_id3146037" xml-lang="en-US" l10n="U" oldref="151"><ahelp hid="HID_FUNC_RKP">This function calculates the adjustment of the entered data as an exponential regression curve (y=b*m^x).</ahelp><comment>UFI: see http://support.microsoft.com/default.aspx?kbid=828528&product=xl2003 1036for bug #i31051#</comment></paragraph> 1037<paragraph role="heading" id="hd_id3146056" xml-lang="en-US" level="3" l10n="U" oldref="152">Syntax</paragraph> 1038<paragraph role="code" id="par_id3163123" xml-lang="en-US" l10n="U" oldref="153">LOGEST(DataY; DataX; FunctionType; Stats)</paragraph> 1039<paragraph role="paragraph" id="par_id3163137" xml-lang="en-US" l10n="U" oldref="154"> 1040<emph>DataY</emph> represents the Y Data array.</paragraph> 1041<paragraph role="paragraph" id="par_id3163155" xml-lang="en-US" l10n="U" oldref="155"> 1042<emph>DataX</emph> (optional) represents the X Data array.</paragraph> 1043<paragraph role="paragraph" id="par_id3163174" xml-lang="en-US" l10n="U" oldref="156"> 1044<emph>FunctionType</emph> (optional). If Function_Type = 0, functions in the form y = m^x will be calculated. Otherwise, y = b*m^x functions will be calculated.</paragraph> 1045<paragraph role="paragraph" id="par_id3163196" xml-lang="en-US" l10n="U" oldref="157"> 1046<emph>Stats</emph> (optional). If Stats=0, only the regression coefficient is calculated.</paragraph> 1047<paragraph role="paragraph" id="par_idN118F7" xml-lang="en-US" l10n="NEW"> 1048<embedvar href="text/scalc/00/00000004.xhp#optional"/> 1049</paragraph> 1050<paragraph role="paragraph" id="par_idN11BC3" xml-lang="en-US" l10n="NEW"> 1051<embedvar href="text/scalc/00/00000004.xhp#moreontop"/> 1052</paragraph> 1053<paragraph role="heading" id="hd_id3163216" xml-lang="en-US" level="3" l10n="U" oldref="158">Example</paragraph> 1054<paragraph role="paragraph" id="par_id3163230" xml-lang="en-US" l10n="CHG" oldref="159">See LINEST. However, no square sum will be returned.</paragraph> 1055</section> 1056<section id="Section6"> 1057<bookmark xml-lang="en-US" branch="index" id="bm_id3163286"> 1058<bookmark_value>SUMPRODUCT function</bookmark_value> 1059<bookmark_value>scalar products</bookmark_value> 1060<bookmark_value>dot products</bookmark_value> 1061<bookmark_value>inner products</bookmark_value> 1062</bookmark> 1063<bookmark xml-lang="en-US" branch="hid/SC_HID_FUNC_SUMMENPRODUKT" id="bm_id3163297" localize="false"/> 1064<paragraph role="heading" id="hd_id3163286" xml-lang="en-US" level="2" l10n="U" oldref="161">SUMPRODUCT</paragraph> 1065<paragraph role="paragraph" id="par_id3163314" xml-lang="en-US" l10n="U" oldref="162"><ahelp hid="HID_FUNC_SUMMENPRODUKT">Multiplies corresponding elements in the given arrays, and returns the sum of those products.</ahelp></paragraph> 1066<paragraph role="heading" id="hd_id3163334" xml-lang="en-US" level="3" l10n="U" oldref="163">Syntax</paragraph> 1067<paragraph role="code" id="par_id3163347" xml-lang="en-US" l10n="U" oldref="164">SUMPRODUCT(Array1; Array2...Array30)</paragraph> 1068<paragraph role="paragraph" id="par_id3163362" xml-lang="en-US" l10n="CHG" oldref="165"> 1069<emph>Array1, Array2...Array30</emph> represent arrays whose corresponding elements are to be multiplied.</paragraph> 1070<paragraph role="paragraph" id="par_idN11B19" xml-lang="en-US" l10n="NEW">At least one array must be part of the argument list. If only one array is given, all array elements are summed.</paragraph> 1071<paragraph role="heading" id="par_idN11B1C" xml-lang="en-US" level="3" l10n="NEW">Example</paragraph> 1072<table id="tbl_id6215704"> 1073<tablerow> 1074<tablecell> 1075</tablecell> 1076<tablecell> 1077<paragraph role="tablehead" id="par_idN11B2F" xml-lang="en-US" l10n="NEW">A</paragraph> 1078</tablecell> 1079<tablecell> 1080<paragraph role="tablehead" id="par_idN11B35" xml-lang="en-US" l10n="NEW">B</paragraph> 1081</tablecell> 1082<tablecell> 1083<paragraph role="tablehead" id="par_idN11B3B" xml-lang="en-US" l10n="NEW">C</paragraph> 1084</tablecell> 1085<tablecell> 1086<paragraph role="tablehead" id="par_idN11B41" xml-lang="en-US" l10n="NEW">D</paragraph> 1087</tablecell> 1088</tablerow> 1089<tablerow> 1090<tablecell> 1091<paragraph role="tablecontent" id="par_idN11B48" xml-lang="en-US" l10n="NEW">1</paragraph> 1092</tablecell> 1093<tablecell> 1094<paragraph role="tablecontent" id="par_idN11B4E" xml-lang="en-US" l10n="NEW"> 1095<item type="input">2</item> 1096</paragraph> 1097</tablecell> 1098<tablecell> 1099<paragraph role="tablecontent" id="par_idN11B54" xml-lang="en-US" l10n="NEW"> 1100<item type="input">3</item> 1101</paragraph> 1102</tablecell> 1103<tablecell> 1104<paragraph role="tablecontent" id="par_idN11B5A" xml-lang="en-US" l10n="NEW"> 1105<item type="input">4</item> 1106</paragraph> 1107</tablecell> 1108<tablecell> 1109<paragraph role="tablecontent" id="par_idN11B60" xml-lang="en-US" l10n="NEW"> 1110<item type="input">5</item> 1111</paragraph> 1112</tablecell> 1113</tablerow> 1114<tablerow> 1115<tablecell> 1116<paragraph role="tablecontent" id="par_idN11B67" xml-lang="en-US" l10n="NEW">2</paragraph> 1117</tablecell> 1118<tablecell> 1119<paragraph role="tablecontent" id="par_idN11B6D" xml-lang="en-US" l10n="NEW"> 1120<item type="input">6</item> 1121</paragraph> 1122</tablecell> 1123<tablecell> 1124<paragraph role="tablecontent" id="par_idN11B73" xml-lang="en-US" l10n="NEW"> 1125<item type="input">7</item> 1126</paragraph> 1127</tablecell> 1128<tablecell> 1129<paragraph role="tablecontent" id="par_idN11B79" xml-lang="en-US" l10n="NEW"> 1130<item type="input">8</item> 1131</paragraph> 1132</tablecell> 1133<tablecell> 1134<paragraph role="tablecontent" id="par_idN11B7F" xml-lang="en-US" l10n="NEW"> 1135<item type="input">9</item> 1136</paragraph> 1137</tablecell> 1138</tablerow> 1139<tablerow> 1140<tablecell> 1141<paragraph role="tablecontent" id="par_idN11B86" xml-lang="en-US" l10n="NEW">3</paragraph> 1142</tablecell> 1143<tablecell> 1144<paragraph role="tablecontent" id="par_idN11B8C" xml-lang="en-US" l10n="NEW"> 1145<item type="input">10</item> 1146</paragraph> 1147</tablecell> 1148<tablecell> 1149<paragraph role="tablecontent" id="par_idN11B92" xml-lang="en-US" l10n="NEW"> 1150<item type="input">11</item> 1151</paragraph> 1152</tablecell> 1153<tablecell> 1154<paragraph role="tablecontent" id="par_idN11B98" xml-lang="en-US" l10n="NEW"> 1155<item type="input">12</item> 1156</paragraph> 1157</tablecell> 1158<tablecell> 1159<paragraph role="tablecontent" id="par_idN11B9E" xml-lang="en-US" l10n="NEW"> 1160<item type="input">13</item> 1161</paragraph> 1162</tablecell> 1163</tablerow> 1164</table> 1165<paragraph role="paragraph" id="par_idN11BA1" xml-lang="en-US" l10n="NEW"> 1166<item type="input">=SUMPRODUCT(A1:B3;C1:D3)</item> returns 397.</paragraph> 1167<paragraph role="paragraph" id="par_idN11BA4" xml-lang="en-US" l10n="NEW">Calculation: A1*C1 + B1*D1 + A2*C2 + B2*D2 + A3*C3 + B3*D3</paragraph> 1168<paragraph role="paragraph" id="par_idN11BA7" xml-lang="en-US" l10n="NEW">You can use SUMPRODUCT to calculate the scalar product of two vectors.</paragraph> 1169<paragraph role="note" id="par_idN11BBC" xml-lang="en-US" l10n="NEW">SUMPRODUCT returns a single number, it is not necessary to enter the function as an array function.</paragraph> 1170<paragraph role="paragraph" id="par_idN11C91" xml-lang="en-US" l10n="NEW"> 1171<embedvar href="text/scalc/00/00000004.xhp#moreontop"/> 1172</paragraph> 1173</section> 1174<section id="Section5"> 1175<bookmark xml-lang="en-US" branch="index" id="bm_id3144842"> 1176<bookmark_value>SUMX2MY2 function</bookmark_value> 1177</bookmark> 1178<bookmark xml-lang="en-US" branch="hid/SC_HID_FUNC_SUMMEX2MY2" id="bm_id3144854" localize="false"/> 1179<paragraph role="heading" id="hd_id3144842" xml-lang="en-US" level="2" l10n="U" oldref="169">SUMX2MY2</paragraph> 1180<paragraph role="paragraph" id="par_id3144871" xml-lang="en-US" l10n="U" oldref="170"><ahelp hid="HID_FUNC_SUMMEX2MY2">Returns the sum of the difference of squares of corresponding values in two arrays.</ahelp></paragraph> 1181<paragraph role="heading" id="hd_id3144889" xml-lang="en-US" level="3" l10n="U" oldref="171">Syntax</paragraph> 1182<paragraph role="code" id="par_id3144903" xml-lang="en-US" l10n="U" oldref="172">SUMX2MY2(ArrayX; ArrayY)</paragraph> 1183<paragraph role="paragraph" id="par_id3144916" xml-lang="en-US" l10n="U" oldref="173"> 1184<emph>ArrayX</emph> represents the first array whose elements are to be squared and added.</paragraph> 1185<paragraph role="paragraph" id="par_id3144936" xml-lang="en-US" l10n="U" oldref="174"> 1186<emph>ArrayY</emph> represents the second array whose elements are to be squared and subtracted.</paragraph> 1187<paragraph role="paragraph" id="par_idN11D6B" xml-lang="en-US" l10n="NEW"> 1188<embedvar href="text/scalc/00/00000004.xhp#moreontop"/> 1189</paragraph> 1190</section> 1191<section id="Section4"> 1192<bookmark xml-lang="en-US" branch="index" id="bm_id3145026"> 1193<bookmark_value>SUMX2PY2 function</bookmark_value> 1194</bookmark> 1195<bookmark xml-lang="en-US" branch="hid/SC_HID_FUNC_SUMMEX2PY2" id="bm_id3145038" localize="false"/> 1196<paragraph role="heading" id="hd_id3145026" xml-lang="en-US" level="2" l10n="U" oldref="178">SUMX2PY2</paragraph> 1197<paragraph role="paragraph" id="par_id3145055" xml-lang="en-US" l10n="U" oldref="179"><ahelp hid="HID_FUNC_SUMMEX2PY2">Returns the sum of the sum of squares of corresponding values in two arrays.</ahelp></paragraph> 1198<paragraph role="heading" id="hd_id3163390" xml-lang="en-US" level="3" l10n="U" oldref="180">Syntax</paragraph> 1199<paragraph role="code" id="par_id3163404" xml-lang="en-US" l10n="U" oldref="181">SUMX2PY2(ArrayX; ArrayY)</paragraph> 1200<paragraph role="paragraph" id="par_id3163417" xml-lang="en-US" l10n="U" oldref="182"> 1201<emph>ArrayX</emph> represents the first array whose arguments are to be squared and added.</paragraph> 1202<paragraph role="paragraph" id="par_id3163437" xml-lang="en-US" l10n="U" oldref="183"> 1203<emph>ArrayY</emph> represents the second array, whose elements are to be squared and added.</paragraph> 1204<paragraph role="paragraph" id="par_idN11E45" xml-lang="en-US" l10n="NEW"> 1205<embedvar href="text/scalc/00/00000004.xhp#moreontop"/> 1206</paragraph> 1207</section> 1208<section id="Section3"> 1209<bookmark xml-lang="en-US" branch="index" id="bm_id3163527"> 1210<bookmark_value>SUMXMY2 function</bookmark_value> 1211</bookmark> 1212<bookmark xml-lang="en-US" branch="hid/SC_HID_FUNC_SUMMEXMY2" id="bm_id3163539" localize="false"/> 1213<paragraph role="heading" id="hd_id3163527" xml-lang="en-US" level="2" l10n="U" oldref="187">SUMXMY2</paragraph> 1214<paragraph role="paragraph" id="par_id3163556" xml-lang="en-US" l10n="U" oldref="188"><ahelp hid="HID_FUNC_SUMMEXMY2">Adds the squares of the variance between corresponding values in two arrays.</ahelp></paragraph> 1215<paragraph role="heading" id="hd_id3163574" xml-lang="en-US" level="3" l10n="U" oldref="189">Syntax</paragraph> 1216<paragraph role="code" id="par_id3163588" xml-lang="en-US" l10n="U" oldref="190">SUMXMY2(ArrayX; ArrayY)</paragraph> 1217<paragraph role="paragraph" id="par_id3163601" xml-lang="en-US" l10n="U" oldref="191"> 1218<emph>ArrayX</emph> represents the first array whose elements are to be subtracted and squared.</paragraph> 1219<paragraph role="paragraph" id="par_id3163621" xml-lang="en-US" l10n="U" oldref="192"> 1220<emph>ArrayY</emph> represents the second array, whose elements are to be subtracted and squared.</paragraph> 1221<paragraph role="paragraph" id="par_idN11F1F" xml-lang="en-US" l10n="NEW"> 1222<embedvar href="text/scalc/00/00000004.xhp#moreontop"/> 1223</paragraph> 1224</section> 1225<section id="Section2"> 1226<bookmark xml-lang="en-US" branch="index" id="bm_id3166062"> 1227<bookmark_value>TREND function</bookmark_value> 1228</bookmark> 1229<bookmark xml-lang="en-US" branch="hid/SC_HID_FUNC_TREND" id="bm_id3166074" localize="false"/> 1230<paragraph role="heading" id="hd_id3166062" xml-lang="en-US" level="2" l10n="U" oldref="196">TREND</paragraph> 1231<paragraph role="paragraph" id="par_id3166091" xml-lang="en-US" l10n="U" oldref="197"><ahelp hid="HID_FUNC_TREND">Returns values along a linear trend.</ahelp></paragraph> 1232<paragraph role="heading" id="hd_id3166109" xml-lang="en-US" level="3" l10n="U" oldref="198">Syntax</paragraph> 1233<paragraph role="code" id="par_id3166122" xml-lang="en-US" l10n="U" oldref="199">TREND(DataY; DataX; NewDataX; LinearType)</paragraph> 1234<paragraph role="paragraph" id="par_id3166137" xml-lang="en-US" l10n="U" oldref="200"> 1235<emph>DataY</emph> represents the Y Data array.</paragraph> 1236<paragraph role="paragraph" id="par_id3166156" xml-lang="en-US" l10n="U" oldref="201"> 1237<emph>DataX</emph> (optional) represents the X Data array.</paragraph> 1238<paragraph role="paragraph" id="par_id3166176" xml-lang="en-US" l10n="U" oldref="202"> 1239<emph>NewDataX</emph> (optional) represents the array of the X data, which are used for recalculating values.</paragraph> 1240<paragraph role="paragraph" id="par_id3166196" xml-lang="en-US" l10n="U" oldref="203"> 1241<emph>LinearType</emph>(Optional). If LinearType = 0, then lines will be calculated through the zero point. Otherwise, offset lines will also be calculated. The default is LinearType <> 0.</paragraph> 1242<paragraph role="paragraph" id="par_idN11D2F" xml-lang="en-US" l10n="NEW"> 1243<embedvar href="text/scalc/00/00000004.xhp#optional"/> 1244</paragraph> 1245<paragraph role="paragraph" id="par_idN12019" xml-lang="en-US" l10n="NEW"> 1246<embedvar href="text/scalc/00/00000004.xhp#moreontop"/> 1247</paragraph> 1248<paragraph role="heading" id="hd_id3166231" xml-lang="en-US" level="3" l10n="U" oldref="204">Example</paragraph> 1249<paragraph role="paragraph" id="par_id3166245" xml-lang="en-US" l10n="U" oldref="205">Select a spreadsheet range in which the trend data will appear. Select the function. Enter the output data or select it with the mouse. Mark the <emph>Array</emph> field. click <emph>OK</emph>. The trend data calculated from the output data is displayed.</paragraph> 1250</section> 1251<section id="Section1"> 1252<bookmark xml-lang="en-US" branch="index" id="bm_id3166317"> 1253<bookmark_value>GROWTH function</bookmark_value> 1254<bookmark_value>exponential trends in arrays</bookmark_value> 1255</bookmark> 1256<bookmark xml-lang="en-US" branch="hid/SC_HID_FUNC_VARIATION" id="bm_id3166329" localize="false"/> 1257<paragraph role="heading" id="hd_id3166317" xml-lang="en-US" level="2" l10n="U" oldref="207">GROWTH</paragraph> 1258<paragraph role="paragraph" id="par_id3166346" xml-lang="en-US" l10n="U" oldref="208"><ahelp hid="HID_FUNC_VARIATION">Calculates the points of an exponential trend in an array.</ahelp></paragraph> 1259<paragraph role="heading" id="hd_id3166364" xml-lang="en-US" level="3" l10n="U" oldref="209">Syntax</paragraph> 1260<paragraph role="code" id="par_id3166377" xml-lang="en-US" l10n="CHG" oldref="210">GROWTH(DataY; DataX; NewDataX; FunctionType)</paragraph> 1261<paragraph role="paragraph" id="par_id3166392" xml-lang="en-US" l10n="U" oldref="211"> 1262<emph>DataY</emph> represents the Y Data array.</paragraph> 1263<paragraph role="paragraph" id="par_id3166411" xml-lang="en-US" l10n="U" oldref="212"> 1264<emph>DataX</emph> (optional) represents the X Data array.</paragraph> 1265<paragraph role="paragraph" id="par_id3173797" xml-lang="en-US" l10n="U" oldref="213"> 1266<emph>NewDataX</emph> (optional) represents the X data array, in which the values are recalculated.</paragraph> 1267<paragraph role="paragraph" id="par_id3173817" xml-lang="en-US" l10n="U" oldref="214"> 1268<emph>FunctionType</emph>(optional). If FunctionType = 0, functions in the form y = m^x will be calculated. Otherwise, y = b*m^x functions will be calculated.</paragraph> 1269<paragraph role="paragraph" id="par_idN11DFD" xml-lang="en-US" l10n="NEW"> 1270<embedvar href="text/scalc/00/00000004.xhp#optional"/> 1271</paragraph> 1272<paragraph role="paragraph" id="par_idN12113" xml-lang="en-US" l10n="NEW"> 1273<embedvar href="text/scalc/00/00000004.xhp#moreontop"/> 1274</paragraph> 1275<paragraph role="heading" id="hd_id3173839" xml-lang="en-US" level="3" l10n="U" oldref="215">Example</paragraph> 1276<paragraph role="paragraph" id="par_id3173852" xml-lang="en-US" l10n="U" oldref="216">This function returns an array and is handled in the same way as the other array functions. Select a range where you want the answers to appear and select the function. Select DataY. Enter any other parameters, mark <emph>Array</emph> and click <emph>OK</emph>.</paragraph> 1277</section> 1278</sort> 1279<section id="relatedtopics"> 1280<embed href="text/scalc/01/04060100.xhp#drking"/> 1281</section> 1282</body> 1283</helpdocument> 1284