Conditional Format Issues

DPChristman

Board Regular
Joined
Sep 4, 2012
Messages
177
Office Version
  1. 365
Platform
  1. Windows
I have conditional formatting set up on a large spreadsheet. In looking for exceptions above a given threshold, the formula basically says highlight examples where a given location is greater than 30 % higher than the average (greater than X*1.3). This conditional formatting seems to work well on some columns. Yet in other columns it highlights everything, including blank cells.
Since some of the locations do not have any data, I used this formula to eliminate errors and N/As


=IF(I8="","",SUM(G8/I8))

= IF ( I8 = "" , "" , SUM ( G8 / I8 ) )


Any idea what I am doing wrong?
 

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.
1st, CF rules only work on TRUE or FALSE (1 or 0), so you only need to structure your formula to 1 of those.
2nd, you don't need to use SUM() for a calc like that, you would use SUM when adding up a series of numbers
so you would only need, in your example, =IF(I8="","",G8/I8)

You did not give your CF rule, but it would be something like...
=$A2>$B2*1.3
where column A would contain the value to test, and column B would contain your criteria
Note the use of the $ sign, that locks the specific column so it doesn't adjust when applied across other columns

Make sure that your Applies To range covers all the data you want the rule applied to
 
Upvote 0
If you have "" in a cell it will always be considered greater than a number by Excel.

You should probably add a check for "" in your conditional formatting formula.

Not sure about the other cells apparently being wrongly, can you give some examples?
 
Upvote 0
DPC,

Maybe conditional formula similar to below example.
Excel Workbook
GHIJK
4Average >>273.21%
5
6
7
82450.00%
95771.43%
10347485.71%
11
12347485.71%
13
14
Sheet5
Cells with Conditional Formatting
CellConditionCell FormatStop If True
K81. / Formula is =AND(ISNUMBER(K8),K8>$K$4*1.3)Abc



Hope that helps.
 
Upvote 0
Yes, I just noticed that I don't have this issue with negative values, and the CF is less than. It is only on the positive values. Is there an easy way to fix this? I have 4964 cells with this formula in it that is generated the bad highlighting
 
Upvote 0
Sorry, ok, yes I see what you mean now. Yes.
In this case the working range is =$Q$8:$Q$1247
I think if having "" in the cell always makes the value greater than a number that is the issue.
I use the same CF with less than for negative values in adjacent columns, and that is not a problem. The highlighting works perfectly there. Just don't know how to fix it.
 
Last edited:
Upvote 0
Sorry, ok, yes I see what you mean now. Yes.

I think if having "" in the cell always makes the value greater than a number that is the issue.
I use the same CF with less than for negative values in adjacent columns, and that is not a problem. The highlighting works perfectly there. Just don't know how to fix it.

Have you not tried my suggestion of =AND(ISNUMBER(Bla),etc) ??
That should get around the "" issue.
 
Upvote 0

Forum statistics

Threads
1,223,903
Messages
6,175,284
Members
452,630
Latest member
OdubiYouth

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