跳到主要内容

如何在Excel中为空白或非空白单元格着色或着色?

假设您要在Excel中指定范围内的所有空白单元格(或非空白单元格)着色/着色。 如何在Excel中一次填充或着色所有空白单元格?


使用转到特殊功能填充所有空白/非空白单元格

使用这种方法,您可以快速为工作表中的空白单元格上色。

1。 选择指定的范围,在其中将所有空白单元格(或非空白单元格)着色。

2。 点击 主页 > 查找和选择 > 定位条件…打开 定位条件 对话框。 然后检查 空白 该对话框中的选项,请参见屏幕截图:
备注:要选择所有非空白单元格,请检查 常量 选项。

3。 点击 OK。 并且已在指定范围内选择了所有空白单元格(或非空白单元格)。

4。 然后点击 主页 > 填充颜​​色 并选择您想要填充的颜色。 看截图:

并且所有空单元格(或非空白单元格)都已被阴影化。


使用条件格式为所有空白/非空白单元格着色

您也可以将条件格式应用于阴影空白(或非空白)单元格。 使用这种方法,当您在空白单元格中输入数据(或从非空白单元格中删除数据)时,该单元格中的阴影颜色将恢复为默认颜色。 您可以执行以下操作:

1。 选择将所有空白(或非空白)单元格着色的范围。 看截图:

2。 然后点击 主页 > 条件格式 > 新规则 打开 新格式规则 对话框。

3。 在打开的对话框中,请单击 使用公式来确定要格式化的单元格 ,在 选择规则类型 框,然后输入公式 = A1 =“” (A1是指定范围内的第一个单元格) 格式化此公式为真的值 框,然后单击 格式 按钮。
备注:要为指定范围内的所有非空白单元格着色,请输入此公式 = A1 <>“”格式化此公式为真的值 框。

4。 然后在 格式化单元格 对话框中,在 选项卡,然后单击 OK 按钮。

5。 它会返回到 新格式规则 对话框中,您可以在 预览 框,然后单击 OK 按钮以应用此条件格式。
指定范围内的所有空白单元格(或非空白单元格)已被阴影化。 当您在彩色空白单元格中键入一些数据(或从非空白单元格中删除数据)时,该单元格将恢复为默认背景色。


使用 Kutools for Excel 为非空白单元格着色

此方法将指导您应用 Kutools for Excel 选择非空白单元格 实用程序以选择指定范围内的所有非空白单元格,然后在Excel中轻松为它们上色。

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

1。 选择将所有非空白单元格一起上色的范围,然后单击 库工具 > 选择 > 选择非空白单元格。 看截图:

然后将出现一个对话框,告诉您已选择了多少个非空白单元格。 点击 OK 按钮将其关闭。 参见上面的截图。

2。 通过单击添加这些选定单元格的填充颜色 主页 > 填充颜​​色 然后从下拉列表中选择填充颜色。 看截图:

到目前为止,我们已经在指定范围内将所有非空白单元格上色,如下图所示:
doc颜色非空白单元格4


演示:Excel中的阴影或颜色非空白单元格


Kutools for Excel:超过 300 个方便的工具触手可及! 立即开始 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 (18)
No ratings yet. Be the first to rate!
This comment was minimized by the moderator on the site
Hey, thanks for the help. Just one question, is there a way to fill in nonblank cells and leave cells with a formula but no value blank?
This comment was minimized by the moderator on the site
I actually had to reverse the formula to say =A1"" and Format the conditional format the normal format (no fill and black text) and then format the range the way I wanted the blanks to look (light red fill) to get it to work. I am not sure why it would not detect the empty cells but it could detect the not empty cells. maybe it was because it was a table built linked to a query. But either way i can use it, so thanks so much.
This comment was minimized by the moderator on the site
Excellent, clear and concise instructions. Great when you can google a question, find the answer and the instructions are simple and clear.
This comment was minimized by the moderator on the site
I wanted to JUST shade cells in excel that are blank using a formula but your formula shades all cells with any content blank or otherwise. Is there a formula other than "" for blank cells? Thanks!
This comment was minimized by the moderator on the site
Vendor1 Vendor2 Vendor3 Vendor4 Vendor5 Low Bid Vendor For Low Bid Product1 8 6 3 8 3 Product2 6 4 4 3 5 Product3 8 6 6 8 3 Product4 6 7 7 8 4 Product5 8 8 3 3 5 Product6 8 4 7 3 7 Product7 5 8 7 4 5 Product8 4 6 6 7 4 Product9 4 8 6 7 3 Product10 6 6 5 7 5 Product11 4 5 6 4 3 How we can do this can any one help me
This comment was minimized by the moderator on the site
Thanks a lot for both the method,it worked perfectly well.
This comment was minimized by the moderator on the site
Worked perfectly ^^ Thanks a lot!
This comment was minimized by the moderator on the site
Thanks for both methods. Very nice
This comment was minimized by the moderator on the site
Hi I have a data sheet where different contact are saved. Phone Nr.1, Phone2, Phone3, Phone4. I need to delete all rows where all 4 selected cells(e.g. A2, B2, C2, D2) are blank. Its about 7000 rows I have to clean up. Can you help? thx L.
This comment was minimized by the moderator on the site
I would just filter those columns so that only blanks are showing in all four fields. Then just delete those rows. Not sure if there is a more slick way, but that seems easy.
This comment was minimized by the moderator on the site
Coloring every other field can be achieved by using a theme on your spreadsheet
There are no comments posted here yet
Load More
Please leave your comments in English
Posting as Guest
×
Rate this post:
0   Characters
Suggested Locations