-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Description
This is: [x] a feature request
Subject:
I'm encountering an issue when attempting to merge ranged sections within PHP Spreadsheet. The current behavior seems to create a visual appearance of merged cells, but the underlying structure doesn't fully merge the cells, leading to potential data integrity and formatting problems.
Steps to Reproduce:
Create a new spreadsheet.
-
Select a range of cells that you want to merge.
-
Use the merge method provided by the library (e.g., $spreadsheet->mergeCells('A1:C3')).
-
Observe that the cells appear merged visually, but their individual properties remain intact.
Expected Behavior:
-
The cells within the specified range should be genuinely merged, resulting in a single cell that spans the entire range.
-
Data and formatting should be consolidated into the merged cell, ensuring consistency and preventing unexpected behavior in subsequent operations.
Actual Behavior:
- The cells only appear merged visually, but they still function as individual cells in terms of data storage and formatting.
This can lead to issues such as:
-
Data is overwritten when entering values in seemingly merged cells.
-
Formatting inconsistencies when applying styles to the merged range.
Unexpected behavior when performing calculations or data manipulation on the merged cells.
Request:
Please address this issue by implementing a solution that performs a true merge of the selected cells, combining their data and formatting into a single, unified cell. This enhancement would significantly improve the accuracy and reliability of data manipulation within PHPSpreadsheet.
Additional Information:
PHP Spreadsheet library version: 1.29
Operating system: Microsoft
Thank you for your attention to this matter. I'm eager to see this feature implemented to enhance the functionality of PHP Spreadsheet.
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
- Reader
- Writer
- Styles
- Data Validations
- Formula Calculations
- Charts
- AutoFilter
- Form Elements
Does an issue affect all spreadsheet file formats? If not, which formats are affected?
Excel and Google Spreadsheet
Which versions of PhpSpreadsheet and PHP are affected?
PHP 8.1
PHPSpreadsheet 1.29