Bug 68720 - FORMATTING: The cells in a column from csv-import that contain the currency symbol is not properly formatted as currency
Summary: FORMATTING: The cells in a column from csv-import that contain the currency s...
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Calc (show other bugs)
Version:
(earliest affected)
Inherited From OOo
Hardware: Other All
: medium minor
Assignee: Not Assigned
URL:
Whiteboard: BSA
Keywords:
Depends on:
Blocks: CSV-Import
  Show dependency treegraph
 
Reported: 2013-08-29 18:03 UTC by Marco Borra
Modified: 2019-12-06 01:00 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments
Sample CSV file to reproduce bug (157 bytes, text/csv)
2013-08-29 18:06 UTC, Marco Borra
Details
bug Screenshot (107.35 KB, image/png)
2013-08-29 18:07 UTC, Marco Borra
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Marco Borra 2013-08-29 18:03:50 UTC
Problem description:
The cells in a column that contain the currency symbol is not properly formatted as currency type. 

Steps to reproduce:
1. Have a proper CSV file (view attachment). As example:

///// CSV FILE BEGIN /////
A;B;C;
;€ 10;;
;€ 10;;
;€ 10;;
///// CSV FILE END /////

2. Import CSV file in Calc, then select column: B. Format as: currency.
3. Jump to end of selected range, then insert SUM() function.
4. You get 0 instead of realvalue, because the content of the cells is treated as text.

Current behavior:

Expected behavior:

              
Operating System: All
Version: 4.2.0.0.alpha0+ Master
Comment 1 Marco Borra 2013-08-29 18:06:55 UTC
Created attachment 84875 [details]
Sample CSV file to reproduce bug
Comment 2 Marco Borra 2013-08-29 18:07:45 UTC
Created attachment 84876 [details]
bug Screenshot
Comment 3 m.a.riosv 2013-08-30 14:30:53 UTC
Hi Marco, thanks for reporting.

Reproducible with:
Win7x64Ultimate
Version: 4.1.1.0.0+ Build ID: c1f0f890f5065f88164add33707228f8c6d5755
Version: 4.2.0.0.alpha0+ Build ID: 9a1aca007fd06f3f8223ee02a79e44099d778b51

Detect spacial numbers or change default currency to another eur, don't affect the issue.

In 4.0.5 at least import as number although do not preserve the currency format.

Changed version to 4.1
Changed status to NEW
Comment 4 QA Administrators 2015-04-01 14:42:48 UTC Comment hidden (obsolete)
Comment 5 Buovjaga 2015-04-24 17:46:45 UTC
Reproduced.

Win 7 Pro 64-bit Version: 5.0.0.0.alpha1+ (x64)
Build ID: f3375fa07f27bd2ade519af3c07d69040d10eaa9
TinderBox: Win-x86_64@42, Branch:master, Time: 2015-04-22_23:38:50
Locale: fi_FI

Ubuntu 15.04 64-bit 
OpenOffice.org 3.3.0
OOO330m20 (Build:9567)
Comment 6 Cor Nouws 2015-11-02 13:09:29 UTC
(In reply to m.a.riosv from comment #3)

> Detect spacial numbers or change default currency to another eur, don't
> affect the issue.
> 
> In 4.0.5 at least import as number although do not preserve the currency
> format.

Indeed with "Detect special numbers" checked, you get normal numbers. In 3.3.4 too, so I guess it's always been like this.

Work around work flow: import with "Detect special numbers" checked, and apply formatting later on.
Comment 7 QA Administrators 2016-11-08 12:00:10 UTC Comment hidden (obsolete)
Comment 8 QA Administrators 2019-12-03 14:12:06 UTC Comment hidden (obsolete)
Comment 9 m.a.riosv 2019-12-06 01:00:27 UTC
Still
Version: 6.5.0.0.alpha0+ (x64)
Build ID: 60e8941fd581bb06cbf6be62edb8c387e7c07812
CPU threads: 4; OS: Windows 10.0 Build 19035; UI render: default; VCL: win; 
Locale: es-ES (es_ES); UI-Language: en-US
Calc: CL