跳到主要内容

如何在Excel中根据单元格值更改字体颜色?

您是否曾经想到过根据Excel中的单元格值更改字体颜色的图像? 例如,当数据为负数时,您可能希望数据字体颜色为红色,或者您需要数据为黑色。 在这里,我介绍一些方便的方法来帮助您节省时间,以便在Excel中按单元格值更改字体颜色。

使用条件格式根据单元格值更改字体颜色

使用选择特定单元格根据单元格值更改字体颜色 好主意3


在Excel中,条件格式可以帮助按单元格更改字体颜色。

(1)更改字体颜色为负/正

如果要在单元格值为负或正的情况下更改字体颜色,则可以执行以下操作:

1.选择单元格值,然后单击 主页 > 条件格式 > 新规则。 看截图:

doc根据单元格值1更改字体颜色

2.然后在 新格式规则 对话框中选择 仅格式化包含以下内容的单元格 ,在 选择一个规则类型: 部分,如果要在单元格值为负的情况下更改字体颜色,则可以选择 单元格值 从第一个列表中选择 少于 从中间列表中,然后键入 0 进入正确的文本框。 看截图:

提示: 如果要更改正值的字体颜色,只需从中间列表中选择“大于”。

doc根据单元格值2更改字体颜色

3。 点击 格式 单元格格式 对话框,然后在 字体 标签,从中选择所需的一种颜色 颜色 清单。 看截图:

doc根据单元格值3更改字体颜色

4。 点击 OK > OK 关闭对话框。 现在,所有负值都将字体颜色更改为红色。

doc根据单元格值4更改字体颜色

(2)大于/小于时更改字体颜色

如果要在值大于或小于特定值时更改字体颜色,可以执行以下操作:

1.选择单元格值,然后单击 主页 > 条件格式 > 新规则.

2.然后在 新格式规则 对话框中选择 仅格式化包含以下内容的单元格 ,在 选择一个规则类型: 部分中,选择 单元格值 从第一个列表开始 比...更棒 从中间列表中,然后在右侧的文本框中键入特定的值。 看截图:

提示: 如果要在单元格值小于特定值时更改字体颜色,只需从中间列表中选择小于。

doc根据单元格值5更改字体颜色

3。 点击 格式单元格格式 对话框,然后在 字体 标签,从中选择所需的一种颜色 颜色 清单。 然后点击 OK > OK 关闭对话框。 所有值均大于 50 已将字体颜色更改为橙​​色。

doc根据单元格值6更改字体颜色

(3)如果包含则更改字体颜色

如果要在单元格值包含特定文本的情况下更改字体颜色,例如,如果在单元格值包含KTE的情况下更改字体颜色,则可以执行以下操作:

1.选择单元格值,然后单击 主页 > 条件格式 > 新规则.

2.然后在 新格式规则 对话框中选择 仅格式化包含以下内容的单元格 ,在 选择一个规则类型: 部分中,选择 特定文本 从第一个列表开始 从中间列表中,然后在右侧的文本框中键入特定的文本。 看截图:

doc根据单元格值7更改字体颜色

3。 点击 格式单元格格式 对话框,然后在 字体 标签,从中选择所需的一种颜色 颜色 清单。 然后点击 OK > OK 关闭对话框。 所有包含的单元格 韩国电信 已将字体颜色更改为指定的颜色。

doc根据单元格值8更改字体颜色


如果您想尝试一些方便的加载项工具,可以尝试一下 Kutools for Excel,有一个名为 选择特定的单元格 可以快速选择满足一两个条件的单元格,然后可以更改其字体颜色。

Kutools for Excel, 与超过 300 方便的功能,使您的工作更加轻松。 

免费安装 Kutools for Excel,请执行以下操作:

1.选择要使用的单元,然后单击 库工具 > 选择 > 选择特定的单元格。 看截图:

doc按单元格1更改字体颜色

2.在 选择特定的单元格 对话框,检查 手机 选项下 选择类型,然后选择 包含特定类型,然后在文本框中输入特定的文本

