Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Feature request: stop_if_true for conditional formatting #386
Thank you very much for your outstanding work.
I found xlsxwriter missing two conditional format-related features, so I made a little revision to add these two features:
Icon_set: Displays the specified icon in the data cell according to the specified condition. #387
Stop_if_true: Once the conditional formatting is met, the subsequent conditional formatting in the list is no longer checked.
I am a novice in python and I do not have software engineering experience. These codes do work but they are not satisfacting, so would you be so kind as to add these two features into the new version？
Thanks for the input.
As for the Icon Sets, that is a separate feature request so you should open a separate feature request issue for that. That allows me to track progress separately.
referenced this issue
Oct 19, 2016
I'm interested in the stop_if_true for conditional formatting too! I have several conditions that I'm applying to a range of cells and would love it to stop on the first condition or be able to assign a priority/precedence. I am trying to format a cell with two different options and one overrides the other.
changed the title from
Feature request:Icon_set and stop_if_true for conditional formatting
Feature request: stop_if_true for conditional formatting
Sep 5, 2017
added a commit
Sep 5, 2017
Just to note that although I implemented this, for completeness, I'm not sure it is actually required in Excel 2007 since precedence can be set using the order in which the rules are applied.
The Office documentation on Conditional Formatting Precedence suggests that is mainly to support backward compatibility.