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

Add Bullets to Range
Select range. Press Ctrl+1. On Number tab, choose Custom. Type Alt+7 then space then @ sign (using 7 on numeric keypad)

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.
 
Master Excel Bundle

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

Forum statistics

Threads
1,164,088
Messages
5,835,321
Members
430,351
Latest member
ddalton

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