Hi All,
I'm using a formula in conditional formatting to highlight cells values compared to a standard i.e. greater than or equal to or less than.
Most values will be straight numbers but others will be entered with a < symbol leading the number. The formatting I'm using is simple red green (red bad green good). The problem is when I enter a value with a < symbol the cell turns red.
All help greatfully accepted. Example attached.
Thank you.
Last edited by blaxal; 02-12-2010 at 08:46 AM.
You could modify your CF formula such that:
=--REPLACE(IF(ISNUMBER(A3)," "&A3,A3),1,1,"")>=$A$2
format as red
=--REPLACE(IF(ISNUMBER(A3)," "&A3,A3),1,1,"")<$A$2
format as green
EDIT: the above wouldn't work for <= and >= ... edit:edit - see below...
Last edited by DonkeyOte; 02-12-2010 at 08:04 AM.
My Recommended Reading:
Volatility
Sumproduct & Arrays
Pivot Intro
Email from XL - VBA & Outlook VBA
Function Dictionary & Function Translations
Dynamic Named Ranges
....Or this for green
=SUBSTITUTE(SUBSTITUTE(A3,">",""),"<","")+0<$A$2
similar for red except the last < becomes >=
Just for sake of my sanity...
=--REPLACE(REPT(" ",(MID($A3,2,1)<>"=")+ISNUMBER($A3))&$A3,1,2,"")>=$A$2
format red
=--REPLACE(REPT(" ",(MID($A3,2,1)<>"=")+ISNUMBER($A3))&$A3,1,2,"")<$A$2
format green
should work for >, <, >=, <=, =
My Recommended Reading:
Volatility
Sumproduct & Arrays
Pivot Intro
Email from XL - VBA & Outlook VBA
Function Dictionary & Function Translations
Dynamic Named Ranges
Thanks guys, worked a charm, very much appreciated.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks