Conditional Formatting Help

ItalianPlatinum

Well-known Member
Joined
Mar 23, 2017
Messages
793
Office Version
  1. 365
  2. 2019
Platform
  1. Windows
Hello I have what I thought was an easy modification, but having issues finding an easy way to solution. I have 3 columns one column is pre, one is post, and the 3rd is differences. I have existing conditional formatting in column C to highlight red if the data isn't zero and green if the data is zero. The new condition i was looking to add is if any data below the header equals zero to highlight the header green and if any don't equal zero to highlight the header red.

PrePostDifferences
12-1
110
220
34-1

So in this scenario "Differences" would be shaded red as well as the first and last record. If those records were zero then all 5 in column C would be shaded green including the header "Differences." Any help is much appreciated as always.
 
I noticed if I don't do stop if true it'll flag green shade and white font. BUT if i do stop if true for the GREEN it does the correct conditional shading (green shade and automatic font). is that weird to you?
you probably have more than one conditional formula set for that cell. (click the drop down to show all conditional formats for all cells in the worksheet).
(ie.. change current selection to worksheet)
Also, please screen shot the header row as well. I can't tell what rows you're on.

EDIT: actually I see "Differences" is not even colored. So I think you have multiple rules going on.
 
Upvote 0

Excel Facts

Return population for a City
If you have a list of cities in A2:A100, use Data, Geography. Then =A2.Population and copy down.
I got it to work using @Joe4 formulas, see below. I am now just left with the blank cells showing green, anyway around that or do i need to create another conditional format looking for blanks?

C1 , Green Shade =COUNT($C$2:$C$5000)-COUNTIF($C$2:$C$5000,"0")=0
C1 , Red Share =COUNT(C2:C5000)-COUNTIF(C2:C5000,"0")>0
 
Upvote 0
Okay, so you have formulas that return "" if there is nothing to calculate in the two prior columns?
The format would be, (this is me typing not working in excel)
Excel Formula:
=C2 = ""

and make that no fill color.
 
Upvote 0

Forum statistics

Threads
1,215,219
Messages
6,123,678
Members
449,116
Latest member
HypnoFant

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