Hi there,
I’m struggling with the issue as per $subj. When saving the file as .ods the cell format is preserved including the language definition (both selecting the language from drop down list and explicit declaration seem to work fine). But once the file is exported as .xls or .xlsx (I need to send it to someone else who uses MSO) this is gone.
Is this a limitation of .xls(x) format itself or possible compatibility issue?
When using the same explicit format with TEXT() function it works flawlessly.
Steps to reproduce:
- Let’s say A1 contains number 51196.5242592593 and B1 contains formula ‘=A1’.
- Now format A1 cell using ‘[$-1809]MMMM YYYY;@’ format definition and B1 using ‘[$-83c]MMMM YYYY;@’.
- You should get ‘March 2020’ in A1 and ‘Márta 2020’ in B1.
- Now set A2 to formula ‘=TEXT(A1;"[$-1809]MMMM YYYY;@")’ and B2 to ‘=TEXT(B1;"[$-83c]MMMM YYYY;@")’
- You should get the same line.
- Save as .ods
- Save as .xls (or .xlsx)
- Close file or exit LO
- Open the .ods file - you should see the same as before
- Open the .xls file - the formatting is lost and reset to system default language in line 1.
Attaching another example .ods file (just export as .xls and reopen to trigger the issue) - lcid_xls.ods
I don’t have access to MS Excel myself so can’t really confirm whether the issue happens during export or import.
Confirmed in these LO versions:
# Kubuntu 16.04 Xenial
libreoffice-calc 1:5.1.6~rc2-0ubuntu1~xenial10 amd64
# KDE Neon (based on 18.04)
libreoffice-calc 1:6.0.7-0ubuntu0.18.04.10 amd64
Thanks everyone!
PJ.