Suggested solution for automatically calculating formulas #306
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#306
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
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 would like to add some formulas to my generated spreadsheet, like
SUM(B4:B34)
, however it does not work as one would expect. When opened in a spreadsheet application the value is not calculated automatically, and is shown as empty or whatever was put into thev
-value.However, when looking into the problem of recalculating formulas I found and article on http://stackoverflow.com/questions/18355691/set-xlsx-to-recalculate-formulae-on-open, which suggests simply adding a tag
<calcPr fullCalcOnLoad="1"/>
would resolve the whole issue when opening the document in MS Office, OpenOffice, Google spreadsheet etc.Anyone who understands the inner workings of js-xlsx might be able to test this. This might be an significantly easier way of solving the issue discussed #105, and maybe some other issues around formulas as well.
you might want to look at this issue
https://github.com/SheetJS/js-xlsx/issues/152#issuecomment-145090110
There is a fork that has added support for formulas.
Thanks @mdumouchel! I do, however, believe that #152 does not solve the issue at hand. My issue being that when I have generated a spreadsheet with formulas the resulting values are not calculated when opened in editor of choice. The formulas are present, but not calculated.
Would you mind posting some sample code of the problem?
We updated the write test with an example