Conditional formatting

Edwards28

New Member
Joined
Aug 9, 2018
Messages
1
I have a set of data (5 colums wide 50+ rows down) containing both numbers and text.

I would like to highlight all numbers greater than 5 in red and all lower than 5 in green.

The issue I’m having is it’s highlighting all the cells containing text red, is there a way to ignore the text?
 

Excel Facts

Wildcard in VLOOKUP
Use =VLOOKUP("Apple*" to find apple, Apple, or applesauce
for your conditional formatting,
formulas:

red
Code:
=VALUE(E2)>=5
green
Code:
=VALUE(E2)<5
 
Last edited:
Upvote 0
Hi,


Book1
ABCD
1for Greenfor Red
24TRUEFALSE
3FALSEFALSE
47FALSETRUE
5fiveFALSEFALSE
6FALSEFALSE
Sheet175
Cell Formulas
RangeFormula
C2=AND(ISNUMBER(A2),A2<5)
D2=AND(ISNUMBER(A2),A2>5)


What happens when A2 = 5 ?, I've assumed no highlight.
 
Last edited:
Upvote 0

Forum statistics

Threads
1,223,903
Messages
6,175,289
Members
452,631
Latest member
a_potato

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