mirror of
https://github.com/jmcnamara/libxlsxwriter.git
synced 2026-05-15 14:15:54 -06:00
[GH-ISSUE #334] Assign the result of a formula to a variable #270
Labels
No labels
awaiting user feedback
bug
cmake
cmake
docs
feature request
in progress
long term
medium term
medium term
pull-request
question
question
ready to close
short term
under investigation
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/libxlsxwriter#270
Loading…
Add table
Add a link
Reference in a new issue
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?
Originally created by @sapomuyverde on GitHub (May 20, 2021).
Original GitHub issue: https://github.com/jmcnamara/libxlsxwriter/issues/334
Originally assigned to: @jmcnamara on GitHub.
It is possible to assign the result of a formula to a variable and then use that variable, for example: I do something like this:
worksheet_write_formula(worksheet, lin, 8, "=SUM(I5:I10), numberRightTotal) --> (total sales, to say)
Then make use of the "variable", without repeating the formula, something like this:
worksheet_write_number(worksheet, lin+10, 8, total sales, numberRight )
Any idea how to solve in this way.
Regards,
Javier
@jmcnamara commented on GitHub (May 20, 2021):
Unfortunately that isn't possible. Libxlsxwriter doesn't evaluate the formula in any way so there isn't any results to return/store.
@sapomuyverde commented on GitHub (May 21, 2021):
Thank you for your answer and for your time.