Conditional format Highlight numbers less than 100

matthewR
5StarLounger
Posts: 627
Joined: 03 Feb 2010, 15:02

Conditional format Highlight numbers less than 100

Post by matthewR »

I would like to do a conditional format and highlight numbers in column C less than 100. The problem is there are blanks in the column. I tried =(C1)<100 - but the less than 100 numbers highlight and so do the blanks.

User avatar
HansV
Administrator
Posts: 78524
Joined: 16 Jan 2010, 00:14
Status: Microsoft MVP
Location: Wageningen, The Netherlands

Re: Conditional format Highlight numbers less than 100

Post by HansV »

Try using this formula to determine which cells to format:

=AND(C1<100,NOT(ISBLANK(C1)))
Best wishes,
Hans

User avatar
StuartR
Administrator
Posts: 12612
Joined: 16 Jan 2010, 15:49
Location: London, Europe

Re: Conditional format Highlight numbers less than 100

Post by StuartR »

HansV wrote:=AND(C1<100,NOT(ISBLANK(C1)))
I sometimes have to do this when C1 contains a formula, that leaves the cell apparently blank. In this case I use
=AND(C1<100,LEN(C1)>0)
StuartR


User avatar
HansV
Administrator
Posts: 78524
Joined: 16 Jan 2010, 00:14
Status: Microsoft MVP
Location: Wageningen, The Netherlands

Re: Conditional format Highlight numbers less than 100

Post by HansV »

Good point!
Best wishes,
Hans