-
-
Notifications
You must be signed in to change notification settings - Fork 305
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Function processing in XLSX #692
base: master
Are you sure you want to change the base?
Conversation
var cell = worksheet[cellName]; | ||
if (utils.hasContent(cell.v)) { | ||
if(cell.v[0] == '=') { | ||
cell.f = cell.v.toString().substring(1) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If the "=" is removed, it will not get into the final Excel file. Then opening will not get it as a formula.
Did this work for you?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like it is not supported to write formula in XLS format at all :(
https://docs.sheetjs.com/docs/csf/features/formulae/
Added processing for all data:
if (cell value starts with '=')
remove cell value
instead set function as value.substring(1)
also added example.
Have not checked XLS - it may not work