![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
New Member
Join Date: Apr 2002
Posts: 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.
|
|
|
|
|
|
#2 | |
|
MrExcel MVP
Join Date: Feb 2002
Location: Austin, Texas USA
Posts: 11,654
|
Quote:
=AND(LEN(A1)>0,A1<=10) |
|
|
|
|
|
|
#3 |
|
MrExcel MVP
Join Date: Mar 2002
Location: Chicago, IL USA
Posts: 2,042
|
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 |
|
|
|
|
|
#4 |
|
New Member
Join Date: Apr 2002
Location: Capital One
Posts: 6
|
Hi Rk,
Based on what you posted, if I was the computer I would have coloured the blank cells red as well 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 |
|
|
|
|
|
#5 |
|
New Member
Join Date: Apr 2002
Posts: 2
|
Thanks guys! Problem solved. Really appreciated the quick response, wow!
|
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|