Tip: Other languages are Google-Translated. You can visit the English version of this link.
Log in
x
or
x
x
Register
x

or

How to change font color based on cell value in Excel?

Have you ever imaged that change font color based on cell value in Excel? Take instance, when the data is negative, you may want the data font color is red, or you need the data is black. Here I introduce some convenient ways to help you save time to change font color by cell value in Excel.

Change font color based on cell value with Conditional Formatting

Change font color based on cell value with Select Specific Cells good idea3


Quickly Count/Sum cells by background or fomt color in Excel

In some cases, you may have a range of cells with multiple colors, and what you want is to count/sum values based on same color, how can you quickly calculate?
With Kutools for Excel's Count by Color, you can quickly do many calculations by color, and also can generate a report of the calculated result.  Click for free full featured trial in 60 days!
doc count by color 1
 
Kutools for Excel: with more than 300 handy Excel add-ins, free to try with no limitation in 60 days.


In Excel, the Conditional Formatting can do a favor on the changing font color by cell.

(1) Change font color if negative/positive

If you want to change font color if cell values are negative or positive, you can do as below:

1. Select the cell values, and click Home > Conditional Formatting > New Rule. See screenshot:

doc change font color based on cell value 1

2. Then in the New Formatting Rule dialog, select Format only cells that contain in the Select a Rule Type: section, and if you want to change font color if cell value is negative, you can choose Cell Value from first list and choose less than from the middle list, and then type 0 into the right text box. See screenshot:

Tip: If you want to change the positive values’ font color, just select Greater than from middle list.

doc change font color based on cell value 2

3. Click Format to go to Format Cells dialog, then under the Font tab, select one color you want from the Color list. See screenshot:

doc change font color based on cell value 3

4. Click OK > OK to close dialogs. Now all negative values are changed the font color to red.

doc change font color based on cell value 4

(2) Change font color if greater than/less than

If you want to change font color when the values are greater than or less than a specific value, you can do as these:

1. Select the cell values, and click Home > Conditional Formatting > New Rule.

2. Then in the New Formatting Rule dialog, select Format only cells that contain in the Select a Rule Type: section, choose Cell value from first list and greater than from the middle list, and then type the specific value into the right text box. See screenshot:

Tip: If you want to change font color when the cell values are less than a specific value, just choose less than from middle list.

doc change font color based on cell value 5

3. Click Format to go to Format Cells dialog, then under the Font tab, select one color you want from the Color list. Then click OK > OK to close dialogs. All the values greater than 50 have been change font color to orange.

doc change font color based on cell value 6

(3) Change font color if contain

If you want to change font color if the cell values contain a specific text, for example, change the font color if the cell value contains KTE, you can do as these:

1. Select the cell values, and click Home > Conditional Formatting > New Rule.

2. Then in the New Formatting Rule dialog, select Format only cells that contain in the Select a Rule Type: section, choose Specific Text from first list and Containing from the middle list, and then type the specific text into the right text box. See screenshot:

doc change font color based on cell value 7

3. Click Format to go to Format Cells dialog, then under the Font tab, select one color you want from the Color list. Then click OK > OK to close dialogs. All the cells containing KTE have been change font color to the specified color.

doc change font color based on cell value 8


If you like to try some handy add-in tools, you can have a try on Kutools for Excel, there is a utility called Select Specific Cells can quickly select the cells meeting one or two criteria and then you can change their font color.

Kutools for Excel, with more than 300 handy functions, makes your jobs more easier. 

After installing Kutools for Excel, please do as below:(Free Download Kutools for Excel Now!)

1. Select the cells you want to work with, and click Kutools > Select > Select Specific Cells. See screenshot:

doc change font color by cell 1

2. In the Select Specific Cells dialog, check Cell option under Selection type, and select Contains under Specific type, then type the specific text into text box

doc change font color based on cell value 10

3. Click Ok > OK to close dialogs.

doc change font color based on cell value 11

4. Then all cells containing KTE have been selected, and go to Home > Font Color to select the font color you want.

doc change font color based on cell value 12

Note:

1. With Kutools for Excel’s Select Specific Cells utility, you also can select cells meet below criterion:

doc change font color based on cell value 13

2. Also, you can select cells meeting two criteria. Select first criterion from first drop down list, then select second criterion from second drop down list, and if you want to select cells meeting two criteria simultaneously, check And option, if you want to select cells meeting one of the two criteria, check Or option.

doc change font color based on cell value 14

doc change font color based on cell value 15

Click here to know more about Select Specific Cells.


Tabbed browsing & editing multiple Excel workbooks/Word documents as Firefox, Chrome, Internet Explore 10!

You may be familiar to view multiple webpages in Firefox/Chrome/IE, and switch between them by clicking corresponding tabs easily. Here, Office Tab supports similar processing, which allow you to browse multiple Excel workbooks or Word documents in one Excel window or Word window, and easily switch between them by clicking their tabs. Click for free 45-day trial of Office Tab!

ot excel

Recommended Productivity Tools

Ribbon of Excel (with Kutools for Excel installed)

300+ Advanced Features Increase Your Productivity by 71%, and Help You To Stand Out From Crowd!

Would you like to complete your daily work quickly and perfectly? Kutools For Excel brings 300+ cool and powerful advanced features (Combine workbooks, sum by color, split cell contents, convert date, and so on...) for 1500+ work scenarios, helps you solve 82% Excel problems.

  •  Deal with all complicated tasks in seconds, help to enhance your work ability, get success from the fierce competition, and never worry about being fired.
  •  Save a lot of work time, leave much time for you to love and care the family and enjoy a comfortable life now.
  •  Reduce thousands of keyboard and mouse clicks every day, relieve your tired eyes and hands, and give you a healthy body.
  •  Become an Excel expert in 3 minutes, and get admiring glance from your colleagues or friends.
  •  No longer need to remember any painful formulas and VBA codes, have a relaxing and pleasant mind, give you a thrill you've never had before.
  •  Spend only $39, but worth than $4000 training of others. Being used by 110,000 elites and 300+ well-known companies.
  •  60-day unlimited free trial. 60-day money back guarantee. Free upgrade and support for 2 years. Buy once, use forever.
  •  Change the way you work now, and give you a better life immediately!

Office Tab Brings Efficient And Handy Tabs to Office (include Excel), Just Like Chrome, Firefox, And New IE

  • Increases your productivity by 50% when viewing and editing multiple documents.
  • Reduce hundreds of mouse clicks for you every day, say goodbye to mouse hand.
  • Open and create documents in new tabs of same window, rather than in new windows.
  • Help you work faster and easily stand out from the crowd! One second to switch between dozens of open documents!
Say something here...
symbols left.
You are guest ( Sign Up? )
or post as a guest, but your post won't be published automatically.
Loading comment... The comment will be refreshed after 00:00.
  • To post as a guest, your comment is unpublished.
    faizal.ali · 1 years ago
    Hi,

    is there any way to make value as per cell color Example cell red color = 10
    • To post as a guest, your comment is unpublished.
      Sunny · 1 years ago
      Sorry, I did not get your question, could you describe more details?
  • To post as a guest, your comment is unpublished.
    Neil Curtis · 1 years ago
    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
  • To post as a guest, your comment is unpublished.
    Jabir · 1 years ago
    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?
    • To post as a guest, your comment is unpublished.
      Sunny · 1 years ago
      Thanks for your message, but your problem has never appeared in my way.
  • To post as a guest, your comment is unpublished.
    Danae · 1 years ago
    Thanks! I'm a teacher and this was really usefull!
  • To post as a guest, your comment is unpublished.
    Jaime · 2 years ago
    This site is completely worthless. I have a Mac and my Excel does not have anything like the fields above.
    • To post as a guest, your comment is unpublished.
      AppleSux · 1 years ago
      This is good information. Your mistake was buying a Mac - they just don't work. I'm using Office 2013 on Win8.1 x64 and it's just fine.
    • To post as a guest, your comment is unpublished.
      sam · 1 years ago
      hey crooked, u got to install kutools to get these features. otherwise use conventional way of using conditional formatting