Multiple '.' in a format should be treated as an escaped character #2584
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#2584
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?
If a format contains multiple '.', Excel treats it as if each '.' after the first one is escaped. For example (from valid.tsv):
Excel gives:
Excel 2019 behavior appears to be the following:
If there is a date token in the format (like
hh:mm:ss.000
),.0
.00
.000
are interpreted as sub-second values. All other.
are literal and bare0
tokens are invalid (UI does not allow andTEXT
returns a#VALUE!
error) The actual sub-second rendering depends on the longest sequence: with value12.3456789
, the text forh .0 .0
is10 .6 .6
while the text forh .0 .00
is10 .5 .57
If there is no date token, the first
.
is the decimal position and the subsequent.
are literal. The standard#
also applies:1234567.89
with format####.##.##.#####
is1234567.89..