Conditional Formatting "" Value showing as Greater Than!

Jonny Edo

New Member
Joined
Sep 23, 2013
Messages
8
Hi,
I have a formula in a cell which i need conditional formatting. The formula is as follows;

=IF(ISERROR(AVERAGEIFS($J$17:$J$34,$A$17:$A$34,"Day",$B$17:$B$34,"PF18")),"",(AVERAGEIFS($J$17:$J$34,$A$17:$A$34,"Day",$B$17:$B$34,"PF18")))

My conditional formatting basically states that;
>=$H$39 = Green
<$H$39 = Red
=$H$39="" = Blank (No formatting)

When there is an instance where an error value is returned, i.e. "", the cell is changed to green indicating that it reads the "", as greater than the value in H39!

Any idea why the conditional format would read "" as greater than a number value?

Thanks
 

Excel Facts

Select a hidden cell
Somehide hide payroll data in column G? Press F5. Type G1. Enter. Look in formula bar while you arrow down through G.
Hi and welcome to Mr Excel Formula

Excel evaluates any text greater than a number

Try the formula option (assumes A1 as the cell containing the formula . Adjust to suit)

=AND(A1<>"",A1>=$H$39) ---> Green

=AND(A1<>"",A1<$H$39) ---> Red

M.
 
Upvote 0
You're not comparing the Cell value to H39 with this...
=$H$39=""
You are comparing H39 to ""

I think you don't want any conditional format for blank if you don't want a colored cell.
 
Upvote 0
oops...I forgot the 3rd condition H39 = blank ---> no formatting

Try these

=AND(A1<>"",A1>=$H$39,$H$39<>"") ---> Green

=AND(A1<>"",A1<$H$39,$H$39<>"") ---> Red

M.
 
Upvote 0
Sorry, my formulas are not correct. Try

=AND(ISNUMBER(A1),ISNUMBER($H$39),A1>=$H$39) ---> green

=AND(ISNUMBER(A1), ISNUMBER($H$39), A1<$H$39) ---> red

Change A1 to the cell of interest

M.
 
Upvote 0

Forum statistics

Threads
1,215,412
Messages
6,124,761
Members
449,187
Latest member
hermansoa

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