| Summary: | average and sum defaults in status bar return a wrong number when the range include a date | ||
|---|---|---|---|
| Product: | LibreOffice | Reporter: | pajaro |
| Component: | Calc | Assignee: | Not Assigned <libreoffice-bugs> |
| Status: | RESOLVED NOTABUG | ||
| Severity: | minor | CC: | ilmari.lauhakangas, miguelangelrv |
| Priority: | medium | ||
| Version: | 5.2.5.1 release | ||
| Hardware: | x86-64 (AMD64) | ||
| OS: | Linux (All) | ||
| Whiteboard: | |||
| Crash report or crash signature: | Regression By: | ||
|
Description
pajaro
2017-03-24 13:53:31 UTC
Because dates are numbers in the cells, and only the format makes they showed as dates. SUM doesn't take care of text even if it looks as number. Yep, it's not a bug (double-checked with Eike). Closing. Well, the bug is not about the sum not doing what its supposed to do, but about the status bar not showing a useful default value... Which is what that space in the status bar is designed to do It should show a useful default calculation. Like the sum of 2 dates, or difference in days of 2 dates or something. Something different to the default sum it does with numbers Be free to disagree, but despite being a number internally, the user has decided that cell is a date and calc could detect the user decision and do something useful Calc just decided to show garbage (useless calculation) instead of something useful This is not a bug in the code, but a bug in usability and ui Dates are internally time since epoch, so sum of dates does not make sense https://en.wikipedia.org/wiki/Unix_time >> Well, the bug is not about the sum not doing what its supposed to do, but >> about the status bar not showing a useful default value... >Dates are internally time since epoch, so sum of dates does not make sense As I said, I know the sum of the internal representation of 2 dates is useless. It should be removed, instead of showing something useless :) But we could actually show something useful there, like the difference of min and max dates... which is useful - ex.1: 2017-04-10 2017-04-02 2017-04-01 Shows 10 days - ex.2: 10:30 11:41 Shows 1h10' And theres probably a few other useful calculations you can do with dates If you want to discard it because is too difficult to implement with the current way cells works, okay, but at least acknowledge you are understanding what I mean with all this, because every reply makes me feel Im not making my point across :) (In reply to pajaro from comment #5) > If you want to discard it because is too difficult to implement with the > current way cells works, okay, but at least acknowledge you are > understanding what I mean with all this, because every reply makes me feel > Im not making my point across :) I understand what you mean. I am just relaying answers from experienced Calc developers. The last one was from Kohei. Okay, so I did get my point across but Kohei does not think is useful enough Now im at rest with this bug :) Okay, so I did get my point across but Kohei does not think is useful enough Now im at rest with this bug :) Thanks for relaying the messages! |