Cell Property Changes Based on Value of Other Cells

erc1452

New Member
Joined
Aug 17, 2002
Messages
26
I have seen this in spreadsheets before, but for the life of me cannot figure out how it is done.

How do you make a cells background color change, border change, text go bold, etc, based on the value of another cell?

Example: Cell A1 has a white background, but when the value of Cell B1 is greater than 4, the border of Cell A1 becomes Yellow.
 

Some videos you may like

Excel Facts

Do you hate GETPIVOTDATA?
Prevent GETPIVOTDATA. Select inside a PivotTable. In the Analyze tab of the ribbon, open the dropown next to Options and turn it off

Mudface

MrExcel MVP
Joined
Feb 18, 2002
Messages
3,339
You need to use either Conditional Formatting or a macro to do this. For your example, select cell A1, click on Format-Conditional Formatting and change the dropddown from 'Cell Value Is' to 'Formula Is'. Enter the following formula: -

=B1>4

Then click on the Format button and select your format. Do a search on the site for conditional formatting for many other examples, both simple and complex.
 

Watch MrExcel Video

Forum statistics

Threads
1,122,496
Messages
5,596,502
Members
414,073
Latest member
Contilly

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Top