conditional-formatting

Wrong cell when conditional formatting with values

百般思念 提交于 2019-12-02 01:53:19
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="issue" This is the formula that I want but not with the number that I entered. If I manually replace

Multi-column vlookup conditional formatting

蹲街弑〆低调 提交于 2019-12-01 23:57:08
I'm looking to create a conditional format for a worksheet based on a couple of things. Sheet 1: Reference: "Date" = Col1 Row1 Date Census RN's On Schedule 7a 3p 11p 7a 3p 11p 1-Oct 8 8 9 8 8 9 2-Oct 10 14 13 13 16 13 3-Oct 10 12 12 12 12 10 4-Oct 12 10 10 11 11 10 5-Oct 10 11 11 11 12 11 6-Oct 10 11 14 11 12 12 7-Oct 13 12 12 12 14 12 Sheet 2: Reference: "Census" = Col1 Row1 Census RN Staffing Needs 7a 3p 11p 1 2 2 2 2 2 2 2 3 2 2 2 4 3 3 2 5 4 4 3 6 4.5 5 5 7 5 6 6 8 6 7 6.5 9 7 8 7 10 8.5 9 8.5 11 10 11 10 12 12 12 11.5 13 12 12 12 14 12 12 12 15 13 13 13 16 13 13 13 17 14 14 14 18 14 14 14

Counting Colored Cells from a Conditional Formatting statement

家住魔仙堡 提交于 2019-12-01 19:33:08
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 manually fill... but it's not counting the cells that are filled by the conditional formatting function.

how do you change the color of the cell in kable output table in knitr

巧了我就是萌 提交于 2019-12-01 10:36:39
I need to color the cell if the value of the cell is greater than 80. For example, given this data frame called df: dput(df) structure(list(Server = structure(1:2, .Label = c("Server1", "Server2"), class = "factor"), CPU = c(79.17, 93), UsedMemPercent = c(16.66, 18.95)), .Names = c("Server", "CPU", "UsedMemPercent"), row.names = c(NA, -2L), class = "data.frame") df[2,2] should be in red color. I was able to change the color of the text by something like this using xtable: df[, 2] = ifelse(df[, 2] > 80, paste("\\color{red}{", round(df[, 2], 2), "}"), round(df[, 2], 2)) If I do this and print

Using conditional formatting to alternate the formatting of data by category

倖福魔咒の 提交于 2019-12-01 09:23:54
I have a spreadsheet with a bunch of rows like this: Name | ID | Category | Attributes... -------------------------------------------------------- name0 | 753 | cat1 | ... name1 | 724 | cat1 | ... name2 | 149 | cat1 | ... name3 | 265 | cat1 | ... name4 | 032 | cat2 | ... name5 | 991 | cat2 | ... name6 | 238 | cat2 | ... name7 | 005 | cat3 | ... name8 | 632 | cat3 | ... name9 | 393 | cat3 | ... And I would like to format it so it's a little bit easier to distinguish the rows of separate categories. I'd therefore like to alternate shading and not shading based on the values in the Category

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

痞子三分冷 提交于 2019-12-01 09:20:15
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,195,132)); bars.HighValue.Type = eExcelConditionalFormattingValueObjectType.Num; bars.LowValue.Type =

how do you change the color of the cell in kable output table in knitr

╄→尐↘猪︶ㄣ 提交于 2019-12-01 09:11:25
问题 I need to color the cell if the value of the cell is greater than 80. For example, given this data frame called df: dput(df) structure(list(Server = structure(1:2, .Label = c("Server1", "Server2"), class = "factor"), CPU = c(79.17, 93), UsedMemPercent = c(16.66, 18.95)), .Names = c("Server", "CPU", "UsedMemPercent"), row.names = c(NA, -2L), class = "data.frame") df[2,2] should be in red color. I was able to change the color of the text by something like this using xtable: df[, 2] = ifelse(df[

Using conditional formatting to alternate the formatting of data by category

南楼画角 提交于 2019-12-01 07:05:25
问题 I have a spreadsheet with a bunch of rows like this: Name | ID | Category | Attributes... -------------------------------------------------------- name0 | 753 | cat1 | ... name1 | 724 | cat1 | ... name2 | 149 | cat1 | ... name3 | 265 | cat1 | ... name4 | 032 | cat2 | ... name5 | 991 | cat2 | ... name6 | 238 | cat2 | ... name7 | 005 | cat3 | ... name8 | 632 | cat3 | ... name9 | 393 | cat3 | ... And I would like to format it so it's a little bit easier to distinguish the rows of separate

Conditional Formatting percent incorrect Excel

血红的双手。 提交于 2019-12-01 04:06:22
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 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 different in Excel 2016 and one needs to actually put 99 and 95 (and not 0.99 and 0.95 ) as values. I guess

Using VBA to apply conditional formatting to a range of cells

流过昼夜 提交于 2019-12-01 03:30:24
I would like to know how to access the column in conditional formatting titled 'Applies To' and input my own conditions. I have included a screenshot for better reference. My code for adding the syntax in conditional formatting is, With Selection .FormatConditions.Delete .FormatConditions.Add Type:=xlExpression, Formula1:="=" & c.Address & "=TRUE" . . . End With I believe the code should be added in there but i just cannot find the correct syntax. Update : I updated my code to look like this, With Range(Cells(c.Row, "B"), Cells(c.Row, "N")) .FormatConditions.Delete .FormatConditions.Add Type: