[英]Conditional Formatting Rule: Highlight Row when Cell Value in X Column Begins With
I'm trying to highlight rows in my spreadsheet where cell values in Column B start with qr. 我正在尝试突出显示电子表格中的行,其中B列中的单元格值以qr开头。
I tried following ExcelJet's example "Highlight cells that begin with," but this method will ONLY highlight cells. 我尝试遵循ExcelJet的示例“以高亮显示的单元格”,但是此方法仅会突出显示单元格。 It will also highlight other cells in other columns where cell's value (string) begins with qr. 它还将突出显示其他列中其他单元格的值(字符串)以qr开头的其他单元格。
I did come up with a small googled solution. 我确实提出了一个小型的Google解决方案。
Created a rule within Conditional Formatting and used this. 在条件格式内创建了一个规则并使用了它。
=SEARCH("qr",CONCATENATE($A2, $B2, $C2, $D2,$E2,$F2,$G2))=1 = SEARCH(“ qr”,CONCATENATE($ A2,$ B2,$ C2,$ D2,$ E2,$ F2,$ G2))= 1
The problem with this solution is it will concatenate the rows in which qr exists and highlight them. 该解决方案的问题在于它将连接存在qr的行并突出显示它们。 It will also do this to rows in which a cell's value other than in column B starts with qr. 它还将对其中除B列以外的单元格值以qr开头的行执行此操作。
May I get some help with this please? 请给我一些帮助吗?
I wasn't able to produce a solution table for my question, but the solution would be the same table with ROW 2 AND ROW 5 highlighted only. 我无法为我的问题生成解决方案表,但是解决方案将是仅突出显示第2行和第5行的同一表。 The current rule I'm applying will highlight ROW 2,3, and 5 and concatenate their cells. 我正在应用的当前规则将突出显示ROW 2、3和5并连接其单元格。
|---|---------------------|------------------|---------------------|
| | A | B | C |
|---|---------------------|------------------|---------------------|
| 1 | Full Name | Username | Email Address |
|---|---------------------|------------------|---------------------|
| 2 | Mario | qrmrincon | mrodrigez@yahoo.com |
|---|---------------------|------------------|---------------------|
| 3 | Sofia | sgrahama3 | recio1@hotmail.com |
|---|---------------------|------------------|---------------------|
| 4 | Qrig | grecio1 | recio1@msn.com |
|---|---------------------|------------------|---------------------|
| 5 | Mora | qrmturner2 | turner2@aol.com |
|---|---------------------|------------------|---------------------|
For the Conditional Formatting formula, just use: 对于条件格式公式,只需使用:
=LEFT($B2,2)="qr"
Then for the "Applies to" range, put: 然后对于“适用于”范围,输入:
=$A$2:$C$100
(Adjust that last row based on the data) (根据数据调整最后一行)
And just format as you wish (a Fill
is likely what you want). 并随心所欲地格式化( Fill
可能是您想要的)。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.