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

Remove leading & trailing spaces
Save as CSV to remove all leading and trailing spaces. It is faster than using TRIM().
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,214,584
Messages
6,120,387
Members
448,957
Latest member
Hat4Life

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