Bug 118097 - Wrong Cell Format from Text to Numeric with special format
Summary: Wrong Cell Format from Text to Numeric with special format
Status: RESOLVED NOTABUG
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Calc (show other bugs)
Version:
(earliest affected)
6.0.4.2 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-06-10 12:13 UTC by kszosze
Modified: 2018-06-10 22:09 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description kszosze 2018-06-10 12:13:13 UTC
Description:
I'm working with csv files that format negative numbers with parenthesis. Libreoffice support that format also appear in the cell format menu. If I open the file and choose special numbers option all works as expected, and those cells are formatted as number. But if the file is opened as text and formatted manually, choosing which cells are on this specific format a ' is added in front of the number. Ex 
Text cell with (467.56) => '(467.56) 
otherwise the expected is 
Text cell with (467.56) => -467.56

Steps to Reproduce:
1.Get a csv with negative numbers in between ()
2.Open the file with normal options. All cells will be considered text.
3.Manually format those cells as number with format (1234.12)


Actual Results:  
The negative cells will have the format '(#.##0,##0). Still considered Text cells. That's wrong.

Expected Results:
4.The negative cells will have the format -#.##0,##0. Treated as numbers


Reproducible: Always


User Profile Reset: Yes



Additional Info:
Format the cells as number and consider the content as negatives. Same behavior if I choose special numbers in the import screen.


User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:60.0) Gecko/20100101 Firefox/60.0
Comment 1 m_a_riosv 2018-06-10 22:09:15 UTC
Change the format never change the cell's content, so a text value it's not converted in a number changing the format.

I'm pretty sure it won't be changed in the future.

You can convert those columns to number with Menu/Data/Text to column.