conditional-formatting

Conditional Formatting Excel document via VB6 (issue with overwriting formats)

你离开我真会死。 提交于 2020-01-05 19:23:29
问题 I'm creating an Excel document at runtime that has a bunch of values I'd like to have conditionally formatted. In going through various attempts from scratch as well as using/modifying code outputted from the Excel's macro recorder, I'm having a consistent issue related to formatting overwrites. I've posted a snippet of the code below and can say that I've tested to ensure my selection ranges are valid and appropriate for what I want conditionally formatted. There is some overlap but what's

Deleting a ConditionalFormat

时光怂恿深爱的人放手 提交于 2020-01-04 02:54:06
问题 I am trying to add a conditional formatting using C# with the below code. Microsoft.Office.Interop.Excel.FormatCondition formatConditionObj = null; formatConditionObj = (Microsoft.Office.Interop.Excel.FormatCondition)myRange .FormatConditions.Add(Excel.XlFormatConditionType.xlExpression, Type.Missing, true, Type.Missing, Type.Missing, Type.Missing, Type.Missing, Type.Missing); formatConditionObj.Interior.ColorIndex = 5; Dynamically i change the range where these formats are applied using

Excel 2013 - Alternate Highlight Rows Based on Cell Data CHANGING

前提是你 提交于 2020-01-03 06:05:08
问题 I don't know much about conditional formatting in Excel. I'd like to be able to use the background color of rows to indicate "groups" of rows. One of the cells (all the same column) determines which "group" the row belongs to. I don't want to associate 1 color per group; instead, I'd like to alternate between 2 (or more?) colors. So, I am content to say, "switch colors when the value of this column changes". (I realize that will only work if I'm sorting on that column, but I am sorting on

Apply Conditional Formatting based on multiple conditions

两盒软妹~` 提交于 2020-01-02 03:37:25
问题 I'm attempting to highlight a cell based on two conditions, if the Work Type is equal to (blank) , and if the cell itself is greater than 15%, then I want the cell under % Total Work highlighted. My sheet looks like this: The only way I can think to do this is using the AND function, something like =AND($B:$B="(blank)";$D:$D>.15) , but this produces an error. I'm very new to conditional formatting, so I may be missing something obvious. I'm using Excel 2010. 回答1: You have to apply the formula

Multiple conditional formatting rules across multiple ranges?

末鹿安然 提交于 2020-01-01 09:18:43
问题 I need to do the following. Highlight a row if cell E contains a number greater than 30 AND cell L contains a number greater than 100. This rule needs to be applied to all rows. Can you help please? 回答1: You should use CONDITIONAL FORMATTING: 1) Select all cells in the sheet (by pressing on the top left corner): 2) With selected range go to "Conditional Formatting -> New Rule.." 3) Select "Use formula..." rule type, enter formula =AND($E1>30,$L1>100) . Choose desired format and press "OK"

Counting Colored Cells from a Conditional Formatting statement

烂漫一生 提交于 2019-12-31 00:44:33
问题 So I'm revisiting this from yesterday: Multi-column vlookup conditional formatting Everything is working as intended with the conditional formatting statement that Scott Holtzman provided (Thanks Scott!). Now I've run into a little issue. I need to count the individual cells based on their background color and have it show in another sheet. I found this: https://www.ablebits.com/office-addins-blog/2013/12/12/count-sort-by-color-excel/ The VBA script is doing well to count cells that I

Conditional Formatting percent incorrect Excel

旧时模样 提交于 2019-12-30 08:33:32
问题 I have the following: So I want 99% and above = Green Between 95% - 99% = Amber Below 95% = Red However above 95% is still red. Any ideas? Thanks, James 回答1: When you pick "percentage", this takes the values as a percentage of all the values. Since you're formatting based on the value itself, and not the value as a percentage of all the other values, you need to use 'Number' for the type and use 0.99 for the upper bound and 0.95 for the lower bound. EDIT: It looks like the behaviour is

Conditional Formatting percent incorrect Excel

橙三吉。 提交于 2019-12-30 08:31:27
问题 I have the following: So I want 99% and above = Green Between 95% - 99% = Amber Below 95% = Red However above 95% is still red. Any ideas? Thanks, James 回答1: When you pick "percentage", this takes the values as a percentage of all the values. Since you're formatting based on the value itself, and not the value as a percentage of all the other values, you need to use 'Number' for the type and use 0.99 for the upper bound and 0.95 for the lower bound. EDIT: It looks like the behaviour is

Create email from Excel-VBA to include Range with Conditional Formatting

自古美人都是妖i 提交于 2019-12-29 09:27:09
问题 Background: I have dug around and learned to create an email per Rob de Bruin's guide, herein "RDB". In trying to get the contents of my email appropriate, I have found that the RangetoHTM function RDB created does not maintain colors applied via conditional formatting . I have attempted a suggested workaround altering the existing code to include .Cells(1).PasteSpecial xlPasteAllUsingSourceTheme (suggested here), though that also does not appear to resolve the issue. I have attempted to move

Copying conditional Formatting in Excel

你离开我真会死。 提交于 2019-12-29 02:08:12
问题 I use conditional formatting to format a cell depending on the values of another cell. This is the rule: Cell Value not between =$BV$10*0,5 and =$BV$10*0,5 This rule is saved on Cell Y10 (Explanation: If the Value in Y10 is inbetween 0,5...1,5 * BV10 apply the formatting) I want to use this rule on many different Cells but the formula should adjust automaticly, just like in a "normal" formula. When I copy the format using the Format Painter the formula is copied without any changes. But I