-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Error retrieving formula result #1622
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
Comments
So what is the formula in cell K30? What is the value that you are getting when you call |
Hello, thank you for your response, im going to attach the file DEMOXLSX.xlsx, the formula is like follow: =SI(O(B30>1;B30=1);REDONDEAR(I30*(POTENCIA((1+$X$18/100);$U$17));0);"") on the excel the result is 42 but in phpspreadsheet getCalculatedValue() return 13 |
Hello, thank you for your response, im going to attach the file DEMOXLSX.xlsx, the formula is like follow: =SI(O(B30>1;B30=1);REDONDEAR(I30*(POTENCIA((1+$X$18/100);$U$17));0);"") on the excel the result is 42 but in phpspreadsheet getCalculatedValue() return 13 |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. |
Confirming - this is still a problem. |
Investigating issue PHPOffice#1622, I found that its extremely complicated formula, which had been leading to an incorrect result, now led to an exception. I am able to fix the exception; unfortunately, I am no closer to resolving the original issue. So I'll apply the baby step while continuing to investigate. Function POWER had changed from untyped args to a defined set of types. The set of types was determined according to the doc block, but that was incomplete - it had neglected to include `null` and `bool`. This PR corrects the function prototype and the doc block, and adds the missing tests for those conditions.
Uh oh!
There was an error while loading. Please reload this page.
This is:
What is the expected behavior?
Im reading a xlsx file column, this column contain a formula if y use getCalculatedValue() y wamt to receive the same value the spreadsheet has.
What is the current behavior?
i receive a different value
What are the steps to reproduce?
read the file with PhpSpreadsheet and get the cell K30 from the first sheet with the function getCalculatedValue()
Please provide a Minimal, Complete, and Verifiable example of code that exhibits the issue without relying on an external Excel file or a web server:
The text was updated successfully, but these errors were encountered: