SOLVED

Conditional formatting

Iron Contributor

Hello guys

 

i have strange result from conditional formatting, i put a conditional formatting for a cell to have green color when cell value is >60, but even if i put any text it gives green value something is strange

 

I attached a photo for my issue, it is cell F5 and it contains IF function, IF evaluates to true or false so it should not be green color

Annotation 2020-12-21 085033.jpgAnnotation 2020-12-21 085102.jpg

 

3 Replies
best response confirmed by chahine (Iron Contributor)
Solution

@chahine 

Excel treats all text values as greater than all number values.

Change the rule as follows (I will assume that B5 is the active cell within the selection when you edit it):

  • Select 'Use a formula to determine which cells to format.
  • Enter the following formula in the box:

=AND(ISNUMBER(B5),B5>=60)

@Hans Vogelaar Thanks Hans, new tip for me that text is greater than number :)

Good idea Hans, Thanks
1 best response

Accepted Solutions
best response confirmed by chahine (Iron Contributor)
Solution

@chahine 

Excel treats all text values as greater than all number values.

Change the rule as follows (I will assume that B5 is the active cell within the selection when you edit it):

  • Select 'Use a formula to determine which cells to format.
  • Enter the following formula in the box:

=AND(ISNUMBER(B5),B5>=60)

View solution in original post