-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
Conditional Styles methods only work for single-cell styles #2482
Comments
@MarkBaker Welcome back! |
@oleibman Dank je wel! It's been a difficult tail end of the year for me, and things still aren't going well; but I hope that I'll be able to do more work here again than I have been doing over the last few months.... although half the things that I want to do entail major bc breaks, or making the testing/release process incredibly complicated... but it's good to see just how much you've achieved while I've been absent |
I am sorry things are not going well for you. I hope the new year will be a better one. |
Good morning Mark,
produces a file where the formule is altered. I get a |
I assume that the expression is supposed to style the cell if the cell value is neither Looking at your expression, should I'll need to experiment further (I'm still trying to get that expression working in MS Excel itself) but a couple of other possibilities spring to mind:
However, I'm struggling to get MS Excel to accept the COUNTIF() formula, with or without an array constant While perhaps not as efficient, you could try rewriting your formula as |
Thank you Mark for your insight, it was very very useful.I will try tomorrow without brackets (i thing not problematic), but i think your proposition (alternative to countif) will do it. |
Good morning Mark, My hopes were not too high on this solution anyway, I will carry on with the Boolean operators and keep my fingers crossed ;-) |
Thanks you Mark for your support, I confirm your second proposition ( thanks again. I will carry on diving into REGEX/MATCH to validate date and standard inputs. |
Good afternoon Mark, as anticipated I have attacked REGEX and I think I have an other issue... that might me related... I create it ant you will relate it if you think useful. |
This is:
What is the expected behavior?
If a cell has conditional styling, then
Worksheet
methods likeconditionalStylesExists()
andgetConditionalStyles()
- which require a cell reference argument - should returntrue
, and the list of conditions/styles respectively.What is the current behavior?
If the conditional is applied to just a single cell, then the correct behaviour applies; but if the conditional applies to a range of cells, then
false
and an empty array will be returned, even when the specified cell falls within the conditional range.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:
Should return
true
andtrue
for cellsA1
andF1
; but returnsfalse
andtrue
Which versions of PhpSpreadsheet and PHP are affected?
All versions
Sample file has a single cell conditional for cell F1, and a cell range conditional for cells A1:D3
Conditional.xlsx
The text was updated successfully, but these errors were encountered: