跳到主要内容

如果单元格在Excel中包含文本/值/空白,如何突出显示行?

如果单元格包含1,则doc高亮行

例如,我们在Excel中有一个采购表,现在我们想要找出苹果的采购订单,然后突出显示苹果订单所在的整行,如左图所示。我们可以使用条件格式命令或 Kutools for Excel 的功能在 Excel 中轻松完成此操作,请继续阅读以了解如何操作。

如果单元格包含具有条件格式的特定文本/值/空白,则突出显示整行

如果单元格包含特定文本/值,则使用 Kutools for Excel 突出显示整行

如果单元格在另一列中包含特定值之一,则突出显示整行


箭头蓝色右气泡如果单元格包含具有条件格式的特定文本/值/空白,则突出显示行

要使用 Excel 中的条件格式命令突出显示包含特定文本、值或空白单元格的整行单元格,您可以执行以下操作:

1. 选择没有列标题的采购表。

2. 点击 主页 > 条件格式 > 新规则。 请参阅下面的第一个屏幕截图:
如果单元格包含3,则doc高亮行

3. 在上面第二个屏幕截图所示的新格式规则对话框中,请执行以下操作:
(1)单击以选择 使用公式来确定要格式化的单元格 ,在 选择规则类型 框;
(2)在 格式化此公式为真的值 框中输入 = $ B2 =“ Apple”;
(3)点击 格式 按钮。
:
(1)在公式中 = $ B2 =“ Apple”, $B2 是您将检查是否包含特定文本或值的单元格,而“Apple”是特定文本,您可以根据需要更改它们。 而这个公式只能找出只包含特定文本或值的单元格。
(2)如果要在单元格为空白的情况下突出显示行,请输入 = $ B2 =“” 在步骤3-(2)中。
(3)如果您要突出显示单元格以特定文本开头的行,则需要输入 = LEFT($ B2,5)=“ Apple”; 或者如果单元格以特定文本结尾则突出显示行,请输入 = RIGHT($ B2,5)=“ Apple”.

4. 现在“单元格格式”对话框正在打开。 前往 标签,指定背景色,然后点击 OK 按钮。
如果单元格包含4,则doc高亮行

5. 点击 OK 按钮关闭“新格式设置规则”对话框。

然后,将突出显示包含选定范围内的特定内容单元格的所有行。

如果单元格在Excel中包含某些文本/值,则选择整行

Kutools for Excel的 选择特定的单元格 如果单元格在Excel中包含特定值,此功能可以帮助您快速选择单元格,整个行或整个列。


广告选择行(如果包含)

Kutools for Excel - 使用 300 多种基本工具增强 Excel 功能。 享受全功能 30 天免费试用,无需信用卡! 立即行动吧!

箭头蓝色右气泡如果单元格包含特定文本/值,则使用 Kutools for Excel 突出显示行

Kutools for Excel's 选择特定的单元格 功能,如果单元格包含特定的文本或值,我们可以选择行,然后在Excel中轻松突出显示这些行。

Kutools for Excel - 包含 300 多个 Excel 基本工具。 享受全功能 30 天免费试用,无需信用卡! 现在下载!

1. 如果包含特定文本或值,请选择您将在其中找到单元格的列。

2. 点击 库工具 > 选择 > 选择特定的单元格.

3. 在打开的选择特定单元格对话框中,如上图所示,请执行以下操作:
(1)检查 整行 ,在 选择类型 部分;
(2)在 具体类型 部分中,单击第一个框并指定 包含 从下拉列表中,然后在下面的框中输入特定的文本。
(3)点击 OK 按钮。

4. 在第二个选择特定单元格对话框中,单击 OK 按钮。 然后,选择具有包含特定文本或值的整行的所有单元格。

5. 点击 填充颜​​色 上的按钮 主页 标签,然后从下拉列表中指定突出显示颜色。

Kutools for Excel - 使用 300 多种基本工具增强 Excel 功能。 享受全功能 30 天免费试用,无需信用卡! 立即行动吧!


箭头蓝色右气泡 如果单元格在另一列中包含特定值之一,则突出显示整行

有时,仅当其单元格包含另一列中的特定值之一时,您可能才需要突出显示整行。 Excel 的 Kutools 比较范围 实用程序提供了另一种解决方法,如果单元格轻松包含特定值之一,则突出显示整个行。

Kutools for Excel - 包含 300 多个 Excel 基本工具。 享受全功能 30 天免费试用,无需信用卡! 现在下载!

1. 点击 库工具 > 选择>选择相同和不同的单元格.

2. 在右图所示的选择相同和不同的单元格对话框中,请执行以下操作:

(1)在 在中查找值 框,请指定要检查其单元格是否包含特定值之一的列;
(2)在 根据 框中,请指定包含特定值的列;
(3)在 基于 部分,请检查 每一行 选项;
(4)在 找到最适合您的地方 部分,请检查 相同的价值 选项;
(5)在 处理结果 对话框,请检查 填充背景色 选项并指定填充颜色;
(6)检查 选择整行 选项。

3. 点击 OK 按钮应用此实用程序。 然后出现另一个比较范围对话框,向我们显示选择了多少行。 只需点击 OK 按钮关闭它。

然后你会看到一个单元格是否包含另一列中的一个特定值,这个单元格的整行都被突出显示并用特定的颜色填充。
doc高亮显示其他列4

Kutools for Excel - 使用 300 多种基本工具增强 Excel 功能。 享受全功能 30 天免费试用,无需信用卡! 立即行动吧!


箭头蓝色右气泡演示:如果单元格包含某个值或指定值之一,则突出显示行

Kutools for Excel:超过 300 个方便的工具触手可及! 立即开始 30 天免费试用,没有任何功能限制。 立即下载!

使用 Kutools for Excel 自动突出显示活动行和列

在 Excel 中选择单元格时,通常仅突出显示活动单元格。然而,Kutools for Excel 的 阅读视图 实用程序可以自动突出显示活动单元格的整个行和列。


广告阅读版式1

Kutools for Excel - 使用 300 多种基本工具增强 Excel 功能。 享受全功能 30 天免费试用,无需信用卡! 立即行动吧!


箭头蓝色右气泡相关文章

最佳办公生产力工具

🤖 Kutools 人工智能助手:基于以下内容彻底改变数据分析: 智能执行   |  生成代码  |  创建自定义公式  |  分析数据并生成图表  |  调用 Kutools 函数...
热门特色: 查找、突出显示或识别重复项   |  删除空白行   |  合并列或单元格而不丢失数据   |   不使用公式进行四舍五入 ...
超级查询: 多条件VLookup    多值VLookup  |   跨多个工作表的 VLookup   |   模糊查询 ....
高级下拉列表: 快速创建下拉列表   |  依赖下拉列表   |  多选下拉列表 ....
列管理器: 添加特定数量的列  |  移动列  |  切换隐藏列的可见性状态  |  比较范围和列 ...
特色功能: 网格焦点   |  设计图   |   大方程式酒吧    工作簿和工作表管理器   |  资源库 (自动文本)   |  日期选择器   |  合并工作表   |  加密/解密单元格    按列表发送电子邮件   |  超级筛选   |   特殊过滤器 (过滤粗体/斜体/删除线...)...
前 15 个工具集12 文本 工具 (添加文本, 删除字符,...)   |   50+ 图表 类型 (甘特图,...)   |   40+ 实用 公式 (根据生日计算年龄,...)   |   19 插入 工具 (插入二维码, 从路径插入图片,...)   |   12 转化 工具 (小写金额转大写, 货币兑换,...)   |   7 合并与拆分 工具 (高级组合行, 分裂细胞,...)   |   ... 和更多

使用 Kutools for Excel 增强您的 Excel 技能,体验前所未有的效率。 Kutools for Excel 提供了 300 多种高级功能来提高生产力并节省时间。  单击此处获取您最需要的功能...

