Error on format #,##.??;(#,##.??);0 #2551
Labels
No Label
DBF
Dates
Defined Names
Features
Formula
HTML
Images
Infrastructure
Integration
International
ODS
Operations
Performance
PivotTables
Pro
Protection
Read Bug
SSF
SYLK
Style
Write Bug
good first issue
No Milestone
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: sheetjs/sheetjs#2551
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Seems to work in OpenOffice
From: http://superuser.com/a/205763
@wilg there are actually two issues here.
#,###.??;(#,###.??);0
(this may very well be locale-specific). That type of massaging is currently not implemented, mostly because I haven't really stress tested the formats.I will raise a different issue to continue this discussion.
#,###.??
is not considered valid. That's clearly a bug. There are two reasons why the parser bails:A) There is no required character (like
0
or?
) to the left of the decimal point. Based on my initial interpretation of the grammar in [MS-XLS] 2.4.126 the format#,###.
by itself is not valid (irrespective of the suffix). Excel clearly allows it, which means we should support it.B) The
?
after the decimal place is handled differently in different versions of Excel. Consider the value0
with format#.0?0?#?#?#?#
(why someone would do this is beyond me, but it's instructive for understanding what's happening internally). Excel 2011 renders this as.0 0
, Excel '95 and LO render this as.0 0 0 0 0
The fix for (A) is straightforward, but (B) requires a decision to be made. Probably the best solution is to have applications specify a version of Excel (the files themselves store that information, so there's no real guessing involved)