Conditional Formatting

James8761

Board Regular
Joined
Apr 24, 2012
Messages
154
Office Version
  1. 2019
Platform
  1. Windows
With conditional formatting is it possible to highlight an entire row green if a given cell meets a certain criteria?

i.e. if cell F38 is greater than zero highlight Row 38 green

then on the other side if cell F38 = zero then highlight Row 38 blue


Thanks for any advice.

James
 

Excel Facts

Using Function Arguments with nested formulas
If writing INDEX in Func. Arguments, type MATCH(. Use the mouse to click inside MATCH in the formula bar. Dialog switches to MATCH.
Hi James,

go to conditional formatting and select manage rules, then click new rule.

Then select "Use a formula to determine which cells to format".

Enter the below formula into the box then click format and select the blue colour.
=AND($F38=0,NOT(ISBLANK($F38)))

press OK, and in the Applies to box select the area you want to apply this formatting to e.g. A38 to P235 (i would avoid applying it just a row as your spreadsheet would grow larger then needed).

then press apply.

repeat the same steps for the >0 and red colour with the below formula.
=$F38>0
 
Upvote 0
Hi James,

go to conditional formatting and select manage rules, then click new rule.

Then select "Use a formula to determine which cells to format".

Enter the below formula into the box then click format and select the blue colour.
=AND($F38=0,NOT(ISBLANK($F38)))

press OK, and in the Applies to box select the area you want to apply this formatting to e.g. A38 to P235 (i would avoid applying it just a row as your spreadsheet would grow larger then needed).

then press apply.

repeat the same steps for the >0 and red colour with the below formula.
=$F38>0


That's excellent. Thanks very much, saves me a lot of time!
 
Upvote 0

Forum statistics

Threads
1,216,060
Messages
6,128,545
Members
449,457
Latest member
ncguzzo

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