跳到主要內容

如何在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 關閉對話框。 所有包含的單元格 KTE 已將字體顏色更改為指定的顏色。

doc根據單元格值8更改字體顏色


如果您想嘗試一些方便的加載項工具,可以嘗試一下 Excel的Kutools,有一個名為 選擇特定的單元格 可以快速選擇滿足一兩個條件的單元格,然後可以更改其字體顏色。

Excel的Kutools, 與以上 300 方便的功能,使您的工作更加輕鬆。 

免費安裝 Kutools for Excel,請執行以下操作:

1.選擇要使用的單元,然後單擊 庫工具 > 選擇 > 選擇特定的單元格。 看截圖:

doc按單元格1更改字體顏色

2。 在裡面 選擇特定的單元格 對話框,檢查 細胞 選項下 選擇類型,然後選擇 包含特定類型,然後在文本框中輸入特定的文本

doc根據單元格值10更改字體顏色

3。 點擊 Ok > OK 關閉對話框。

doc根據單元格值11更改字體顏色

4.然後,已選擇所有包含KTE的單元格,然後轉到 首頁 > 字體顏色 選擇所需的字體顏色。

doc根據單元格值12更改字體顏色

注意:

1.使用Kutools for Excel's 選擇特定的單元格 實用程序,您還可以選擇符合以下條件的單元格:

doc根據單元格值13更改字體顏色

2.另外,您可以選擇滿足兩個條件的單元格。 從第一個下拉列表中選擇第一個條件,然後從第二個下拉列表中選擇第二個條件,如果要同時選擇滿足兩個條件的單元格,請選中 選項,如果要選擇滿足兩個條件之一的單元格,請選中 Or 選項。

doc根據單元格值14更改字體顏色

doc根據單元格值15更改字體顏色

單擊此處以了解有關選擇特定單元格的更多信息。


在Excel中按背景或格式顏色快速計數/求和單元格

在某些情況下,您可能具有多種顏色的單元格範圍,而您想要的是基於相同顏色對值進行計數/求和,那麼如何快速計算?
這款獨特的敏感免洗唇膜採用 Moisture WrapTM 技術和 Berry Mix ComplexTM 成分, Excel的Kutools'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選項卡為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