Bug 165982 - text to calc: Excel still 100 times faster and more accurate than calc
Summary: text to calc: Excel still 100 times faster and more accurate than calc
Status: RESOLVED NOTABUG
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Calc (show other bugs)
Version:
(earliest affected)
25.2.2.2 release
Hardware: x86-64 (AMD64) Windows (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-03-31 09:35 UTC by grac
Modified: 2025-04-01 09:04 UTC (History)
0 users

See Also:
Crash report or crash signature:


Attachments
anonymised csv-file, export from a database (1.49 KB, application/vnd.ms-excel)
2025-04-01 06:38 UTC, grac
Details
A screencast (1.11 MB, image/gif)
2025-04-01 07:58 UTC, Mike Kaganski
Details
LibreOffice: text, not date (38.03 KB, image/png)
2025-04-01 08:12 UTC, grac
Details
Libreoffice: import csv (60.34 KB, image/png)
2025-04-01 08:23 UTC, grac
Details
Libreoffice: still wrong sorting (30.11 KB, image/png)
2025-04-01 08:51 UTC, grac
Details

Note You need to log in before you can comment on or make changes to this bug.
Description grac 2025-03-31 09:35:34 UTC
I had to export old tables, I did it with csv, of course.
But the correct change of dates to be "real dates" is still very cranky in Calc. 
A lot of changes are necessary while importing csv.
And still I don't get what I need: the real date format dd.mm.yyyy to do a sorting.
So I tried Excel (version 2007) - and everything worked instantly, precise and correct.
How many years more will Libreoffice Calc need to be as accurate and fast as Excel?
Just to be clear: I hate Microsoft Office, so this was just to find out if Excel was any better, in the version 2007, which is 17 years old ...
Comment 1 Mike Kaganski 2025-03-31 10:03:02 UTC
You have not provided anything to understand your issue.
1. What SCV data do you use?
2. What is your locale in LibreOffice (full Help->About)?
3. What settings do you set in the import dialog?
4. What are your expectations?
5. What are the actual problems you see?

It *seems* as if you rely on some automatic processing, that happens to work for you in Excel, but doesn't in Calc (so my *assumption* is, that you likely have not configured anything manually). Well, it is known that for *some* cases, that is the case; but for other cases (and there are lots of those, and people complain about them constantly), Excel's automatic settings are wrong - and then Calc does a better job *providing the import settings by default* - where in Excel, people have to do very unobvious actions to get the dialog.

There are pros and contras; and in general - your rant about "How many years more" is useless without anything that people can see, and *possibly* improve (if that's really something that can be improved *without* making other important workflows worse).
Comment 2 grac 2025-03-31 12:14:58 UTC
Well, the process was not as automatic as you think.
The csv converters: integrated in Libreoffice Calc / Excel.
in LibreOffice: UTF-8 didn't work because of the Umlaute (ä, ö, ü). So I had to change to "automatic", which was then put to "west european" (ISO-8859-1).
All my programs are on the same computer (Windows 11, language: Swiss-German with the respective date-time templates).
All columns were "standard", the two date columns I changed to Date (TMJ, nothing else to choose from like TT.MM.YYYY).
After converting the csv to a format which Calc could work with, I saw that the two date columns were nontheless text entries, with a leading apostroph.
In order to be able to sort by date I would have had to change every entry and delete teh leading apostroph. Which is no fun when you have large tables.

In contrast: Excel would recognise the date columns and would therefore be able to sort them.

So it's not a rant, but a complaint.
Comment 3 Mike Kaganski 2025-03-31 12:25:45 UTC
(In reply to grac from comment #2)
> Well, the process was not as automatic as you think.
> The csv converters: integrated in Libreoffice Calc / Excel.
> in LibreOffice: UTF-8 didn't work because of the Umlaute (ä, ö, ü). So I had
> to change to "automatic", which was then put to "west european" (ISO-8859-1).
> All my programs are on the same computer (Windows 11, language: Swiss-German
> with the respective date-time templates).
> All columns were "standard", the two date columns I changed to Date (TMJ,
> nothing else to choose from like TT.MM.YYYY).
> After converting the csv to a format which Calc could work with, I saw that
> the two date columns were nontheless text entries, with a leading apostroph.

Please provide the rest of the missing data: a sample file, the full data from Help->About. (The "TMJ" in the date columns is likely correct, *if* the data in the CSV is like TT.MM.YYYY.)
Comment 4 grac 2025-04-01 06:38:50 UTC
Created attachment 200119 [details]
anonymised csv-file, export from a database
Comment 5 grac 2025-04-01 06:40:48 UTC
Please find the anonymised csv-export, with two date rows.
And here my versions info of LibreOffice Calc:
Version: 25.2.0.3 (X86_64) / LibreOffice Community
Build ID: e1cf4a87eb02d755bce1a01209907ea5ddc8f069
CPU threads: 8; OS: Windows 11 X86_64 (10.0 build 26100); UI render: Skia/Raster; VCL: win
Locale: de-CH (de_CH); UI: de-DE
Calc: threaded
Comment 6 Mike Kaganski 2025-04-01 07:53:56 UTC
(In reply to grac from comment #5)

Thanks; and do you say that importing this CSV, and marking the two date *columns* as "DMY", does not import the date columns as true dates?
Comment 7 Mike Kaganski 2025-04-01 07:58:16 UTC
Created attachment 200120 [details]
A screencast
Comment 8 grac 2025-04-01 08:02:57 UTC
yes, this is what happened, whatever I did, the csv-conversion in LibreOffice did not import these two columns in date columns.
That's why I tried Excel.
Comment 9 Mike Kaganski 2025-04-01 08:10:29 UTC
(In reply to grac from comment #8)

Could you please send a screencast, as I did? Thanks.
Comment 10 grac 2025-04-01 08:12:38 UTC
Created attachment 200121 [details]
LibreOffice: text, not date
Comment 11 Mike Kaganski 2025-04-01 08:20:56 UTC
(In reply to grac from comment #10)

Thank you for the screenshot; could you please also send a screenshot of the text import dialog screenshot, with the settings that you use for the import? Thank you
Comment 12 grac 2025-04-01 08:23:51 UTC
Created attachment 200122 [details]
Libreoffice: import csv
Comment 13 Mike Kaganski 2025-04-01 08:36:46 UTC
(In reply to grac from comment #12)

Aha! You checked "Format quoted field as text" checkbox - which means, that in a CSV line like

> "XXXXX";"XXXXX";"12.04.2023";"10.04.2023";"CHF";"50.00";"XXXXX";"XXXXX";"";"XXXXX";"XXXXX";"XXXXXXXXXX"

the fields "12.04.2023" and "10.04.2023" are quoted -> they are treated as text, no matter how the column in general is configured.
Comment 14 grac 2025-04-01 08:40:37 UTC
Well, this is how it's exported from the external program called "Crealogix Paymaker".
So what would you do? Work on the csv before importing to LibreOffice?
In Excel I had nothing to do, it analysed it correctly as date, not text.
Comment 15 Mike Kaganski 2025-04-01 08:46:02 UTC
(In reply to grac from comment #14)

You just uncheck the mentioned checkbox.
Comment 16 grac 2025-04-01 08:51:47 UTC
Created attachment 200123 [details]
Libreoffice: still wrong sorting
Comment 17 grac 2025-04-01 08:53:51 UTC
Just what I did with the csv file: uncheck the respective checkbox.
And see, what happens: the order function is not recognising the year 2024 (middle of the screenshot)!
Still not what I want and need!
Comment 18 Mike Kaganski 2025-04-01 08:59:49 UTC
(In reply to grac from comment #17)
> And see, what happens: the order function is not recognising the year 2024
> (middle of the screenshot)!

I don't understand what do you mean. What actions you do, that don't work for you? Are you sorting the data? How?
Comment 19 grac 2025-04-01 09:04:24 UTC
ok, sorry.
Now the sorting of the "Termin" column works correctly.
So thanks for your help - case closed from my side.