conditional-formatting

Conditional formatting on visible range?

删除回忆录丶 提交于 2019-12-23 04:08:08
问题 I have a table with times of actions and I want to highlight rows that are more than 20-ish minutes more than the one above. The actual number of minutes is less important. For that I use conditional formatting with the formula: =F3-F2>0,01766 So far so good. But now if I apply filter on the table the the formula does not work anymore because it looks at the hidden rows. Only the first highlight is made by the conditional formatting the other two are done by me. Is it possible to get

Conditional formating based on formula in another sheet

試著忘記壹切 提交于 2019-12-22 10:13:16
问题 I have 2 Excel 2007 PT-PT sheets: One (sheet1) has multiple columns to be validated. The other (base_valid) has 5 columns to be validated. I'm trying to validate the "regioes" (M2) column using a macro: Sub Validar_Regioes() Dim rg As Range Dim cond1 As FormatCondition, cond2 As FormatCondition, cond3 As FormatCondition Set rg = Range("M2", Range("M2").End(xlDown)) 'clear any existing conditional formatting rg.FormatConditions.Delete 'define the rule for each conditional format Set cond1 = rg

openpyxl font conditional formatting

空扰寡人 提交于 2019-12-22 07:07:18
问题 I am using pyopenxl to output some excel spreadsheets, I encountered a problem with font conditional formatting. I want to highlight the cells lesser than 0 with red color and here's what I've done: from pyopenxl import formatting, styles red_font = styles.Font(size=self.font_size, bold=bold, color=self.red_color_font) red_fill = styles.PatternFill(start_color=self.red_color, end_color=self.red_color, fill_type='solid') self.ws.conditional_formatting.add( cell.coordinate, formatting

How to format rows to color group by like values in column 1

China☆狼群 提交于 2019-12-21 07:24:19
问题 I have a worksheet that has information like this: a a b c c c How do I format it so that all of the rows that have a value of a in the first column are one color, then all the rows that have a value of b in the first column are a different color, etc. ? Edit not from OP to add clarification from comment: Everything is already sorted alphabetically, and will stay that way, and I want multiple colors. 回答1: Create a helper column with a formula like this; =MOD(IF(A3=A2,0,1)+B2,2) In this

How to format rows to color group by like values in column 1

痞子三分冷 提交于 2019-12-21 07:23:08
问题 I have a worksheet that has information like this: a a b c c c How do I format it so that all of the rows that have a value of a in the first column are one color, then all the rows that have a value of b in the first column are a different color, etc. ? Edit not from OP to add clarification from comment: Everything is already sorted alphabetically, and will stay that way, and I want multiple colors. 回答1: Create a helper column with a formula like this; =MOD(IF(A3=A2,0,1)+B2,2) In this

Excel Conditional Formatting 3-color over one row applied to many rows

放肆的年华 提交于 2019-12-21 03:42:13
问题 I've got some excel spreadsheets with a couple hundred to couple thousand rows. Each row represents a set of measurements taken at one second intervals. I want to use the 3 color conditional formatting for each row. I can setup a single row for the 3 color by setting the "Applies to" to something like: 'Table1'!$B$2:$M$2 However, if i try to copy the format and then apply it to multiple rows, (say B3:M400), it will treat the entire block (all cells from B3 through M400) as a single

Using conditional formatting to highlight a row if the date in the column F equals todays date

江枫思渺然 提交于 2019-12-21 03:20:09
问题 How would I get a row in my table to highlight if the date in the column F equals todays date. Note that more than one row can be lit up at once. 回答1: STEP 1: Select your table without headers ( B24:G31 in image below). With selected table go to HOME->CONDITIONAL FORMATTING->New Rule... STEP 2: Select Use formula to determine which cells to format , enter formula: =$F24=TODAY() , choose desired formatting and press OK. RESULT: 回答2: If column A is just months and you want to show the annual

How to apply conditional formatting formula to large range faster

点点圈 提交于 2019-12-20 07:14:48
问题 I created a conditional formatting formula =AND(SUMPRODUCT(($A$2:$A$" & lastRow & "=$A2)*($CT$2:$CT$" & lastRow & "=$CT2)*($CU$2:$CU$" & lastRow & "=$CU2)*($CV$2:$CV$" & lastRow & "=$CV2)*($CW$2:$CW$" & lastRow & "=$CW2))>1,$CT2 <> """")" To find & highlight duplicate upcharges based on multiple criteria: Product's XID (Column A), Upcharge Criteria 1 (Column CT), Upcharge Criteria 2 (Column CU), Upcharge Type (Column CV), and Upcharge Level (Column CW). The formula works like a charm

Wrong cell when conditional formatting with values

半城伤御伤魂 提交于 2019-12-20 03:14:01
问题 I regularly encounter an issue on Excel 2010 when I create a new rule using a formula. The issue is reproducible on several of my computers. I select several cells (for instance A4:B143) and then create a new rule using one of the following formulas: =$A4="issue" =($A4="issue") then press Enter. The goal is, of course, to see all the rows of which the first cell's value is "issue". But this does not work and when I go to "manage rules", I see that Excel has the following formula: =$A1048441=

Inconsistent appearance between manual and coded versions of solid databar and databar minimum value

拟墨画扇 提交于 2019-12-19 09:53:44
问题 I am trying to create solid databars in EPPlus 4.0.4, and am running into two problems. First, I haven't been able to figure out how to create a solid fill color. Second, at least for small values, the bars aren't showing up the way I expect them to. The screenshot below illustrates both issues. In both cases, the desired outcome is that of the databar I've added manually in Excel: This is the code I'm currently using: var bars = doc.ConditionalFormatting.AddDatabar(range, Color.FromArgb(99