https://bugs.documentfoundation.org/show_bug.cgi?id=173669
--- Comment #7 from Lars Jødal <[email protected]> --- New test with with current master version (file dated 2026-11-19). System locale is Danish (da-DK), LO userface is English (USA) (en-US). In line with comment 3 (but there it drowned in text), I find that most exports works fine, but inline version of functions are not localized properly in the export to XLSX. Version: 27.2.0.0.alpha1+ (X86_64) Build ID: ebd3c8dae9a8635c43e1f932d443db53a4e117ca CPU threads: 20; OS: Windows 11 X86_64 (build 26300); UI render: Skia/Raster; VCL: win Locale: da-DK (da_DK); UI: en-US Calc: CL threaded Using attachment 208672. File is opened in LO, saved as XLSX (Excel 2010-365 Spreadsheet), and opened in MS Excel 365, desktop version, Danish locale. Example 1: BYROW in E2:E13 versus F2:F13 Area E2:E13 contains an example with BYROW, where the MAX function is spelled out: =BYROW(A2:C13;LAMBDA(elev;MAX(elev))) This exports correctly, including localizion. "MAX" in Danish locale is "MAKS", while "BYROW" has not been translated in Excel, and the Greek letter lambda has the same the same name. Copied from the file opened in Excel on a Danish system: =BYROW(A2:C13;LAMBDA(elev;MAKS(elev))) I.e., "MAX" has been localized to "MAKS" ("BYROW" and "LAMBDA" have also been localized, there is just no change). Area F2:F13 contains a similar formula, but the MAX function is inline: =BYROW(A2:C13;MAX) This exports without the inline function (MAX) being localized: =BYROW(A2:C13;MAX) This fails with a #VALUE! error (written !VÆRDI! in the Danish locale), because the valid BYROW function cannot calculate a value using an invalid function. I have tested that this is the problem by manually changing MAX -> MAKS in the matrix formula in the Excel file: =BYROW(A2:C13;MAKS) This indeed works, and F2:F13 produces the same data as E2:E13. Example 2: BYCOL in A16:C16 versus A17:C17 The example is similar to example 1, just with other functions. Area A16:C16 contains the formula with the AVERAGE function spelled out: =BYCOL(A2:C13;LAMBDA(fag;AVERAGE(fag))) This exports correctly. In the Danish locale, "AVERAGE" is "MIDDEL" (while Excel uses BYCOL also in Danish), and this indeed what the Excel opens in Danish locale: =BYCOL(A2:C13;LAMBDA(fag;MIDDEL(fag))) Area A17:C17 contains a corresponding formula with AVERAGE as inline formula: =BYCOL(A2:C13;AVERAGE) In the exported XLSX file, "AVERAGE" is not localized, and the result is a series of !VALUE! errors. If I do manual localization, AVERAGE -> MIDDEL, in the Excel file, =BYCOL(A2:C13;MIDDEL) then the results in A17:C17 are correctly calculated. Finally, the export of the ISOMITTED example in A47 looks strange. This is not about locale, but since I have Excel only in Danish locale, I need to involve locale a bit. Original formula from Calc (locale en-US): =LAMBDA(_n1; _n2; IF(ISOMITTED(_n2); "Missing second parameter"; _n1/_n2)) Exported formula opened in Excel (locale da-DK) =LAMBDA(_n1;_n2; HVIS(ISOMITTED(_n2); "Missing second parameter";@ _n1/@_n2)) The change IF -> HVIS is correct localization. The strange bit: I am unsure if the @'s in the Excel version are correct or not? Second, is the space in "@ _n1" on purpose? As I understand things, Excel cannot handle a cell containing a function (a λ-function in Calc 27.2), so in Excel, A47 fails whatever I do to it. And A48 uses A47 and therefore also fails. This part of the report is therefore only the questions about @ and the space in "@ _n1". In summary: Inline functions are not localized in XLSX export (F2:F13 and A17:C17 in the test file). Unsure: Is the export of A47 correct? A test needs to use Excel in a locale where the localization of the inline function (MAX and/or AVERAGE in the test file) differs from the en-US localization. -- You are receiving this mail because: You are the assignee for the bug.
