Cookies help us deliver our services. By using our services, you agree to our use of cookies.
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 background color based on cell value in Excel?

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

Change background color based on cell value with Conditional Formatting command

Change background color based on cell value with Kutools for Excel

Change background color based on specific value or text with Kutools for Excel


Select and change background color based on cell value:

Kutools for Excel’s Select Specific Cells feature can help you find and select the specific cells, and then you can do some formatting for the selected cells you need.

doc replace greater than 8

Kutools for Excel: with more than 200 handy Excel add-ins, free to try with no limitation in 60 days. Download and free trial Now!


arrow blue right bubble Change background color based on cell value with Conditional Formatting command


Supposing you have a range of data, and now you need to color the values between 80 and 100, as the following screenshot shown, how could you change background color based on cell value?

doc-change-fill-color1-1

Excel's Conditional Formatting command can change background color for specific cells based on their values with following steps:

1. Select the range that you will work with, then click the Home > Conditional Formatting > New Rule….

doc-change-fill-color2-2

doc-change-fill-color3-3

2. In the New Formatting Rule dialog box, select and highlight 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.

3. Click the Format button, in the Format Cells dialog box, set the background color under Fill tab.

doc-change-fill-color4-4

4. Click OK > OK to close the dialogs. Then the specific cells with value between 80 and 100 are filled with the new background color in the selection. See screenshot:

doc-change-fill-color5-5

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


arrow blue right bubble Change background color based on cell value with Kutools for Excel

Except the Conditional Formatting, here, we bring you another easy way: Kutools for Excel's Select Specific Cells tool, which can help you select the specific cells firstly, and fill them later.

Kutools for Excel : with more than 300 handy Excel add-ins, free to try with no limitation in 60 days

After Installing Kutools for Excel, please do as follows:

1. Select the range that you will work with, and click the Kutools > Select > Select Specific Cells….

doc-change-fill-color6-6

2. In the Select Specific Cells dialog box, check the Cell option; specify the filter condition from Specific type, and then click OK button. See the following screenshot:

doc-change-fill-color7-7

3. Then cells containing values between 80 and 100 are selected in the selection. Go on to click the Fill button doc-change-fill-color9 under Home tab to change their background color. See screenshot:

doc-change-fill-color8-8

 Download and free trial Kutools for Excel Now!


arrow blue right bubble Change background color based on specific value or text with Kutools for Excel

This Select Specific Cells utility also can help you to select and color the specific text or value as you need. Please do as follows:

1. Select the data range that you want to color the specific cells.

2. Then apply this Select Specific Cells feature, in the popped out dialog box, click Cell under the Selection type, and choose Equals from the Specific type drop down list, then enter the specific text or value that you want to select. See screenshot:

doc-change-fill-color9-9

3. Then click Ok button, and the specific values in the selection have been selected, and then specify a color under the Fill Color button to shade the cells you need, see screenshot:

doc-change-fill-color10-10

Click to know more about this Kutools for Excel's Select Specific Cells tool.

Download and free trial Kutools for Excel Now!


arrow blue right bubbleDemo: Change background color based on cell value with Kutools for Excel

Kutools for Excel: with more than 200 handy Excel add-ins, free to try with no limitation in 60 days. Download and free trial Now!



Recommended Productivity Tools

Office Tab

gold star1 Bring handy tabs to Excel and other Office software, just like Chrome, Firefox and new Internet Explorer.

Kutools for Excel

gold star1Amazing! Increase your productivity in 5 minutes. Don't need any special skills, save two hours every day!

gold star1300 New Features for Excel, Make Excel Much Easy and Powerful:

  • Merge Cell/Rows/Columns without Losing Data.
  • Combine and Consolidate Multiple Sheets and Workbooks.
  • Compare Ranges, Copy Multiple Ranges, Convert Text to Date, Unit and Currency Conversion.
  • Count by Colors, Paging Subtotals, Advanced Sort and Super Filter,
  • More Select/Insert/Delete/Text/Format/Link/Comment/Workbooks/Worksheets Tools...

Screen shot of Kutools for Excel

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.
    ginge27 · 3 years ago
    I'm trying to change the colour of a cell depending on the text next to it.... I'm struggling....
    I hope someone can help
  • To post as a guest, your comment is unpublished.
    Maiqueashworth · 3 years ago
    Hi
    In an earlier post:
    # Jay Chivo - Admin 2014-04-03 01:56
    following a question from VINAY JASWAL, you explain very nicely how to do a conditional cell fill if a value is greater or less than a numerical value. Can this be done for a string value? i.e. Can a C be greater than a D? I am looking to choose cell colour depending on whether the grade is greater than, equal to or less than a certain value. Thanks in anticipation.
  • To post as a guest, your comment is unpublished.
    Neil · 3 years ago
    In column A I have a list of product names and in column B I have a formula that grades the product performance in the marketplace.

    I figured out how to use the conditional formatting to change the performance metric cells based on the color gradient using the percent value. What I can't figure out how to do is change the background of the cell that contains the product name to be the same color as the conditional formatted cell.

    Can you help?
  • To post as a guest, your comment is unpublished.
    pravin · 3 years ago
    Product price priceid
    mobile 2000 101
    asset 100 102

    if i have to color priceid red where price is less than 1000

    what we will do ?
    need help
  • To post as a guest, your comment is unpublished.
    Mick Dineen · 3 years ago
    I want to format a column of cells based on completion status, so I will have complete, in-progress and open. I want to format so I have a colour for each status - green (open), yellow (in-progress) and grey (complete). I have tried to conditional format in excel with no luck.

    can you give me a solution?