Skip to main content

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

Author: Kelly Last Modified: 2024-11-01

When you deal with huge data in Excel, you may want to pick out some value and highlight them with specific background or font color. This article is talking about how to change the background or font color based on cell values in Excel quickly.


Method 1: Change background or font color based on cell value dynamically with Conditional Formatting

 

The Conditional Formatting feature can help you to highlight the values greater than x, less than y, or between x and y.

Supposing you have a range of data, and now you need to color the values between 80 and 100, please do with the following steps:

1. Select the range of cells that you want to highlight certain cells, and then click Home > Conditional Formatting > New Rule, see screenshot:

click Home > Conditional Formatting > New Rule

2. In the New Formatting Rule dialog box, select the Format only cells that contain item in the Select a Rule Type box, and in the Format Only Cells with section, specify the conditions that you need:

  • In the first drop down box, select the Cell Value;
  • In the second drop down box, select the criteria:between;
  • In the third and fourth box, enter the filter conditions, such as 80, 100.

specify the options in the dialog box

3. Then, click Format button, in the Format Cells dialog box, set the background or font color as this:

Change the background color by cell value: Change the font color by cell value
Click Fill tab, and then choose one background color you like Click Font tab, and select the font color you need.
Change the background color under fill tab Change the font color under font tab

4. After select the background or font color, click OK > OK to close the dialogs, and now, the specific cells with value between 80 and 100 are changed to the certain the background or font color in the selection. See screenshot:

Highlight specific cells with background color: Highlight specific cells with font color:
Highlight specific cells with background color Highlight specific cells with font color

Note: The Conditional Formatting is a dynamic feature, the cell color will be changed as the data changes.


Method 2: Change background or font color based on cell value statically with Find function

 

Sometimes, you need to apply a specific fill or font color based on cell value and make the fill or font color not change when the cell value changes. In this case, you can use the Find function to find all the specific cell values and then change the background or font color to your need.

For example, you want to change the background or font color if the cell value contains “Excel” text, please do as this:

1. Select the data range that you want to use, and then click Home > Find & Select > Find, see screenshot:

click Home > Find & Select > Find

2. In the Find and Replace dialog box, under the Find tab, enter the value that you want to find into the Find what text box, see screenshot:

enter the value to find into the Find what text box

Tips: If you need to find the values with case sensitive or match the entire cell content, please click the Options button to get the advanced search options, such as "Match Case" and "Match entire cell content" as you need.

3. And then, click Find All button, in the find result box, click any one item, and then press Ctrl + A to select all found items, see screenshot:

press Ctrl + A to select all found items

4. At last, click Close button to close this dialog. Now, you can fill a background or font color for these selected values, see screenshot:

Apply the background color for the selected cells: Apply the font color for the selected cells:
Apply the background color for the selected cells Apply the font color for the selected cells

Method 3: Change background or font color based on cell value statically with Kutools for Excel

 

Kutools for Excel’s Super Find feature supports lots of conditions for finding values, text strings, dates, formulas, formatted cells and so on. After finding and selecting the matched cells, you can change the background or font color to your desired.

Kutools for Excel offers over 300 advanced features to streamline complex tasks, boosting creativity and efficiency. Itegarate with AI capabilities, Kutools automates tasks with precision, making data management effortless. Detailed information of Kutools for Excel...         Free trial...

1. Select the data range that you want to find, and then click Kutools > Super Find, see screenshot:

click Kutools > Super Find

2. In the Super Find pane, please do the following operations:

  • (1.) First, click the Values option icon;
  • (2.) Choose the find scope from the Within drop down, in this case, I will choose Selection;
  • (3.) From the Type drop down list, select the criteria that you want to use;
  • (4.) Then click Find button to list all corresponding results into the list box;
  • (5.) At last, click Select button to select the cells.

specify the options in the pane

3. And then, all cells matching the criteria have been selected at once, see screenshot:

all cells matching the criteria are selected

4. And now, you can change the background color or font color for the selected cells as you need.

Best Office Productivity Tools

🤖 Kutools AI Aide: Revolutionize data analysis based on: Intelligent Execution   |  Generate Code  |  Create Custom Formulas  |  Analyze Data and Generate Charts  |  Invoke Kutools Functions
Popular Features: Find, Highlight or Identify Duplicates   |  Delete Blank Rows   |  Combine Columns or Cells without Losing Data   |   Round without Formula ...
Super Lookup: Multiple Criteria VLookup    Multiple Value VLookup  |   VLookup Across Multiple Sheets   |   Fuzzy Lookup ....
Advanced Drop-down List: Quickly Create Drop Down List   |  Dependent Drop Down List   |  Multi-select Drop Down List ....
Column Manager: Add a Specific Number of Columns  |  Move Columns  |  Toggle Visibility Status of Hidden Columns  |  Compare Ranges & Columns ...
Featured Features: Grid Focus   |  Design View   |   Big Formula Bar    Workbook & Sheet Manager   |  Resource Library (Auto Text)   |  Date Picker   |  Combine Worksheets   |  Encrypt/Decrypt Cells    Send Emails by List   |  Super Filter   |   Special Filter (filter bold/italic/strikethrough...) ...
Top 15 Toolsets12 Text Tools (Add Text, Remove Characters, ...)   |   50+ Chart Types (Gantt Chart, ...)   |   40+ Practical Formulas (Calculate age based on birthday, ...)   |   19 Insertion Tools (Insert QR Code, Insert Picture from Path, ...)   |   12 Conversion Tools (Numbers to Words, Currency Conversion, ...)   |   7 Merge & Split Tools (Advanced Combine Rows, Split Cells, ...)   |   ... and more
Use Kutools in your preferred language – supports English, Spanish, German, French, Chinese, and 40+ others!

Supercharge Your Excel Skills with Kutools for Excel, and Experience Efficiency Like Never Before. Kutools for Excel Offers Over 300 Advanced Features to Boost Productivity and Save Time.  Click Here to Get The Feature You Need The Most...


Office Tab Brings Tabbed interface to Office, and Make Your Work Much Easier

  • Enable tabbed editing and reading in Word, Excel, PowerPoint, Publisher, Access, Visio and Project.
  • Open and create multiple documents in new tabs of the same window, rather than in new windows.
  • Increases your productivity by 50%, and reduces hundreds of mouse clicks for you every day!