-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
Xlsx::save throws exception when cell contains '=COUNTA(INDIRECT("A2:A" & ROWS(A:A)))' #3366
Open
1 of 8 tasks
Comments
p.s. detailed stack trace is:
|
There are days when I seriously hate everybody that ever worked at Microsoft. As a temporary workround, you can disable formula calculation before saving; while I try to decide if we actually want to fix this, and to allow formula to contain references to an invalid range. |
Thank you for your help. $writer->setPreCalculateFormulas(false)->save('out.xlsx'); |
8 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This is:
What is the expected behavior?
Xlsx::save does not throw exception when cell contains '=COUNTA(INDIRECT("A2:A" & ROWS(A:A)))'
What is the current behavior?
Xlsx::save throws exception when cell contains '=COUNTA(INDIRECT("A2:A" & ROWS(A:A)))':
What are the steps to reproduce?
test code: https://github.com/hikaen2/phpspreadsheet-test
in.xlsx:
run.php:
What features do you think are causing the issue
Does an issue affect all spreadsheet file formats? If not, which formats are affected?
only tested in .xlsx.
Which versions of PhpSpreadsheet and PHP are affected?
PhpSpreadsheet: 1.27.1
PHP: 8.1.2
The text was updated successfully, but these errors were encountered: