Repository navigation
Don't Iterate Cell Ranges on Non-existent Sheets - #5035
Conversation
Fix PHPOffice#5032. When evaluating formulas, stop iterating a cell range when the sheet on which the range is located does not exist. While testing, discovered some commented-out tests in `ParseFormulaTest`, having nothing to do with this change, that could now be commented back in.
|
I tried a bounded range with this fix. With 1, 2, 42 in C1:C3 of the sheet that holds the formulas:
So a whole column or row on a missing sheet gives |
|
@dkulyk Thank you for the feedback. I will see what I can do. |
@dkulyk noticed a case which wasn't handled properly. I believe the fix works for everything ... except `COLUMNS` and `ROWS`, where Excel seems to ignore the sheet, and I just can't figure out how to do it.
|
@dkulyk Please give the latest push a shot. As the commit message makes clear, I think this works for almost everything, except for |
|
I checked the bounded ranges from my table. Looks good to me. On |
Fix #5032. When evaluating formulas, stop iterating a cell range when the sheet on which the range is located does not exist.
While testing, discovered some commented-out tests in
ParseFormulaTest, having nothing to do with this change, that could now be commented back in.This is:
Checklist: