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 ca287e3487718397a94b50329eea52cd0f0d5f6e
Author: Jim Jagielski <[email protected]>
AuthorDate: Mon Nov 16 10:06:53 2026 -0500

    sc, oox: read IFERROR from xlsx and xls and write it to xls
---
 main/oox/source/xls/formulabase.cxx       | 2 +-
 main/sc/source/filter/excel/xlformula.cxx | 2 ++
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/main/oox/source/xls/formulabase.cxx 
b/main/oox/source/xls/formulabase.cxx
index 6224fa86ce..9c7e041598 100644
--- a/main/oox/source/xls/formulabase.cxx
+++ b/main/oox/source/xls/formulabase.cxx
@@ -723,7 +723,7 @@ static const FunctionData saFuncTableOox[] =
     { 0,                        "CUBEKPIMEMBER",        477,    NOID,   3,  4, 
 V, { VR }, 0 },
     { 0,                        "CUBESET",              478,    NOID,   2,  5, 
 V, { VR, RX, VR }, 0 },
     { 0,                        "CUBESETCOUNT",         479,    NOID,   1,  1, 
 V, { VR }, 0 },
-    { 0,                        "IFERROR",              480,    NOID,   2,  2, 
 V, { VO, RO }, 0 },
+    { "IFERROR",                "IFERROR",              480,    NOID,   2,  2, 
 V, { VO, RO }, 0 },
     { "COUNTIFS",               "COUNTIFS",             481,    NOID,   2,  
MX, V, { RO, VR }, FUNCFLAG_MACROCALL | FUNCFLAG_PARAMPAIRS },
     { "SUMIFS",                 "SUMIFS",               482,    NOID,   3,  
MX, V, { RO, RO, VR }, FUNCFLAG_MACROCALL | FUNCFLAG_PARAMPAIRS },
     { "AVERAGEIF",              "AVERAGEIF",            483,    NOID,   2,  3, 
 V, { RO, VR, RO }, FUNCFLAG_MACROCALL },
diff --git a/main/sc/source/filter/excel/xlformula.cxx 
b/main/sc/source/filter/excel/xlformula.cxx
index f88c64079c..2ff4d7925b 100644
--- a/main/sc/source/filter/excel/xlformula.cxx
+++ b/main/sc/source/filter/excel/xlformula.cxx
@@ -376,6 +376,8 @@ static const XclFunctionInfo saFuncTable_Oox[] =
     { ocAverageIfs,         255,    4,  MX, V, { RO_E, RO, RO, VR }, 
EXC_FUNCFLAG_EXPORTONLY|EXC_FUNCFLAG_PARAMPAIRS, EXC_FUNCNAME( "AVERAGEIFS" ) },
     { ocIfna,               NOID,   2,  2,  V, { VR }, 
EXC_FUNCFLAG_IMPORTONLY, EXC_FUNCNAME( "IFNA" ) },
     { ocIfna,               255,    3,  3,  V, { RO_E, VO, RO }, 
EXC_FUNCFLAG_EXPORTONLY, EXC_FUNCNAME( "IFNA" ) },
+    { ocIfError,            NOID,   2,  2,  V, { VR }, 
EXC_FUNCFLAG_IMPORTONLY, EXC_FUNCNAME( "IFERROR" ) },
+    { ocIfError,            255,    3,  3,  V, { RO_E, VO, RO }, 
EXC_FUNCFLAG_EXPORTONLY, EXC_FUNCNAME( "IFERROR" ) },
     { ocSkewP,              NOID,   1,  MX, V, { VR }, 
EXC_FUNCFLAG_IMPORTONLY, EXC_FUNCNAME( "SKEW.P" ) },
     { ocSkewP,              255,    2,  MX, V, { RO_E, RO }, 
EXC_FUNCFLAG_EXPORTONLY, EXC_FUNCNAME( "SKEW.P" ) },
     { ocBitAnd,             NOID,   2,  2,  V, { VR }, 
EXC_FUNCFLAG_IMPORTONLY, EXC_FUNCNAME( "BITAND" ) },

Reply via email to