产品描述


Office Tab 为 Office 带来选项卡式界面,让您的工作更加轻松

  • 在Word,Excel,PowerPoint中启用选项卡式编辑和阅读,发布者,Access,Visio和Project。
  • 在同一窗口的新选项卡中而不是在新窗口中打开并创建多个文档。
  • 每天将您的工作效率提高50%,并减少数百次鼠标单击!
Comments (16)
No ratings yet. Be the first to rate!
This comment was minimized by the moderator on the site
If some row cells are blank does conditional formatting works?? I was trying but it could not select there was some cells blank ...
This comment was minimized by the moderator on the site
Hi Sagar pachhai,
To add conditional formatting for blank cells, you can use the formula similar as this =$B2="".
FYI, 0 will be shown as blank if you have disabled the Show a zero in cell that have zero value option. And some formulas will also return blank too.
This comment was minimized by the moderator on the site
Please help....... In "Select specif cells" dialogue box, In contains field, I want to give a list instead of a word. and then highlight the entire rows which contains that either of the given text in list partially or completely . Is there a way to achieve this? Thank you!
This comment was minimized by the moderator on the site
Hi Umair Aziz,
In the third method introduced in this article (https://www.extendoffice.com/documents/excel/2525-excel-highlight-row-if-cell-blank-contains-value-text.html#kutools2 ), I have introduced how to highlight row if the column contains any one of values in a list.
This comment was minimized by the moderator on the site
Hi , if i type the number 5 , that 5 rows should be need to highlighted. how to do this?
Pls help
This comment was minimized by the moderator on the site
Hi Donbosoco,
Do you mean highlight every 5 rows alternatively? If so, you can apply Conditional Formatting with formula =MOD(ROW(),5)
This comment was minimized by the moderator on the site
You can also apply Kutools for Excel’s Alternate Row / Column Shading feature to highlight every nth rows or columns easily.
This comment was minimized by the moderator on the site
My excel is become little slow while filter the data for the conditional formatted column. Is there any better solution to do highlight dupes in the same column of excel?

I very frequently use filter option for the conditional formatted columns.

Please help me.
This comment was minimized by the moderator on the site
Hi Yoga,
Apply Kutools for Excel’s Select Duplicate & Unique Cells feature to find out and highlight duplicates in one column.
This comment was minimized by the moderator on the site
How to you conditionally format cells with both numbers and text, based on the number. I Have a column that has entries such as 30 days, 12 days, 84 days...etc I would like to highlight the cells <= 30 green, and >=80 Red. Thank you for your help.
This comment was minimized by the moderator on the site
I did something similar but instead used evaluation statements based on the initial date for that item. In other words I would highlight the cell containing remaining days (30 days, 12 days, etc) based off a calculation of the current date and the initial date which was kept in the cell next to the remaining days. For me 10-30 was red text, 31-60 was yellow text and 0-9 was dark red fill with bold white text. Annoying yes but called attention to it.
This comment was minimized by the moderator on the site
Let's say you have a row, and the first cell currently contains no value. The remaining cells contain values. Now, I wish to input a value into that empty cell. When I do, regardless of the data entered, I wish for the entire row to be highlighted. How do I go about doing this?
This comment was minimized by the moderator on the site
Hi Dylan,
Do you mean highlight the entire row if the specified cell is nonblank? If so, you can:
(1) Select the row
(2) Apply conditional formatting with formula , and the formula is =ISBLANK($A2)=FALSE (A2 is the first cell )
This comment was minimized by the moderator on the site
Conditional Formatting
This comment was minimized by the moderator on the site
Please remove the smooth scrolling, it's no longer necessary in modern browsers
This comment was minimized by the moderator on the site
Thank you very much for the help
There are no comments posted here yet
Please leave your comments in English
Posting as Guest
×
Rate this post:
0   Characters
Suggested Locations