Replies: 7 comments 3 replies
-
Merging cells can have some interesting effects when the merge has been done in different spreadsheet applications. The quirk might be related to this, but I can try investigating further. Perhaps you can provide more details of how the file was created. |
Beta Was this translation helpful? Give feedback.
-
I spent hours playing with this yesterday and this morning again. It came aparent that the problem is related to the conditional formating. I tried moving code around, changing the order of things but nothing changed. I tried removing the applyFromArray() and the problem was solved. There was no change in the format but also no double values. At this point i strted removing lines from the formatting array untill i found the problematic line :
Removing this line from
Solved the problem. |
Beta Was this translation helpful? Give feedback.
-
Thank you for all the information. I need to do more testing, but I believe the Xlsx Writer is writing out Alignment values in Conditional Styles, and should not be doing so - Alignment is not a property you can set in a conditional style in Excel. This is consistent with your explanation that removing the alignment line solved your problem. I need to develop some test cases, but should have a PR ready within a few days. |
Beta Was this translation helpful? Give feedback.
-
I'm kind of new to working with GitHub / Composer. the PHP 7 server is running 1.29, the PHP 8 is running ^2.0 is there a way to update the fix on both? |
Beta Was this translation helpful? Give feedback.
-
In this case, you don't really need the fix; you can just update your application to not specify Alignment in your conditional style. We do not retrofit our fixes to prior releases. If you really need a fix after it has been merged but before a release containing the PR is available:
There are also ways to get code even before it's been merged. Once a new release is available, you can just use:
|
Beta Was this translation helpful? Give feedback.
-
Thanks, I apprecuate the explanation. |
Beta Was this translation helpful? Give feedback.
-
Closing. Solved by PR #4027, and user has indicated "Solved" at the top of this discussion. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
*** SOLVED ***
Hi,
I've encountered a strange issue.
In my Excel sheet, I have a set of three merged cells with a formula in the first cell, along with some conditional formatting that works perfectly.
Initially, everything looks fine when I open the Excel file. However, as soon as I click on "Enable Editing" at the top, the formula value doubles, appearing twice.
Another issue I've noticed is when I select the merged range and click on "Merge & Center", the value appears only in one cell. But if I click "Merge & Center" a second time, it affects all similar merged cells in the Excel sheet, making everything look correct.
Also, if i don't merge, there is no problem. The value is set to a single cell.
I've attached an example file. The issue seems to be with the merged cells at the bottom of the table. What could be causing this?
PricezBI_מחיר_נפוץ_שני_תאריכים_1_2024-05-12-15-38.xlsx
Beta Was this translation helpful? Give feedback.
All reactions