Conditional Formatting Arrrggghhh !!

JimM

Well-known Member
Joined
Nov 11, 2003
Messages
741
I'm trying to apply what should be a very simple conditional formatting to some cells

D6 has the number 10
E6 has the number 6

H18 is the cell I want to conditional format, I'm doing it by formula so that

=H18>$D$6 paint cell red - this works great, if H18 is 10 or less then the background colour doesn't change, over 10 and it goes red

I've then put in a second condition

=H18<$E$6 paint cell blue - but now any value of H18 less than 10 it paints the cell blue, I only want it to do this if H18 is less than 6

What am I 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.
That works for me
ZFluff.xlsm
ABCDEFGH
1
2
3
4
5
6106
7
8
9
10
11
12
13
14
15
16
17
188
1911
205
Main
Cells with Conditional Formatting
CellConditionCell FormatStop If True
H18:H20Expression=H18>$D$6textNO
H18:H20Expression=H18<$E$6textNO
 
Upvote 0
Looks fine to me. Check E6 truely is a number. Test with =ISNUMBER(E6)
 
Upvote 0
I don't believe it, Steve's hit the nail on the head!
For some reason it was formatted as text, annoyingly I had checked this and formatted the cell as a number but looks like you have to then edit the cell for the formatting to actually take effect!

Thanks for the help both
 
Upvote 0
Simply changing the format of a cell, does not change the value that the cell holds.

Glad we could help & thanks for the feedback
 
Upvote 0

Forum statistics

Threads
1,214,649
Messages
6,120,728
Members
448,987
Latest member
marion_davis

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