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.
 

Excel Facts

Which came first: VisiCalc or Lotus 1-2-3?
Dan Bricklin and Bob Frankston debuted VisiCalc in 1979 as a Visible Calculator. Lotus 1-2-3 debuted in the early 1980's, from Mitch Kapor.
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.
 
Upvote 0

Forum statistics

Threads
1,215,043
Messages
6,122,816
Members
449,095
Latest member
m_smith_solihull

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
Back
Top