![]() |
![]() |
|
|||||||
| 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 |
|
Board Regular
Join Date: Apr 2002
Posts: 130
|
How do I;
If the value in A1<8 then A2 cell is red, otherwise A2 is green. Thanks a million |
|
|
|
|
|
#2 |
|
Board Regular
Join Date: Feb 2002
Posts: 7,743
|
Using Conditional formatting
Formula is =countif(a1,"<8")Pattern red Cell value is greater than 8 Pattern green However, with the above the cell will either be red or green all the time. |
|
|
|
|
|
#3 |
|
Board Regular
Join Date: Apr 2002
Posts: 130
|
I went into conditional formating but I didn't see how to specify a color
|
|
|
|
|
|
#4 |
|
MrExcel MVP
Join Date: Apr 2002
Location: Vancouver BC , Canada
Posts: 6,259
|
for the formula use the "cell value is" in the drop down . To choose colors select the format button in the conditional format window then the font tab and color drop down.
For background color choose the pattern tab.
__________________
<MARQUEE>...........Never be afraid to try something new. Remember, amateurs built the ark, professionals built the Titanic...............The easiest thing to find is fault, don't be easy !.. --Anonymous--...</marquee> |
|
|
|
|
|
#5 |
|
Board Regular
Join Date: Apr 2002
Posts: 130
|
thank you!!!
|
|
|
|
|
|
#6 | |
|
MrExcel MVP
Join Date: Mar 2002
Location: Michigan USA
Posts: 11,452
|
Quote:
The CONDITIONAL format should be ... condition 1 ... formula is =A1<8 ... Pttern -- color 'red' condition 2 ... formula is =A1>=8 ... Pattern -- color 'green by the way Brian -- for the conditional formatting here we are not counting any thing so no need for COUNT... Hope This Helps!
__________________
Regards! Yogi Anand, D.Eng, P.E. Energy Efficient Building Network LLC www.energyefficientbuild.com |
|
|
|
|
|
|
#7 |
|
Board Regular
Join Date: Feb 2002
Posts: 7,743
|
Yogi,
Mahalo! Brian |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|