doc根据单元格值10更改字体颜色

3。 点击 Ok > OK 关闭对话框。

doc根据单元格值11更改字体颜色

4.然后,已选择所有包含KTE的单元格,然后转到 主页 > 字体颜色 选择所需的字体颜色。

doc根据单元格值12更改字体颜色

请注意:

1.使用Kutools for Excel 选择特定的单元格 实用程序,您还可以选择符合以下条件的单元格:

doc根据单元格值13更改字体颜色

2.另外,您可以选择满足两个条件的单元格。 从第一个下拉列表中选择第一个条件,然后从第二个下拉列表中选择第二个条件,如果要选择同时满足两个条件的单元格,请选中 选项,如果要选择满足两个条件之一的单元格,请选中 Or 选项。

doc根据单元格值14更改字体颜色

doc根据单元格值15更改字体颜色

单击此处以了解有关选择特定单元格的更多信息。


在Excel中按背景或格式颜色快速计数/求和单元格

在某些情况下,您可能具有多种颜色的单元格范围,而您想要基于相同颜色对值进行计数/求和,那么如何快速计算?
Kutools for Excel's 按颜色计数,您可以按颜色快速进行许多计算,还可以生成计算结果的报告。  点击即可获得 30 天的免费全功能试用!
文档按颜色计数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 (18)
No ratings yet. Be the first to rate!
This comment was minimized by the moderator on the site
buen dia, tengo un probloema respecto al formato condicionar cuando es "menor que" tengo una tabla de datos de inventario, quiero usar la formula en valores menor que 50 kg, el detalle es que si pongo un valor mas alto como 420kg, lo colorea,que se puede hacer ahi ?
This comment was minimized by the moderator on the site
can you change the color of only one word in a cell? does that work?
This comment was minimized by the moderator on the site
Hi, bruna, this tutorial How To Highlight Specific Text Within A Cell Based On Other Text? provides methons on color the font color of the keyword only in the cells, I think it may help you.
This comment was minimized by the moderator on the site
I would like to have the font change color if another cell is blank or not blank. can that be done?
This comment was minimized by the moderator on the site
I would like to change the color of the whole raw if the value is equal to 0. It is explained how to do for a cell, but how to change the whole raw, pls?Example:Number Test Difference Faults 1 Test1 x different than x1 0 2 Test2 y different than y1 1
I would like to change the Raw Number 1 color in Grey.
This comment was minimized by the moderator on the site
I want to format colours based on a number range, eg. if the number is 0-4000 I want it to be green, then if the number is between 4001 - 7000 I want it to be blue and if its is 7001 - 10000 I want it to be purple, and anything over 10000 I want it to be red. And I don't want it to be a blended colour of purple and red, I only want it to specifically be that one solid colour within the value range.
This comment was minimized by the moderator on the site
I am trying to conditional format numbers, and also tried vba. I want to format 4 ways. >0, <0>-100, <-100>-200, <-200. Can get first 2 working but hit a wall with more than 1 negative value to format.
This comment was minimized by the moderator on the site
Thank you.
This comment was minimized by the moderator on the site
Hi,

is there any way to make value as per cell color Example cell red color = 10
This comment was minimized by the moderator on the site
Sorry, I did not get your question, could you describe more details?
This comment was minimized by the moderator on the site
Needed to change the colour of the font based on if the number had gone up or down from its start point. Search Google, found your post and it answered my question immediately. Huge thanks and great work. Neil
This comment was minimized by the moderator on the site
Thank you for the support!
This comment was minimized by the moderator on the site
Can anyone tell me if this is something I feel wrong. I have the same scenario with texts in many cells. And when the conditional formatting was applied, yes the colors are showing up right. But I find a problem that the fonts get defaulted to Calibri, the font alignment becomes Left Aligned.

Is this a general Excel issue or am I not doing this the proper way?
This comment was minimized by the moderator on the site
Thanks for your message, but your problem has never appeared in my way.
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