Skip to content

Xlsx Reader Use Dynamic Arrays if Spreadsheet Did So #4533

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

Merged
merged 3 commits into from
Jul 18, 2025

Conversation

oleibman
Copy link
Collaborator

By default, when an Xlsx spreadsheet is read, its calculation engine is set to RETURN_ARRAY_AS_VALUE for array formulas. The user does have the option to change this. However, the presence of certain metadata in the file indicates that it was saved as if RETURN_ARRAY_AS_ARRAY was in use. This PR tests for the metadata, and, if present, sets ...ARRAY rather than ...VALUE. This eliminates the need for any extra action on the user's part.

This is:

  • a bugfix
  • a new feature
  • refactoring
  • additional unit tests

Checklist:

oleibman added 3 commits July 10, 2025 18:11
By default, when an Xlsx spreadsheet is read, its calculation engine is set to `RETURN_ARRAY_AS_VALUE` for array formulas. The user does have the option to change this. However, the presence of certain metadata in the file indicates that it was saved as if `RETURN_ARRAY_AS_ARRAY` was in use. This PR tests for the metadata, and, if present, sets `...ARRAY` rather than `...VALUE`. This eliminates the need for any extra action on the user's part.
@oleibman oleibman enabled auto-merge July 18, 2025 04:31
@oleibman oleibman added this pull request to the merge queue Jul 18, 2025
Merged via the queue into PHPOffice:master with commit e1d26a0 Jul 18, 2025
13 of 14 checks passed
@oleibman oleibman deleted the readdynam branch July 18, 2025 16:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant