Sunteți pe pagina 1din 7

05/07/2018 MS Excel 2010: Change the font color based on the value in the cell

MS Excel 2010: Change the font color based on the value in the cell
This Excel tutorial explains how to use conditional formatting to change the font color based on the value of a
cell in Excel 2010 (with screenshots and step-by-step instructions).

See solution in other versions


of Excel
:

Excel
2011
for Mac

Excel
2007
Excel
2003

Question: In Microsoft Excel 2010, I'm putting the sum of 3 cells in a 4th cell. If the sum is greater than 10, I
would like the sum to be the color red. If the sum is less than 10, I would like the sum to be the color blue. Is
this possible?

Answer: If you wish to change the color of the font based on the value in a cell, you will need to apply
conditional formatting.

To do this, select the cell that you wish to apply the formatting to. In this example, we've selected cell B8.

https://www.techonthenet.com/excel/questions/cond_format1_2010.php 1/7
05/07/2018 MS Excel 2010: Change the font color based on the value in the cell

Select the Home tab in the toolbar at the top of the screen. Then in the Styles group, click on the
Conditional Formatting drop-down and select Manage Rules.

When the Conditional Formatting Rules Manager window appears, click on the "New Rule" button to enter the
first condition.

https://www.techonthenet.com/excel/questions/cond_format1_2010.php 2/7
05/07/2018 MS Excel 2010: Change the font color based on the value in the cell

When the New Formatting Rule window appears, select Format only cells that contain as the rule type.

Then select Cell Value in the first drop down, greater than in the second drop down, and enter 10 in the final
box. In our example, we've selected when the cell value is greater than 10.

Next, we need to select what formatting to apply when this condition is met. To do this, click on the Format
button.

When the Format Cells window appears, select the formatting conditions that you wish to apply. We've
changed the Color to Red. Then click on the OK button.

https://www.techonthenet.com/excel/questions/cond_format1_2010.php 3/7
05/07/2018 MS Excel 2010: Change the font color based on the value in the cell

When you return to the New Formatting Rule window, you should see the preview of the formatting in the
Preview box. In this example, the preview box shows the text in red. Next click on the OK button.

This will return you to the Conditional Formatting Rules Manager window.

If you wish to apply more than one condition, you will need to click on the New Rule button again.

https://www.techonthenet.com/excel/questions/cond_format1_2010.php 4/7
05/07/2018 MS Excel 2010: Change the font color based on the value in the cell

When the New Formatting Rule window appears, we need to set up the second condition.

Select Format only cells that contain as the rule type.

Then select Cell Value in the first drop down, less than in the second drop down, and enter 10 in the final
box. In our example, we've selected when the cell value is less than 10.

Next, we need to select what formatting to apply when this second condition is met. To do this, click on the
Format button.

When the Format Cells window appears, select the formatting conditions that you wish to apply to the second
condition. We've changed the Color to Blue. Then click on the OK button.

https://www.techonthenet.com/excel/questions/cond_format1_2010.php 5/7
05/07/2018 MS Excel 2010: Change the font color based on the value in the cell

When you return to the New Formatting Rule window, you should see the preview of the formatting in the
Preview box. In this example, the preview shows the text in blue. Next click on the OK button.

We've added two different conditions. When you're done, click on the OK button.

https://www.techonthenet.com/excel/questions/cond_format1_2010.php 6/7
05/07/2018 MS Excel 2010: Change the font color based on the value in the cell

Now when you return to the spreadsheet, the conditional formatting will be applied. As you can see, the value
in cell B8 appears in red.

Copyright TechOnTheNet.com

https://www.techonthenet.com/excel/questions/cond_format1_2010.php 7/7

S-ar putea să vă placă și