Bug 100130 - EDITING: Paste "numbers" are sometimes characters, sum wrong, and resist being changed to numbers
Summary: EDITING: Paste "numbers" are sometimes characters, sum wrong, and resist bei...
Status: RESOLVED WORKSFORME
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Calc (show other bugs)
Version:
(earliest affected)
4.4.0.2 rc
Hardware: All macOS (All)
: medium minor
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-05-30 03:08 UTC by Spencer Graves
Modified: 2017-11-10 21:37 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
numbers paste as characters and do not "sum", giving wrong answers without warning (19.12 KB, application/vnd.oasis.opendocument.spreadsheet)
2016-05-30 03:08 UTC, Spencer Graves
Details
LO Calc file showing problems pasting a table from the web (21.60 KB, application/vnd.oasis.opendocument.spreadsheet)
2016-05-31 15:36 UTC, Spencer Graves
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Spencer Graves 2016-05-30 03:08:01 UTC
Created attachment 125382 [details]
numbers paste as characters and do not "sum", giving wrong answers without warning

On 2016-05-08, I posted a problem with copy of numbers that were pasted as characters and resisted being changed to numbers.  I was unable to replicate it.  Now I can;  see the attached:  Go to "www.victorianweb.org/economics/wages2.html", and copy the “Cost of Living for a senior clerk (1844)”.  Then try to paste it into Calc.  I could not get it to work properly.  LO 5.1.2.2. looked like it worked write but gave the wrong answer using sum.  LO 5.1.3.2 would not paste properly for me.  Documented in two sheets in the attached.
Comment 1 Spencer Graves 2016-05-30 03:11:06 UTC
Trying to copy the “Cost of Living for a senior clerk (1844)”
http://www.victorianweb.org/economics/wages2.html
using LO 5.1.2.2 and 5.1.3.2 on Mac OS X 10.11.5.  I had a similar problem 2016-05-08, which I confirmed with 4.4.0.2 as well as 5.0.2.2.  At that time, I could not replicate it.  Now I think I can;  see the attached.  Thanks, Spencer Graves
Comment 2 raal 2016-05-30 04:14:30 UTC
I can not confirm with Version: 5.2.0.0.alpha1+
Build ID: fa9416906e615f5f19ad8524176d2ed693662769
CPU Threads: 4; OS Version: Linux 4.4; UI Render: default; 
TinderBox: Linux-rpm_deb-x86_64@70-TDF, Branch:master, Time: 2016-05-24_00:05:55
Comment 3 Buovjaga 2016-05-31 13:34:43 UTC
Spencer: raal's result is interesting, can you confirm the problem is not in 5.2/5.3? http://dev-builds.libreoffice.org/daily/master/MacOSX-x86_64@49-TDF/current/
Comment 4 Spencer Graves 2016-05-31 15:36:09 UTC
Created attachment 125420 [details]
LO Calc file showing problems pasting a table from the web
Comment 5 Buovjaga 2016-06-02 13:48:45 UTC
No problem here. It is pasted in two columns.
I noticed you had written about your experiences with 5.2 and 5.3 inside the document.

Version: 5.1.3.2
Build ID: 644e4637d1d8544fd9f56425bd6cec110e49301b
CPU Threads: 4; OS Version: Mac OS X 10.11.5; UI Render: default; 
Locale: en-US (en.UTF-8)
Comment 6 Spencer Graves 2016-06-02 14:11:43 UTC
Sorry:  My description was incomplete:  After you get it in two columns, split the second column into pounds, shillings and pence using Data -> "Text to columns" -> Separated by other = "/".  

Note that some of the "numbers" are right adjusted, some left.  Now "sum" the pounds column":  In LO5.1.2.2, cell B34 contains "=SUM(B14:B33)".  That sum in my version is 99, which is the sum of the numbers that display right adjusted.  The numbers that display left adjusted are apparently recognized as characters, not numbers, and so do not enter into the sum.  "+" gives a different answer:  Cell E17 contains "=E16+B17":  E16 contains a number.  B17 contains two characters that look like a number.  "+" adds them as numbers.   "=SUM(B14:B33)" treats B17 as character and does NOT include it in the sum.  

Thanks, Spencer Graves
Comment 7 Spencer Graves 2016-06-02 14:13:02 UTC
I tried to change B17 from characters to numbers but could not figure out how to do it.  

Thanks again, Spencer Graves
Comment 8 Buovjaga 2016-06-06 16:59:11 UTC
I could reproduce the text to columns result on OS X, but not on Linux!

eVrsion: 5.3.0.0.alpha0+
Build ID: b2f994469f3e2f1fe72e9f103b840aa949ace6dd
CPU Threads: 4; OS Version: Mac OS X 10.11.5; UI Render: default; 
TinderBox: MacOSX-x86_64@49-TDF, Branch:master, Time: 2016-05-25_23:36:03
Locale: en-US (en.UTF-8)
Comment 9 QA Administrators 2017-09-01 11:20:30 UTC Comment hidden (obsolete)
Comment 10 eisa01 2017-11-10 21:37:08 UTC
I'm not seeing any issue in the current version. I'm able to copy the table (as long as I don't select the merged cell), and split on the "/"

Note that LibreOffice first thinks some of these numbers are dates in my locale settings, but when I split them the still have the same value.

It is to be expected that you have issues like this though when pasting from the web.