Bug 91038 - Importing xls with cell format on money, after changing page layout and saving, formating is changed do decimal values
Summary: Importing xls with cell format on money, after changing page layout and savin...
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Calc (show other bugs)
Version:
(earliest affected)
4.4.2.2 release
Hardware: x86 (IA32) Windows (All)
: medium major
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: filter:xls
Depends on:
Blocks: Number-Format XLS
  Show dependency treegraph
 
Reported: 2015-05-03 08:34 UTC by Andre Santos
Modified: 2025-06-03 13:33 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
Original File (5.50 KB, application/vnd.ms-excel)
2015-05-04 08:27 UTC, Andre Santos
Details
The same file after changes made on calc (6.50 KB, application/vnd.ms-excel)
2015-05-04 08:29 UTC, Andre Santos
Details
test file xlsx (10.60 KB, application/vnd.openxmlformats-officedocument.spreadsheetml)
2015-05-07 05:38 UTC, raal
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Andre Santos 2015-05-03 08:34:16 UTC
openining an excel file (2007/xls), only changing the page format to landscape, after saving it (never touching any cells), if the file is openned in excel, the cell's with "money" format, are totally wrong!

Ex: a value of  37,01$ will change to 0,037

If we set the "money" format again (in calc), then it saves the file correctly.

This works fine in version 4.2

Tested on version 4.4.2 and 4.4.3.1 with the same problem.

Tested on windows Vista, 2003 server and 8.
Comment 1 raal 2015-05-03 19:11:41 UTC
Hello Andre,

Thank you for reporting the bug. Please attach a sample document, as this makes it easier for us to verify the bug. 
I have set the bug's status to 'NEEDINFO'. Please change it back to 'UNCONFIRMED' once the requested document is provided.
(Please note that the attachment will be public, remove any sensitive information before attaching it. 
See https://wiki.documentfoundation.org/QA/FAQ#How_can_I_eliminate_confidential_data_from_a_sample_document.3F for help on how to do so.)
Comment 2 Andre Santos 2015-05-04 08:27:11 UTC
Created attachment 115299 [details]
Original File

This is the "no changes file", right from excel.
The cell that will have the problem is H2
Comment 3 Andre Santos 2015-05-04 08:29:35 UTC
Created attachment 115300 [details]
The same file after changes made on calc

the only change is the page from portrait to landscape
Comment 4 Andre Santos 2015-05-04 08:30:31 UTC
Files attached!
Comment 5 raal 2015-05-07 05:38:41 UTC
Created attachment 115399 [details]
test file xlsx

Format of cell is: # ##0,00\ "€";-# ##0,00\ "€"

I can confirm with LO 4.4.2, win7

After save is format of cell changed.
Comment 6 Andre Santos 2015-07-01 08:50:14 UTC
Tested on version 5.0, still with the same problem.
Comment 7 QA Administrators 2016-09-20 10:14:14 UTC Comment hidden (obsolete)
Comment 8 Laurent Balland 2019-03-24 19:44:52 UTC
I can reproduce only if thousand separator is space (fr-FR) and not with other thousand separator (en-US)
Comment 9 QA Administrators 2021-03-24 05:55:37 UTC Comment hidden (obsolete)
Comment 10 QA Administrators 2023-03-25 03:24:11 UTC Comment hidden (obsolete)
Comment 11 QA Administrators 2025-03-25 03:13:13 UTC Comment hidden (obsolete)
Comment 12 Laurent Balland 2025-06-03 13:33:48 UTC
I do reproduce with Version: 25.2.3.2 (X86_64) / LibreOffice Community
Build ID: bbb074479178df812d175f709636b368952c2ce3
CPU threads: 8; OS: Windows 10 X86_64 (10.0 build 19045); UI render: Skia/Vulkan; VCL: win
Locale: fr-FR (fr_FR); UI: fr-FR
Calc: CL threaded

White space before money symbol is treated like a thousand separator. It should be exported with double quotes if space is a thousand separator. May be treated here : SvNumberFormatter::GetFormatStringForExcel(
https://opengrok.libreoffice.org/xref/core/svl/source/numbers/zforlist.cxx?r=234cb2da3598837a60572dc8475bcb7d9503335f&mo=37240&fi=971#971