You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- [x] a bug report
- [ ] a feature request
- [ ] **not** a usage question (ask them on https://stackoverflow.com/questions/tagged/phpspreadsheet or https://gitter.im/PHPOffice/PhpSpreadsheet)
What is the expected behavior?
See "current behavior" section below.
What is the current behavior?
PR #3673 solved some problems with relative addressing in Defined Names. As part of the investigation surrounding that PR, I identified some cases which are still not handled correctly; I proceeded with the PR knowing of these problems because it was an improvement on what was available before and I was unfortunately not able to gain any traction on the problems. This issue deals with the use of the INDIRECT function. The following code is common to all of the examples below.
The calculated Value in B6 is 1640, not the expected 1500. The errant result appears to be SUM(A1:B5) (rather than B1:B5), with A5 incorrectly evaluated as 40 (see above).
Finally, here's a problem that seems related, but with an entirely different symptom - it seems to put the calculation engine in a loop. See ReferenceHelper3Test.
This is:
What is the expected behavior?
See "current behavior" section below.
What is the current behavior?
PR #3673 solved some problems with relative addressing in Defined Names. As part of the investigation surrounding that PR, I identified some cases which are still not handled correctly; I proceeded with the PR knowing of these problems because it was an improvement on what was available before and I was unfortunately not able to gain any traction on the problems. This issue deals with the use of the INDIRECT function. The following code is common to all of the examples below.
First of all, here's something that works:
The calculated value in A6 is 1500, as it should be.
Here's some similar code that does not work.
The calculated value in A6 is 40, not 100. It seems to use only the cell above when evaluating SumAbove, not the entire column.
Here's some code that fails differently (reversing columns A and B from the prior examples).
The calculated Value in B6 is 1640, not the expected 1500. The errant result appears to be SUM(A1:B5) (rather than B1:B5), with A5 incorrectly evaluated as 40 (see above).
Finally, here's a problem that seems related, but with an entirely different symptom - it seems to put the calculation engine in a loop. See ReferenceHelper3Test.
Note that there is no problem getting the calculated value for C3.
What are the steps to reproduce?
See "current behavior" section above.
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:
What features do you think are causing the issue
Does an issue affect all spreadsheet file formats? If not, which formats are affected?
It definitely affects Xlsx. I would be surprised if all other formats were not similarly affected.
Which versions of PhpSpreadsheet and PHP are affected?
All.
The text was updated successfully, but these errors were encountered: