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 958f48708edb827cb2789465eeea6901aa318fe3
Author: Jim Jagielski <[email protected]>
AuthorDate: Mon Nov 16 10:26:13 2026 -0500

    helpcontent2: add the IFERROR topic and link it from the logical functions
---
 .../helpcontent2/source/text/scalc/01/04060105.xhp |  5 ++
 .../source/text/scalc/01/func_iferror.xhp          | 55 ++++++++++++++++++++++
 main/helpcontent2/source/text/scalc/01/makefile.mk |  1 +
 main/helpcontent2/util/scalc/makefile.mk           |  1 +
 4 files changed, 62 insertions(+)

diff --git a/main/helpcontent2/source/text/scalc/01/04060105.xhp 
b/main/helpcontent2/source/text/scalc/01/04060105.xhp
index 34d0e25934..bbad8ea29e 100644
--- a/main/helpcontent2/source/text/scalc/01/04060105.xhp
+++ b/main/helpcontent2/source/text/scalc/01/04060105.xhp
@@ -153,6 +153,11 @@ FALSE is returned if the result of this addition is 
0.<comment>UFI: first try to
 <paragraph xml-lang="en-US" id="par_id3155371K" role="paragraph" 
l10n="U"><item type="input">=XOR(12&lt;11;13&gt;22;10)</item> returns TRUE 
since this converts to (1+0+10) mod 2 = 0</paragraph>
 <paragraph xml-lang="en-US" id="par_id3158412K" role="paragraph" 
l10n="U"><item type="input">=XOR(FALSE;TRUE)</item> returns TRUE.</paragraph>
 </section>
+<section id="iferror">
+<paragraph role="paragraph" id="par_idIFERROR01" xml-lang="en-US" l10n="NEW">
+<embedvar href="text/scalc/01/func_iferror.xhp#iferror"/>
+</paragraph>
+</section>
 <section id="ifna">
 <paragraph role="paragraph" id="par_idIFNA01" xml-lang="en-US" l10n="NEW">
 <embedvar href="text/scalc/01/func_ifna.xhp#ifna"/>
diff --git a/main/helpcontent2/source/text/scalc/01/func_iferror.xhp 
b/main/helpcontent2/source/text/scalc/01/func_iferror.xhp
new file mode 100644
index 0000000000..7c361a918f
--- /dev/null
+++ b/main/helpcontent2/source/text/scalc/01/func_iferror.xhp
@@ -0,0 +1,55 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!--***********************************************************
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ ***********************************************************-->
+
+<helpdocument version="1.0">
+<meta>
+<topic id="textscalc01func_iferrorxml" indexer="include" status="PUBLISH">
+<title id="tit" xml-lang="en-US">IFERROR</title>
+<filename>/text/scalc/01/func_iferror.xhp</filename>
+</topic>
+</meta>
+<body>
+<bookmark xml-lang="en-US" branch="index" id="bm_id3170001">
+<bookmark_value>IFERROR function</bookmark_value>
+<bookmark_value>error handling;IFERROR</bookmark_value>
+</bookmark>
+<bookmark xml-lang="en-US" branch="hid/SC_HID_FUNC_IFERROR" id="bm_id3170002" 
localize="false"/>
+<paragraph role="heading" id="hd_id3170001" xml-lang="en-US" level="2" 
l10n="NEW"><variable id="iferror"><link 
href="text/scalc/01/func_iferror.xhp">IFERROR</link>
+</variable></paragraph>
+<paragraph role="paragraph" id="par_id3170003" xml-lang="en-US" 
l10n="NEW"><ahelp hid="HID_FUNC_IFERROR">Returns the value if it is not an 
error value, otherwise it returns the alternative value.</ahelp> Every error 
value is replaced, including #N/A; ordinary values pass through 
unchanged.</paragraph>
+<paragraph role="heading" id="hd_id3170004" xml-lang="en-US" level="3" 
l10n="NEW">Syntax</paragraph>
+<paragraph role="code" id="par_id3170005" xml-lang="en-US" 
l10n="NEW">IFERROR(Value; Alternative)</paragraph>
+<paragraph role="paragraph" id="par_id3170006" xml-lang="en-US" 
l10n="NEW"><emph>Value</emph> is the value or reference to be checked for an 
error value.</paragraph>
+<paragraph role="paragraph" id="par_id3170007" xml-lang="en-US" 
l10n="NEW"><emph>Alternative</emph> is the value returned when 
<emph>Value</emph> is an error value. It is evaluated only when 
<emph>Value</emph> is an error value; an error in <emph>Alternative</emph> 
itself is returned.</paragraph>
+<paragraph role="heading" id="hd_id3170008" xml-lang="en-US" level="3" 
l10n="NEW">Remarks</paragraph>
+<paragraph role="paragraph" id="par_id3170009" xml-lang="en-US" l10n="NEW">A 
reference to an empty cell is not an error value, so <emph>Value</emph> is 
returned and shows as 0.</paragraph>
+<paragraph role="paragraph" id="par_id3170010" xml-lang="en-US" l10n="NEW">In 
an array formula, each element of <emph>Value</emph> that is an error value is 
replaced on its own; if <emph>Alternative</emph> is also a range or array, the 
matching element of <emph>Alternative</emph> is used.</paragraph>
+<paragraph role="paragraph" id="par_id3170011" xml-lang="en-US" l10n="NEW">To 
replace only #N/A and keep other error values, use IFNA.</paragraph>
+<paragraph role="heading" id="hd_id3170012" xml-lang="en-US" level="3" 
l10n="NEW">Example</paragraph>
+<paragraph role="paragraph" id="par_id3170013" xml-lang="en-US" 
l10n="NEW"><item type="input">=IFERROR(1/0; "fallback")</item> returns 
<quote>fallback</quote>.</paragraph>
+<paragraph role="paragraph" id="par_id3170014" xml-lang="en-US" 
l10n="NEW"><item type="input">=IFERROR(SQRT(-1); 10)</item> returns 10, because 
the square root of a negative number gives the error Err:502.</paragraph>
+<paragraph role="paragraph" id="par_id3170015" xml-lang="en-US" 
l10n="NEW"><item type="input">=IFERROR(5; 1/0)</item> returns 5; the 
alternative is not evaluated.</paragraph>
+<embed href="text/shared/00/00000001.xhp#siehe"/>
+<paragraph role="paragraph" id="par_id3170016" xml-lang="en-US" 
l10n="NEW"><link href="text/scalc/01/func_ifna.xhp" name="IFNA">IFNA</link>, 
<link href="text/scalc/01/04060104.xhp#iserror" 
name="ISERROR">ISERROR</link>.</paragraph>
+</body>
+</helpdocument>
diff --git a/main/helpcontent2/source/text/scalc/01/makefile.mk 
b/main/helpcontent2/source/text/scalc/01/makefile.mk
index 293fa30390..5392e30a64 100644
--- a/main/helpcontent2/source/text/scalc/01/makefile.mk
+++ b/main/helpcontent2/source/text/scalc/01/makefile.mk
@@ -205,6 +205,7 @@ XHPFILES = \
    func_edate.xhp \
    func_eomonth.xhp \
    func_hour.xhp \
+   func_iferror.xhp \
    func_ifna.xhp \
    func_minute.xhp \
    func_month.xhp \
diff --git a/main/helpcontent2/util/scalc/makefile.mk 
b/main/helpcontent2/util/scalc/makefile.mk
index f5de336e03..36d0aa61a7 100644
--- a/main/helpcontent2/util/scalc/makefile.mk
+++ b/main/helpcontent2/util/scalc/makefile.mk
@@ -241,6 +241,7 @@ LINKLINKFILES= \
    text$/scalc$/01$/func_bitrshift.xhp \
    text$/scalc$/01$/func_bitor.xhp \
    text$/scalc$/01$/func_bitxor.xhp \
+   text$/scalc$/01$/func_iferror.xhp \
    text$/scalc$/01$/func_ifna.xhp \
    text$/scalc$/01$/func_skewp.xhp \
    text$/scalc$/01$/solver.xhp \

Reply via email to