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?
Each row with the same structured reference formula should calculate the correct result for that row.
What is the current behavior?
Each row duplicates the result from the first calculated row.
If this is an issue with reading a specific spreadsheet file, then it may be appropriate to provide a sample file that demonstrates the problem; but please keep it as small as possible, and sanitize any confidential information before uploading.
### What features do you think are causing the issue
- [ ] Reader
- [ ] Writer
- [ ] Styles
- [ ] Data Validations
- [X] Formula Calculations
- [ ] Charts
- [ ] AutoFilter
- [ ] Form Elements
### Does an issue affect all spreadsheet file formats? If not, which formats are affected?
N/A
### Which versions of PhpSpreadsheet and PHP are affected?
The text was updated successfully, but these errors were encountered:
I suspect that this may be a calculation cache issue; but need to test further
Confirmed!!! Calculation is checking the cache and finding a match based on the Structured Reference (Worksheet!Sales_Data[[#This Row],[Q1]:[Q4]]), not on the evaluated Structured Reference.
[0] => Testing cache value for cell Worksheet!G3
[1] => Evaluating formula for cell Worksheet!G3
[2] => Formula for cell Worksheet!G3 is SUM(Sales_Data[[#This Row],[Q1]:[Q4]])
[3] => Worksheet!G3 => Evaluating Structured Reference Sales_Data[[#This Row],[Q1]:[Q4]] as Cell Range C3:F3
[4] => Worksheet!G3 => Testing cache value for cell Worksheet!Sales_Data[[#This Row],[Q1]:[Q4]]
[5] => Worksheet!G3 => Retrieving value for cell Worksheet!Sales_Data[[#This Row],[Q1]:[Q4]] from cache
[6] => Worksheet!G3 => Evaluated Structured Reference Sales_Data[[#This Row],[Q1]:[Q4]] as value { 380, 390, 420, 460 }
[7] => Worksheet!G3 => Evaluating Function SUM() with 1 argument
[8] => Worksheet!G3 => Evaluating SUM ( { 380, 390, 420, 460 } )
[9] => Worksheet!G3 => Evaluation Result for SUM() function call is an integer number with a value of 1650
This is:
What is the expected behavior?
Each row with the same structured reference formula should calculate the correct result for that row.
What is the current behavior?
Each row duplicates the result from the first calculated row.
Add Table to Worksheet
Calculate Structured References
Note that the result for the first calculated row (Belgium 2010) is calculated correctly; but all subsequent calculations use display the same result
What are the steps to reproduce?
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:
See
Samples/Table/03_Column_Formula.php
The text was updated successfully, but these errors were encountered: