简体   繁体   English

条件格式设置规则:X列中的单元格值以开头时突出显示行

[英]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.

相关问题 Python - Openpyexcel - 条件格式,到底如何将规则应用于列,但突出显示该行? - Python - Openpyexcel - Conditional formatting, How on earth do i apply the rule to a column, but highlight the row? Excel条件格式,如果列A包含任何值高亮显示列B中的相邻单元格 - Excel Conditional Formatting If Column A Contains ANY Value Highlight Adjacent Cell In Column B 如果另一列中的相应行包含特定值,我想使用条件格式突出显示一列中的单元格 - I want to use conditional formatting to highlight a cell in one column if the corresponding line in another column contains a specific value 使用Excel根据单元格值有条件地格式化行 - Conditional Formatting a Row based on cell value with Excel Excel 如果 A 列中的单元格和 B 列中的单元格为空白而不是 G 列中的突出显示单元格,则条件格式 - Excel Conditional Formatting if cell in Column A AND the cell in Column B are blank than highlight cell in Column G Excel条件格式 - 根据每列顶部的值突出显示单元格 - Excel conditional formatting - highlight cells based on a value at the top of each column VBA如果Column(“ A”)。Cell(i).Value以“ x”开头,则Column(“ G”)。Cell(i).value =“ String” - VBA if Column(“A”).Cell(i).Value begins with “x” then Column(“G”).Cell(i).value = “String” Excel:在格式规则中选择从单元格X开始的列 - Excel: Select column starting from cell X in formatting rule Excel格式/突出显示基于最后日期和相等单元格值的行 - Excel formatting/Highlight row based on the last date and equal cell value 在Excel中,如果单元格值为X,则高亮显示行和列 - In Excel, highlight row and column if cells value is X
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM