This is an automated email from the ASF dual-hosted git repository. jimjag pushed a commit to branch openformula in repository https://gitbox.apache.org/repos/asf/openoffice.git
commit 0a2e1534e925e9df4c101810ea0f5d01fea2271c Author: Jim Jagielski <[email protected]> AuthorDate: Wed Nov 18 09:15:33 2026 -0500 helpcontent2: fix the help for the functions added after #523, add F.DIST and F.INV The new topics were missing from util/scalc/makefile.mk, so their help IDs did not resolve. Ugg. --- .../helpcontent2/source/text/scalc/01/04060102.xhp | 5 -- .../helpcontent2/source/text/scalc/01/04060109.xhp | 5 ++ .../helpcontent2/source/text/scalc/01/04060110.xhp | 16 ---- .../helpcontent2/source/text/scalc/01/04060118.xhp | 12 +-- .../helpcontent2/source/text/scalc/01/04060182.xhp | 95 +++++++++++----------- .../source/text/scalc/01/func_datedif.xhp | 8 +- .../source/text/scalc/01/func_errortype.xhp | 13 +-- .../source/text/scalc/01/func_numbervalue.xhp | 5 +- .../source/text/scalc/01/func_searchb.xhp | 7 +- main/helpcontent2/util/scalc/makefile.mk | 7 ++ 10 files changed, 83 insertions(+), 90 deletions(-) diff --git a/main/helpcontent2/source/text/scalc/01/04060102.xhp b/main/helpcontent2/source/text/scalc/01/04060102.xhp index bbe024200b..cc80d8dd96 100644 --- a/main/helpcontent2/source/text/scalc/01/04060102.xhp +++ b/main/helpcontent2/source/text/scalc/01/04060102.xhp @@ -157,11 +157,6 @@ <embedvar href="text/scalc/01/func_eomonth.xhp#eomonth"/> </paragraph> </section> -<section id="errortype"> -<paragraph role="paragraph" id="par_id3155541" xml-lang="en-US" l10n="NEW"> -<embedvar href="text/scalc/01/func_errortype.xhp#errortype"/> -</paragraph> -</section> <section id="networkdays"> <paragraph role="paragraph" id="par_id8951384" xml-lang="en-US" l10n="NEW"> <embedvar href="text/scalc/01/func_networkdays.xhp#networkdays"/> diff --git a/main/helpcontent2/source/text/scalc/01/04060109.xhp b/main/helpcontent2/source/text/scalc/01/04060109.xhp index 97f599016c..04673071c4 100644 --- a/main/helpcontent2/source/text/scalc/01/04060109.xhp +++ b/main/helpcontent2/source/text/scalc/01/04060109.xhp @@ -156,6 +156,11 @@ <paragraph xml-lang="en-US" id="hd_id3145248" role="heading" level="3" l10n="U">Example</paragraph> <paragraph xml-lang="en-US" id="par_id3146904" role="paragraph" l10n="U">If cell A1 displays Err:518, the function <item type="input">=ERRORTYPE(A1)</item> returns the number 518.</paragraph> </section> +<section id="errortype_odf"> +<paragraph role="paragraph" id="par_id3180051" xml-lang="en-US" l10n="NEW"> +<embedvar href="text/scalc/01/func_errortype.xhp#errortype"/> +</paragraph> +</section> <section id="Section5"> <bookmark xml-lang="en-US" branch="index" id="bm_id3151221"> <bookmark_value>INDEX function</bookmark_value> diff --git a/main/helpcontent2/source/text/scalc/01/04060110.xhp b/main/helpcontent2/source/text/scalc/01/04060110.xhp index c786603184..5f00403b3f 100644 --- a/main/helpcontent2/source/text/scalc/01/04060110.xhp +++ b/main/helpcontent2/source/text/scalc/01/04060110.xhp @@ -259,10 +259,6 @@ <item type="input">=FIND(76;998877665544)</item> returns 6.</paragraph> </section> <section id="findb"> -<bookmark xml-lang="en-US" branch="index" id="bm_id3155611"> -<bookmark_value>FINDB function</bookmark_value> -</bookmark> -<bookmark xml-lang="en-US" branch="hid/SC_HID_FUNC_FINDB" id="bm_id3155612" localize="false"/> <paragraph role="paragraph" id="par_id3155613" xml-lang="en-US" l10n="NEW"> <embedvar href="text/scalc/01/func_findb.xhp#findb"/> </paragraph> @@ -371,10 +367,6 @@ <item type="input">=MID("office";2;2)</item> returns ff.</paragraph> </section> <section id="numbervalue"> -<bookmark xml-lang="en-US" branch="index" id="bm_id3155591"> -<bookmark_value>NUMBERVALUE function</bookmark_value> -</bookmark> -<bookmark xml-lang="en-US" branch="hid/SC_HID_FUNC_NUMBERVALUE" id="bm_id3155592" localize="false"/> <paragraph role="paragraph" id="par_id3155593" xml-lang="en-US" l10n="NEW"> <embedvar href="text/scalc/01/func_numbervalue.xhp#numbervalue"/> </paragraph> @@ -417,10 +409,6 @@ <item type="input">=REPLACE("1234567";1;1;"444")</item> returns "444234567". One character at position 1 is replaced by the complete <item type="literal">NewText</item>.</paragraph> </section> <section id="replaceb"> -<bookmark xml-lang="en-US" branch="index" id="bm_id3155651"> -<bookmark_value>REPLACEB function</bookmark_value> -</bookmark> -<bookmark xml-lang="en-US" branch="hid/SC_HID_FUNC_REPLACEB" id="bm_id3155652" localize="false"/> <paragraph role="paragraph" id="par_id3155653" xml-lang="en-US" l10n="NEW"> <embedvar href="text/scalc/01/func_replaceb.xhp#replaceb"/> </paragraph> @@ -508,10 +496,6 @@ <item type="input">=SEARCH(54;998877665544)</item> returns 10.</paragraph> </section> <section id="searchb"> -<bookmark xml-lang="en-US" branch="index" id="bm_id3155631"> -<bookmark_value>SEARCHB function</bookmark_value> -</bookmark> -<bookmark xml-lang="en-US" branch="hid/SC_HID_FUNC_SEARCHB" id="bm_id3155632" localize="false"/> <paragraph role="paragraph" id="par_id3155633" xml-lang="en-US" l10n="NEW"> <embedvar href="text/scalc/01/func_searchb.xhp#searchb"/> </paragraph> diff --git a/main/helpcontent2/source/text/scalc/01/04060118.xhp b/main/helpcontent2/source/text/scalc/01/04060118.xhp index 896f268739..6ff299f386 100644 --- a/main/helpcontent2/source/text/scalc/01/04060118.xhp +++ b/main/helpcontent2/source/text/scalc/01/04060118.xhp @@ -260,16 +260,16 @@ </bookmark> <bookmark xml-lang="en-US" branch="hid/SC_HID_FUNC_ZGZ" id="bm_id3146996" localize="false"/> <paragraph role="heading" id="hd_id3148822" xml-lang="en-US" level="2">RRI</paragraph> -<paragraph role="paragraph" id="par_id3154293" xml-lang="en-US" l10n="U"><ahelp hid="HID_FUNC_ZGZ">Calculates the equivalent interest rate for the growth of an investment.</ahelp></paragraph> +<paragraph role="paragraph" id="par_id3154293" xml-lang="en-US" l10n="U"><ahelp hid="HID_FUNC_ZGZ">Calculates the interest rate resulting from the profit (return) of an investment.</ahelp></paragraph> <paragraph role="heading" id="hd_id3148444" xml-lang="en-US" level="3" l10n="U">Syntax</paragraph> <paragraph role="code" id="par_id3148804" xml-lang="en-US" l10n="U">RRI(P; PV; FV)</paragraph> -<paragraph role="paragraph" id="par_id3154901" xml-lang="en-US" l10n="U"><emph>P</emph> is the number of periods.</paragraph> -<paragraph role="paragraph" id="par_id3159149" xml-lang="en-US" l10n="U"><emph>PV</emph> is the present value of the investment. Must be greater than 0.</paragraph> -<paragraph role="paragraph" id="par_id3149771" xml-lang="en-US" l10n="U"><emph>FV</emph> is the future value of the investment.</paragraph> +<paragraph role="paragraph" id="par_id3154901" xml-lang="en-US" l10n="U"><emph>P</emph> is the number of periods needed for calculating the interest rate.</paragraph> +<paragraph role="paragraph" id="par_id3159149" xml-lang="en-US" l10n="U"><emph>PV</emph> is the present (current) value. The cash value is the deposit of cash or the current cash value of an allowance in kind. As a deposit value a positive value must be entered; the deposit must not be 0 or <0.</paragraph> +<paragraph role="paragraph" id="par_id3149771" xml-lang="en-US" l10n="U"><emph>FV</emph> determines what is desired as the cash value of the deposit.</paragraph> <paragraph role="heading" id="hd_id3148941" xml-lang="en-US" level="3" l10n="U">Example</paragraph> -<paragraph role="paragraph" id="par_id3154212" xml-lang="en-US" l10n="U">For four periods and a present value of 7,500 currency units, the interest rate is calculated for a future value of 10,000 currency units.</paragraph> +<paragraph role="paragraph" id="par_id3154212" xml-lang="en-US" l10n="U">For four periods (years) and a cash value of 7,500 currency units, the interest rate of the return is to be calculated if the future value is 10,000 currency units.</paragraph> <paragraph role="paragraph" id="par_id3150775" xml-lang="en-US" l10n="U"><item type="input">=RRI(4;7500;10000)</item> = 7.46%</paragraph> -<paragraph role="paragraph" id="par_id3145413" xml-lang="en-US" l10n="U">The interest rate must be 7.46% for 7,500 currency units to grow to 10,000 currency units in four periods.</paragraph> +<paragraph role="paragraph" id="par_id3145413" xml-lang="en-US" l10n="U">The interest rate must be 7.46% so that 7,500 currency units will become 10,000 currency units.</paragraph> </section> <section id="rate"> <bookmark xml-lang="en-US" branch="index" id="bm_id3154267"> diff --git a/main/helpcontent2/source/text/scalc/01/04060182.xhp b/main/helpcontent2/source/text/scalc/01/04060182.xhp index 78e390ca5f..650afd1867 100644 --- a/main/helpcontent2/source/text/scalc/01/04060182.xhp +++ b/main/helpcontent2/source/text/scalc/01/04060182.xhp @@ -39,30 +39,31 @@ </bookmark><comment>mw added one entry</comment> <bookmark xml-lang="en-US" branch="hid/SC_HID_FUNC_FINV" id="bm_id3146113" localize="false"/> <paragraph xml-lang="en-US" id="hd_id3145388" role="heading" level="2" l10n="U">FINV</paragraph> -<paragraph xml-lang="en-US" id="par_id3155089" role="paragraph" l10n="U"><ahelp hid="HID_FUNC_FINV">Returns the inverse of the left-tailed F probability distribution.</ahelp></paragraph> +<paragraph xml-lang="en-US" id="par_id3155089" role="paragraph" l10n="U"><ahelp hid="HID_FUNC_FINV">Returns the inverse of the F probability distribution.</ahelp> The F distribution is used for F tests in order to set the relation between two differing data sets.</paragraph> <paragraph xml-lang="en-US" id="hd_id3153816" role="heading" level="3" l10n="U">Syntax</paragraph> <paragraph xml-lang="en-US" id="par_id3153068" role="code" l10n="U">FINV(Number; DegreesFreedom1; DegreesFreedom2)</paragraph> -<paragraph xml-lang="en-US" id="par_id3146866" role="paragraph" l10n="U"><emph>Number</emph> is the probability value for which the inverse F distribution is to be calculated. Must be > 0 and <= 1.</paragraph> -<paragraph xml-lang="en-US" id="par_id3153914" role="paragraph" l10n="U"><emph>DegreesFreedom1</emph> is the degrees of freedom in the numerator of the F distribution. Must be an integer >= 1.</paragraph> -<paragraph xml-lang="en-US" id="par_id3148607" role="paragraph" l10n="U"><emph>DegreesFreedom2</emph> is the degrees of freedom in the denominator of the F distribution. Must be an integer >= 1.</paragraph> +<paragraph xml-lang="en-US" id="par_id3146866" role="paragraph" l10n="U"><emph>Number</emph> is probability value for which the inverse F distribution is to be calculated.</paragraph> +<paragraph xml-lang="en-US" id="par_id3153914" role="paragraph" l10n="U"><emph>DegreesFreedom1</emph> is the number of degrees of freedom in the numerator of the F distribution.</paragraph> +<paragraph xml-lang="en-US" id="par_id3148607" role="paragraph" l10n="U"><emph>DegreesFreedom2</emph> is the number of degrees of freedom in the denominator of the F distribution.</paragraph> <paragraph xml-lang="en-US" id="hd_id3156021" role="heading" level="3" l10n="U">Example</paragraph> -<paragraph xml-lang="en-US" id="par_id3145073" role="paragraph" l10n="U"><item type="input">=FINV(0.918; 5; 10)</item> returns 2.5.</paragraph> +<paragraph xml-lang="en-US" id="par_id3145073" role="paragraph" l10n="U"><item type="input">=FINV(0.5;5;10)</item> yields 0.93.</paragraph> </section> -<section id="legacy.finv"> -<bookmark xml-lang="en-US" branch="index" id="bm_id3145389"> -<bookmark_value>LEGACY.FINV function</bookmark_value> -<bookmark_value>inverse F probability distribution; legacy right-tailed</bookmark_value> -</bookmark><comment>mw added one entry</comment> -<bookmark xml-lang="en-US" branch="hid/SC_HID_FUNC_LEGACY_FINV" id="bm_id3146114" localize="false"/> -<paragraph xml-lang="en-US" id="hd_id3145389" role="heading" level="2" l10n="U">LEGACY.FINV</paragraph> -<paragraph xml-lang="en-US" id="par_id3155090" role="paragraph" l10n="U"><ahelp hid="HID_FUNC_LEGACY_FINV">Returns the inverse of the right-tailed F probability distribution (legacy function for compatibility with older spreadsheets).</ahelp></paragraph> -<paragraph xml-lang="en-US" id="hd_id3153817" role="heading" level="3" l10n="U">Syntax</paragraph> -<paragraph xml-lang="en-US" id="par_id3153069" role="code" l10n="U">LEGACY.FINV(Number; DegreesFreedom1; DegreesFreedom2)</paragraph> -<paragraph xml-lang="en-US" id="par_id3146867" role="paragraph" l10n="U"><emph>Number</emph> is the probability value for which the inverse right-tailed F distribution is to be calculated. Must be > 0 and <= 1.</paragraph> -<paragraph xml-lang="en-US" id="par_id3153915" role="paragraph" l10n="U"><emph>DegreesFreedom1</emph> is the degrees of freedom in the numerator of the F distribution. Must be an integer >= 1.</paragraph> -<paragraph xml-lang="en-US" id="par_id3148608" role="paragraph" l10n="U"><emph>DegreesFreedom2</emph> is the degrees of freedom in the denominator of the F distribution. Must be an integer >= 1.</paragraph> -<paragraph xml-lang="en-US" id="hd_id3156022" role="heading" level="3" l10n="U">Example</paragraph> -<paragraph xml-lang="en-US" id="par_id3145074" role="paragraph" l10n="U"><item type="input">=LEGACY.FINV(0.082; 5; 10)</item> returns 2.5.</paragraph> +<section id="f.inv"> +<bookmark xml-lang="en-US" branch="index" id="bm_id3180001"> +<bookmark_value>F.INV function</bookmark_value> +<bookmark_value>inverse F probability distribution; left tail</bookmark_value> +</bookmark> +<bookmark xml-lang="en-US" branch="hid/SC_HID_FUNC_F_INV_LEFT" id="bm_id3180002" localize="false"/> +<paragraph xml-lang="en-US" id="hd_id3180001" role="heading" level="2" l10n="NEW">F.INV</paragraph> +<paragraph xml-lang="en-US" id="par_id3180003" role="paragraph" l10n="NEW"><ahelp hid="HID_FUNC_F_INV_LEFT">Returns the inverse of the left-tailed F distribution: the value x for which F.DIST(x; DegreesFreedom1; DegreesFreedom2) is Number.</ahelp> FINV is the inverse of the right tail.</paragraph> +<paragraph xml-lang="en-US" id="hd_id3180004" role="heading" level="3" l10n="NEW">Syntax</paragraph> +<paragraph xml-lang="en-US" id="par_id3180005" role="code" l10n="NEW">F.INV(Number; DegreesFreedom1; DegreesFreedom2)</paragraph> +<paragraph xml-lang="en-US" id="par_id3180006" role="paragraph" l10n="NEW"><emph>Number</emph> is the probability, from 0 up to but not including 1.</paragraph> +<paragraph xml-lang="en-US" id="par_id3180007" role="paragraph" l10n="NEW"><emph>DegreesFreedom1</emph> is the number of degrees of freedom in the numerator of the F distribution.</paragraph> +<paragraph xml-lang="en-US" id="par_id3180008" role="paragraph" l10n="NEW"><emph>DegreesFreedom2</emph> is the number of degrees of freedom in the denominator of the F distribution.</paragraph> +<paragraph xml-lang="en-US" id="par_id3180009" role="paragraph" l10n="NEW">In OpenDocument files this function is stored as FINV; the FINV function of %PRODUCTNAME is stored as LEGACY.FINV.</paragraph> +<paragraph xml-lang="en-US" id="hd_id3180010" role="heading" level="3" l10n="NEW">Example</paragraph> +<paragraph xml-lang="en-US" id="par_id3180011" role="paragraph" l10n="NEW"><item type="input">=F.INV(0.9;5;10)</item> yields 2.52.</paragraph> </section> <section id="fisher"> <bookmark xml-lang="en-US" branch="index" id="bm_id3150888"> @@ -109,36 +110,34 @@ <bookmark xml-lang="en-US" branch="index" id="bm_id3150372"> <bookmark_value>FDIST function</bookmark_value> </bookmark> -<bookmark xml-lang="en-US" branch="hid/SC_HID_FUNC_FDIST" id="bm_id3149722" localize="false"/> +<bookmark xml-lang="en-US" branch="hid/SC_HID_FUNC_FVERT" id="bm_id3149722" localize="false"/> <paragraph xml-lang="en-US" id="hd_id3150372" role="heading" level="2" l10n="U">FDIST</paragraph> -<paragraph xml-lang="en-US" id="par_id3152981" role="paragraph" l10n="U"><ahelp hid="HID_FUNC_FDIST">Returns the left-tailed probability of the F distribution.</ahelp></paragraph> +<paragraph xml-lang="en-US" id="par_id3152981" role="paragraph" l10n="U"><ahelp hid="HID_FUNC_FVERT">Calculates the values of an F distribution.</ahelp></paragraph> <paragraph xml-lang="en-US" id="hd_id3150484" role="heading" level="3" l10n="U">Syntax</paragraph> -<paragraph xml-lang="en-US" id="par_id3145826" role="code" l10n="U">FDIST(Number; DegreesFreedom1; DegreesFreedom2 [; Cumulative])</paragraph> -<paragraph xml-lang="en-US" id="par_id3150461" role="paragraph" l10n="U"><emph>Number</emph> is the value for which the F distribution is to be calculated. Must be non-negative.</paragraph> -<paragraph xml-lang="en-US" id="par_id3150029" role="paragraph" l10n="U"><emph>DegreesFreedom1</emph> is the degrees of freedom in the numerator of the F distribution. Must be an integer >= 1.</paragraph> -<paragraph xml-lang="en-US" id="par_id3146877" role="paragraph" l10n="U"><emph>DegreesFreedom2</emph> is the degrees of freedom in the denominator of the F distribution. Must be an integer >= 1.</paragraph> -<paragraph xml-lang="en-US" id="par_id3155709" role="paragraph" l10n="U"><emph>Cumulative</emph> (optional) is a logical value that determines the form of the function. If TRUE (default), FDIST returns the left-tailed cumulative distribution function; if FALSE, it returns the probability density function.</paragraph> +<paragraph xml-lang="en-US" id="par_id3145826" role="code" l10n="U">FDIST(Number; DegreesFreedom1; DegreesFreedom2)</paragraph> +<paragraph xml-lang="en-US" id="par_id3150461" role="paragraph" l10n="U"><emph>Number</emph> is the value for which the F distribution is to be calculated.</paragraph> +<paragraph xml-lang="en-US" id="par_id3150029" role="paragraph" l10n="U"><emph>degreesFreedom1</emph> is the degrees of freedom in the numerator in the F distribution.</paragraph> +<paragraph xml-lang="en-US" id="par_id3146877" role="paragraph" l10n="U"><emph>degreesFreedom2</emph> is the degrees of freedom in the denominator in the F distribution.</paragraph> <paragraph xml-lang="en-US" id="hd_id3147423" role="heading" level="3" l10n="U">Example</paragraph> -<paragraph xml-lang="en-US" id="par_id3150696" role="paragraph" l10n="U"><item type="input">=FDIST(2.5; 5; 10)</item> returns 0.918.</paragraph> -<paragraph xml-lang="en-US" id="par_id3155712" role="paragraph" l10n="U"><item type="input">=FDIST(2.5; 5; 10; FALSE)</item> returns the probability density at 2.5.</paragraph> +<paragraph xml-lang="en-US" id="par_id3150696" role="paragraph" l10n="U"><item type="input">=FDIST(0.8;8;12)</item> yields 0.61.</paragraph> </section> -<section id="legacy.fdist"> -<bookmark xml-lang="en-US" branch="index" id="bm_id3150373"> -<bookmark_value>LEGACY.FDIST function</bookmark_value> -<bookmark_value>F distribution; legacy right-tailed</bookmark_value> +<section id="f.dist"> +<bookmark xml-lang="en-US" branch="index" id="bm_id3180021"> +<bookmark_value>F.DIST function</bookmark_value> +<bookmark_value>F distribution; left tail</bookmark_value> </bookmark> -<bookmark xml-lang="en-US" branch="hid/SC_HID_FUNC_LEGACY_FDIST" id="bm_id3149723" localize="false"/> -<paragraph xml-lang="en-US" id="hd_id3150374" role="heading" level="2" l10n="U">LEGACY.FDIST</paragraph> -<paragraph xml-lang="en-US" id="par_id3152982" role="paragraph" l10n="U"><ahelp hid="HID_FUNC_LEGACY_FDIST">Returns the right-tailed probability of the F distribution (legacy function for compatibility with older spreadsheets).</ahelp></paragraph> -<paragraph xml-lang="en-US" id="hd_id3150485" role="heading" level="3" l10n="U">Syntax</paragraph> -<paragraph xml-lang="en-US" id="par_id3145827" role="code" l10n="U">LEGACY.FDIST(Number; DegreesFreedom1; DegreesFreedom2 [; Cumulative])</paragraph> -<paragraph xml-lang="en-US" id="par_id3150462" role="paragraph" l10n="U"><emph>Number</emph> is the value for which the F distribution is to be calculated. Must be non-negative.</paragraph> -<paragraph xml-lang="en-US" id="par_id3150030" role="paragraph" l10n="U"><emph>DegreesFreedom1</emph> is the degrees of freedom in the numerator of the F distribution. Must be an integer >= 1.</paragraph> -<paragraph xml-lang="en-US" id="par_id3146878" role="paragraph" l10n="U"><emph>DegreesFreedom2</emph> is the degrees of freedom in the denominator of the F distribution. Must be an integer >= 1.</paragraph> -<paragraph xml-lang="en-US" id="par_id3155710" role="paragraph" l10n="U"><emph>Cumulative</emph> (optional) is a logical value that determines the form of the function. If TRUE (default), LEGACY.FDIST returns the right-tailed cumulative distribution function; if FALSE, it returns the probability density function.</paragraph> -<paragraph xml-lang="en-US" id="hd_id3147424" role="heading" level="3" l10n="U">Example</paragraph> -<paragraph xml-lang="en-US" id="par_id3150697" role="paragraph" l10n="U"><item type="input">=LEGACY.FDIST(2.5; 5; 10)</item> returns 0.082.</paragraph> -<paragraph xml-lang="en-US" id="par_id3155713" role="paragraph" l10n="U"><item type="input">=LEGACY.FDIST(2.5; 5; 10; FALSE)</item> returns the probability density at 2.5.</paragraph> +<bookmark xml-lang="en-US" branch="hid/SC_HID_FUNC_F_DIST_LEFT" id="bm_id3180022" localize="false"/> +<paragraph xml-lang="en-US" id="hd_id3180021" role="heading" level="2" l10n="NEW">F.DIST</paragraph> +<paragraph xml-lang="en-US" id="par_id3180023" role="paragraph" l10n="NEW"><ahelp hid="HID_FUNC_F_DIST_LEFT">Calculates the left tail or the density of the F distribution.</ahelp> FDIST returns the right tail.</paragraph> +<paragraph xml-lang="en-US" id="hd_id3180024" role="heading" level="3" l10n="NEW">Syntax</paragraph> +<paragraph xml-lang="en-US" id="par_id3180025" role="code" l10n="NEW">F.DIST(Number; DegreesFreedom1; DegreesFreedom2; Cumulative)</paragraph> +<paragraph xml-lang="en-US" id="par_id3180026" role="paragraph" l10n="NEW"><emph>Number</emph> is the value for which the F distribution is to be calculated. For a Number below 0 the result is 0.</paragraph> +<paragraph xml-lang="en-US" id="par_id3180027" role="paragraph" l10n="NEW"><emph>DegreesFreedom1</emph> is the number of degrees of freedom in the numerator of the F distribution.</paragraph> +<paragraph xml-lang="en-US" id="par_id3180028" role="paragraph" l10n="NEW"><emph>DegreesFreedom2</emph> is the number of degrees of freedom in the denominator of the F distribution.</paragraph> +<paragraph xml-lang="en-US" id="par_id3180029" role="paragraph" l10n="NEW"><emph>Cumulative</emph> (optional): 0 or FALSE calculates the probability density function. Any other value or TRUE or omitted calculates the cumulative distribution function.</paragraph> +<paragraph xml-lang="en-US" id="par_id3180030" role="paragraph" l10n="NEW">In OpenDocument files this function is stored as FDIST; the FDIST function of %PRODUCTNAME is stored as LEGACY.FDIST.</paragraph> +<paragraph xml-lang="en-US" id="hd_id3180031" role="heading" level="3" l10n="NEW">Example</paragraph> +<paragraph xml-lang="en-US" id="par_id3180032" role="paragraph" l10n="NEW"><item type="input">=F.DIST(2.5;5;10)</item> yields 0.90, and <item type="input">=FDIST(2.5;5;10)</item> yields the remaining 0.10.</paragraph> </section> <section id="gamma"> <bookmark xml-lang="en-US" branch="hid/SC_HID_FUNC_GAMMA" id="bm_id0119200903221254" localize="false"/> @@ -279,15 +278,15 @@ <paragraph xml-lang="en-US" id="hd_id3152801" role="heading" level="2" l10n="U">HYPGEOMDIST</paragraph> <paragraph xml-lang="en-US" id="par_id3159341" role="paragraph" l10n="U"><ahelp hid="HID_FUNC_HYPGEOMVERT">Returns the hypergeometric distribution.</ahelp></paragraph> <paragraph xml-lang="en-US" id="hd_id3154697" role="heading" level="3" l10n="U">Syntax</paragraph> -<paragraph xml-lang="en-US" id="par_id3155388" role="code" l10n="U">HYPGEOMDIST(X; NSample; Successes; NPopulation [; Cumulative])</paragraph> +<paragraph xml-lang="en-US" id="par_id3155388" role="code" l10n="CHG">HYPGEOMDIST(X; NSample; Successes; NPopulation; Cumulative)</paragraph> <paragraph xml-lang="en-US" id="par_id3154933" role="paragraph" l10n="U"><emph>X</emph> is the number of results achieved in the random sample.</paragraph> <paragraph xml-lang="en-US" id="par_id3153106" role="paragraph" l10n="U"><emph>NSample</emph> is the size of the random sample.</paragraph> <paragraph xml-lang="en-US" id="par_id3146992" role="paragraph" l10n="U"><emph>Successes</emph> is the number of possible results in the total population.</paragraph> <paragraph xml-lang="en-US" id="par_id3148826" role="paragraph" l10n="U"><emph>NPopulation</emph> is the size of the total population.</paragraph> -<paragraph xml-lang="en-US" id="par_id3155389" role="paragraph" l10n="U"><emph>Cumulative</emph> (optional) is a logical value that determines the form of the function. If TRUE, HYPGEOMDIST returns the cumulative distribution function; if FALSE or omitted, it returns the probability mass function. For four-argument calls, the default is FALSE (probability mass function) for backward compatibility with legacy spreadsheets.</paragraph> +<paragraph xml-lang="en-US" id="par_id3180041" role="paragraph" l10n="NEW"><emph>Cumulative</emph> (optional): 0 or FALSE or omitted calculates the probability of exactly X results. Any other value or TRUE calculates the probability of at most X results.</paragraph> <paragraph xml-lang="en-US" id="hd_id3150529" role="heading" level="3" l10n="U">Example</paragraph> <paragraph xml-lang="en-US" id="par_id3154904" role="paragraph" l10n="U"><item type="input">=HYPGEOMDIST(2;2;90;100)</item> yields 0.81. If 90 out of 100 pieces of buttered toast fall from the table and hit the floor with the buttered side first, then if 2 pieces of buttered toast are dropped from the table, the probability is 81%, that both will strike buttered side first.</paragraph> -<paragraph xml-lang="en-US" id="par_id3155390" role="paragraph" l10n="U"><item type="input">=HYPGEOMDIST(2;2;90;100;FALSE())</item> yields the probability mass function value at 2.</paragraph> +<paragraph xml-lang="en-US" id="par_id3180042" role="paragraph" l10n="NEW"><item type="input">=HYPGEOMDIST(2;5;5;11;1)</item> yields 0.61, the probability of at most 2 successes.</paragraph> </section> </sort> <section id="relatedtopics"> diff --git a/main/helpcontent2/source/text/scalc/01/func_datedif.xhp b/main/helpcontent2/source/text/scalc/01/func_datedif.xhp index f3797d0af2..7b093f67ac 100644 --- a/main/helpcontent2/source/text/scalc/01/func_datedif.xhp +++ b/main/helpcontent2/source/text/scalc/01/func_datedif.xhp @@ -41,7 +41,7 @@ <paragraph role="code" id="par_id3155515" xml-lang="en-US" l10n="U">DATEDIF(StartDate; EndDate; Format)</paragraph> <paragraph role="paragraph" id="par_id3155516" xml-lang="en-US" l10n="U"><emph>StartDate</emph> is the start date of the interval.</paragraph> <paragraph role="paragraph" id="par_id3155517" xml-lang="en-US" l10n="U"><emph>EndDate</emph> is the end date of the interval. Time fractions are ignored.</paragraph> -<paragraph role="paragraph" id="par_id3155518" xml-lang="en-US" l10n="U"><emph>Format</emph> is a text value that specifies the unit of the result. The format is case-sensitive.</paragraph> +<paragraph role="paragraph" id="par_id3155518" xml-lang="en-US" l10n="U"><emph>Format</emph> is a text value that specifies the unit of the result. Upper and lower case letters are equivalent.</paragraph> <table id="tbl_id3155519"> <tablerow> <tablecell> @@ -80,7 +80,7 @@ <paragraph role="tablecontent" id="par_id3155528" xml-lang="en-US" l10n="U">"md"</paragraph> </tablecell> <tablecell> -<paragraph role="tablecontent" id="par_id3155529" xml-lang="en-US" l10n="U">Days, ignoring months and years.</paragraph> +<paragraph role="tablecontent" id="par_id3155529" xml-lang="en-US" l10n="U">Days, ignoring months and years. As in Microsoft Excel, the days of the month before the month of <emph>EndDate</emph> are borrowed, so the result can be negative: from January 31 to March 1, 2024 it is -1.</paragraph> </tablecell> </tablerow> <tablerow> @@ -96,11 +96,11 @@ <paragraph role="tablecontent" id="par_id3155532" xml-lang="en-US" l10n="U">"yd"</paragraph> </tablecell> <tablecell> -<paragraph role="tablecontent" id="par_id3155533" xml-lang="en-US" l10n="U">Days, ignoring years.</paragraph> +<paragraph role="tablecontent" id="par_id3155533" xml-lang="en-US" l10n="U">Days, ignoring years. As in Microsoft Excel, <emph>EndDate</emph> is moved into the year of <emph>StartDate</emph>, or into the next year if it would come before <emph>StartDate</emph>.</paragraph> </tablecell> </tablerow> </table> -<paragraph role="paragraph" id="par_id3155534" xml-lang="en-US" l10n="U">If <emph>StartDate</emph> is later than <emph>EndDate</emph>, the result for formats "d", "m", and "y" is negative. The component formats "md", "ym", and "yd" return a non-negative value.</paragraph> +<paragraph role="paragraph" id="par_id3155534" xml-lang="en-US" l10n="U">If <emph>StartDate</emph> is later than <emph>EndDate</emph>, the result is an error.</paragraph> <paragraph role="heading" id="hd_id3155535" xml-lang="en-US" level="3" l10n="U">Examples</paragraph> <paragraph role="paragraph" id="par_id3155536" xml-lang="en-US" l10n="U"><item type="input">=DATEDIF("2024-01-01";"2024-12-31";"d")</item> returns 365.</paragraph> <paragraph role="paragraph" id="par_id3155537" xml-lang="en-US" l10n="U"><item type="input">=DATEDIF("2024-01-01";"2025-01-01";"y")</item> returns 1.</paragraph> diff --git a/main/helpcontent2/source/text/scalc/01/func_errortype.xhp b/main/helpcontent2/source/text/scalc/01/func_errortype.xhp index 111623e92c..aef09e6c72 100644 --- a/main/helpcontent2/source/text/scalc/01/func_errortype.xhp +++ b/main/helpcontent2/source/text/scalc/01/func_errortype.xhp @@ -33,13 +33,13 @@ <bookmark_value>ERROR.TYPE function</bookmark_value> <bookmark_value>error type</bookmark_value> </bookmark> -<bookmark xml-lang="en-US" branch="hid/SC_HID_FUNC_FEHLERTYP" id="bm_id3155542" localize="false"/> +<bookmark xml-lang="en-US" branch="hid/SC_HID_FUNC_ERROR_TYPE_ODF" id="bm_id3155542" localize="false"/> <paragraph role="heading" id="hd_id3155540" xml-lang="en-US" level="2" l10n="U"><variable id="errortype"><link href="text/scalc/01/func_errortype.xhp">ERROR.TYPE</link> </variable></paragraph> -<paragraph role="paragraph" id="par_id3155543" xml-lang="en-US" l10n="U"><ahelp hid="HID_FUNC_FEHLERTYP">Returns a number corresponding to the error type of the error value.</ahelp></paragraph> +<paragraph role="paragraph" id="par_id3155543" xml-lang="en-US" l10n="U"><ahelp hid="HID_FUNC_ERROR_TYPE_ODF">Returns a number from 1 to 7 for the kind of error value.</ahelp> ERRORTYPE returns the error number of %PRODUCTNAME instead.</paragraph> <paragraph role="heading" id="hd_id3155544" xml-lang="en-US" level="3" l10n="U">Syntax</paragraph> -<paragraph role="code" id="par_id3155545" xml-lang="en-US" l10n="U">ERROR.TYPE(Reference)</paragraph> -<paragraph role="paragraph" id="par_id3155546" xml-lang="en-US" l10n="U"><emph>Reference</emph> is the cell reference or error value to be checked.</paragraph> +<paragraph role="code" id="par_id3155545" xml-lang="en-US" l10n="U">ERROR.TYPE(Value)</paragraph> +<paragraph role="paragraph" id="par_id3155546" xml-lang="en-US" l10n="U"><emph>Value</emph> is the value or cell reference to be checked.</paragraph> <paragraph role="heading" id="hd_id3155547" xml-lang="en-US" level="3" l10n="U">Return values</paragraph> <table id="tbl_id3155548"> <tablerow> @@ -107,9 +107,10 @@ </tablecell> </tablerow> </table> -<paragraph role="paragraph" id="par_id3155565" xml-lang="en-US" l10n="U">If <emph>Reference</emph> is not an error value, the function returns the #N/A error.</paragraph> +<paragraph role="paragraph" id="par_id3155565" xml-lang="en-US" l10n="U">If <emph>Value</emph> is not an error value, the function returns the #N/A error.</paragraph> +<paragraph role="paragraph" id="par_id3155569" xml-lang="en-US" l10n="NEW">An error that %PRODUCTNAME shows as Err: and a number gets the number of the error value it becomes when the document is saved in Microsoft Excel format, for example 3 for Err:502.</paragraph> <paragraph role="heading" id="hd_id3155566" xml-lang="en-US" level="3" l10n="U">Examples</paragraph> <paragraph role="paragraph" id="par_id3155567" xml-lang="en-US" l10n="U"><item type="input">=ERROR.TYPE(1/0)</item> returns 2.</paragraph> -<paragraph role="paragraph" id="par_id3155568" xml-lang="en-US" l10n="U"><item type="input">=ERROR.TYPE(#VALUE!)</item> returns 3.</paragraph> +<paragraph role="paragraph" id="par_id3155568" xml-lang="en-US" l10n="U"><item type="input">=ERROR.TYPE(NA())</item> returns 7.</paragraph> </body> </helpdocument> diff --git a/main/helpcontent2/source/text/scalc/01/func_numbervalue.xhp b/main/helpcontent2/source/text/scalc/01/func_numbervalue.xhp index 87d1d4a765..36abf46ccc 100644 --- a/main/helpcontent2/source/text/scalc/01/func_numbervalue.xhp +++ b/main/helpcontent2/source/text/scalc/01/func_numbervalue.xhp @@ -40,8 +40,9 @@ <paragraph role="heading" id="hd_id3155594" xml-lang="en-US" level="3" l10n="U">Syntax</paragraph> <paragraph role="code" id="par_id3155595" xml-lang="en-US" l10n="U">NUMBERVALUE(Text; DecimalSeparator; GroupSeparator)</paragraph> <paragraph role="paragraph" id="par_id3155596" xml-lang="en-US" l10n="U"><emph>Text</emph> is the text to be converted to a number.</paragraph> -<paragraph role="paragraph" id="par_id3155597" xml-lang="en-US" l10n="U"><emph>DecimalSeparator</emph> is the character used as the decimal separator. If omitted, the system locale default is used.</paragraph> -<paragraph role="paragraph" id="par_id3155598" xml-lang="en-US" l10n="U"><emph>GroupSeparator</emph> is the character used as the group (thousands) separator. If omitted, the system locale default is used.</paragraph> +<paragraph role="paragraph" id="par_id3155597" xml-lang="en-US" l10n="U"><emph>DecimalSeparator</emph> (optional) is the character used as the decimal separator. If omitted, the decimal separator of the locale is used.</paragraph> +<paragraph role="paragraph" id="par_id3155598" xml-lang="en-US" l10n="U"><emph>GroupSeparator</emph> (optional) holds the characters used as group (thousands) separators. If omitted, the group separator of the locale is used, unless it is the decimal separator.</paragraph> +<paragraph role="paragraph" id="par_id3155603" xml-lang="en-US" l10n="NEW">Group separators are removed only before the decimal separator, spaces are ignored, and each percent sign at the end divides the result by 100. What remains must be a plain number, which may have an exponent. <emph>DecimalSeparator</emph> must be a single character that does not occur in <emph>GroupSeparator</emph>.</paragraph> <paragraph role="heading" id="hd_id3155599" xml-lang="en-US" level="3" l10n="U">Examples</paragraph> <paragraph role="paragraph" id="par_id3155600" xml-lang="en-US" l10n="U"><item type="input">=NUMBERVALUE("1.234";".";",")</item> returns 1.234.</paragraph> <paragraph role="paragraph" id="par_id3155601" xml-lang="en-US" l10n="U"><item type="input">=NUMBERVALUE("1.234,56";",";".")</item> returns 1234.56.</paragraph> diff --git a/main/helpcontent2/source/text/scalc/01/func_searchb.xhp b/main/helpcontent2/source/text/scalc/01/func_searchb.xhp index 5df4266f9d..53c16843ae 100644 --- a/main/helpcontent2/source/text/scalc/01/func_searchb.xhp +++ b/main/helpcontent2/source/text/scalc/01/func_searchb.xhp @@ -36,15 +36,16 @@ <bookmark xml-lang="en-US" branch="hid/SC_HID_FUNC_SEARCHB" id="bm_id3155632" localize="false"/> <paragraph role="heading" id="hd_id3155630" xml-lang="en-US" level="2" l10n="U"><variable id="searchb"><link href="text/scalc/01/func_searchb.xhp">SEARCHB</link> </variable></paragraph> -<paragraph role="paragraph" id="par_id3155633" xml-lang="en-US" l10n="U"><ahelp hid="HID_FUNC_SEARCHB">Finds a text string within another text string and returns the starting position as a byte count. The search is not case-sensitive and supports wildcards.</ahelp></paragraph> +<paragraph role="paragraph" id="par_id3155633" xml-lang="en-US" l10n="U"><ahelp hid="HID_FUNC_SEARCHB">Finds a text string within another text string and returns the starting position as a byte count. The search is not case-sensitive.</ahelp></paragraph> +<embed href="text/shared/00/00000001.xhp#regulaer"/> <paragraph role="heading" id="hd_id3155634" xml-lang="en-US" level="3" l10n="U">Syntax</paragraph> <paragraph role="code" id="par_id3155635" xml-lang="en-US" l10n="U">SEARCHB(FindText; Text; StartPosition)</paragraph> -<paragraph role="paragraph" id="par_id3155636" xml-lang="en-US" l10n="U"><emph>FindText</emph> is the text to search for. Wildcard characters ? (any single character) and * (any sequence of characters) are supported.</paragraph> +<paragraph role="paragraph" id="par_id3155636" xml-lang="en-US" l10n="U"><emph>FindText</emph> is the text to search for.</paragraph> <paragraph role="paragraph" id="par_id3155637" xml-lang="en-US" l10n="U"><emph>Text</emph> is the text in which to search.</paragraph> <paragraph role="paragraph" id="par_id3155638" xml-lang="en-US" l10n="U"><emph>StartPosition</emph> (optional) is the byte position in Text at which to start the search. Default is 1.</paragraph> <paragraph role="paragraph" id="par_id3155639" xml-lang="en-US" l10n="U">Returns a byte position (1-based). Double-byte characters count as 2 bytes; single-byte characters count as 1 byte.</paragraph> <paragraph role="heading" id="hd_id3155640" xml-lang="en-US" level="3" l10n="U">Examples</paragraph> <paragraph role="paragraph" id="par_id3155641" xml-lang="en-US" l10n="U"><item type="input">=SEARCHB("B";"abc")</item> returns 2.</paragraph> -<paragraph role="paragraph" id="par_id3155642" xml-lang="en-US" l10n="U"><item type="input">=SEARCHB("a?c";"abc")</item> returns 1.</paragraph> +<paragraph role="paragraph" id="par_id3155642" xml-lang="en-US" l10n="U"><item type="input">=SEARCHB("b";"abcb";3)</item> returns 4.</paragraph> </body> </helpdocument> diff --git a/main/helpcontent2/util/scalc/makefile.mk b/main/helpcontent2/util/scalc/makefile.mk index 36d0aa61a7..4955901cfa 100644 --- a/main/helpcontent2/util/scalc/makefile.mk +++ b/main/helpcontent2/util/scalc/makefile.mk @@ -244,6 +244,13 @@ LINKLINKFILES= \ text$/scalc$/01$/func_iferror.xhp \ text$/scalc$/01$/func_ifna.xhp \ text$/scalc$/01$/func_skewp.xhp \ + text$/scalc$/01$/func_datedif.xhp \ + text$/scalc$/01$/func_errortype.xhp \ + text$/scalc$/01$/func_findb.xhp \ + text$/scalc$/01$/func_isoweeknum.xhp \ + text$/scalc$/01$/func_numbervalue.xhp \ + text$/scalc$/01$/func_replaceb.xhp \ + text$/scalc$/01$/func_searchb.xhp \ text$/scalc$/01$/solver.xhp \ text$/scalc$/01$/solver_options.xhp \ text$/scalc$/01$/text2columns.xhp \
