Maintaining the cells currency format during the export to an Excel file. #2886
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
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: sheetjs/sheetjs#2886
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?
I have this code that exports my table to an Excel file:
In my table, I have cells with this value:
$887,112.00
So I can export the currency as an actual number on the Excel file, but lost the currency sign. How would I set the maintain currency format in the export without tweaking any of the table cell's attributes?
If you can't tweak, you can read with
raw: true
and try to parse the individual text entries. We will investigate more robust value parsing.If you can tweak, https://docs.sheetjs.com/docs/api/utilities#value-override
For your example: