Cell color

rkawasak

New Member
Joined
Apr 22, 2002
Messages
2
I would like to set colors to cells based on their values. If below or equal to 10, red. If between 10 and 70, yellow. If above or equal to 70, green. I tried using the Conditional Formatting feature, but all the blank cells in the range were colored red. The blank cells need to remain white. Any help will be greatly appreciated.
 

Excel Facts

Best way to learn Power Query?
Read M is for (Data) Monkey book by Ken Puls and Miguel Escobar. It is the complete guide to Power Query.
On 2002-04-23 09:33, rkawasak wrote:
I would like to set colors to cells based on their values. If below or equal to 10, red. If between 10 and 70, yellow. If above or equal to 70, green. I tried using the Conditional Formatting feature, but all the blank cells in the range were colored red. The blank cells need to remain white. Any help will be greatly appreciated.

For the red condition use...

=AND(LEN(A1)>0,A1<=10)
 
Upvote 0
Conditional formatting

Condition 1
Formula Is
=AND(NOT(ISBLANK($A$1)),$A$1<=10)

Condition 2
Formula Is
=AND($A$1>10,$A$1<=70)

Condition 3
Formula Is
=AND($A$1>70,ISNUMBER($A$1))

Format to suit.

Bye,
Jay
 
Upvote 0
Hi Rk,

Based on what you posted, if I was the computer I would have coloured the blank cells red as well :) You need to tell the conditional formatting at what point below 10 you want the cell to be white.

You said 10 and below or:
=> 10 RED so Null (blank) cells will be RED.

You might try a between statement in your conditional formatting. All cells BETWEEN .0000001 and 10 will be RED (this assumes that you will never have an amount less than .0000001).

Take care,
Tres
 
Upvote 0

Forum statistics

Threads
1,214,643
Messages
6,120,702
Members
448,980
Latest member
CarlosWin

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