IF formula with conditional formating help please

F

ferde

Green 95%-100%
Yellow 85%- 95%
Red <85%

....A ....B
100% 70%

I would like to highlight cells with a color the cell meets certain
criteria. I think I need to use an IF formula . In my example here ...if
B2 is within 85%-94% of A2 then the answer would be "yellow" but if B2 is <
85% of A2 then it would be "RED". I thought I would plug this formula into
the conditional format of the cell in order for it to highlight the cell
aproppriately but I may be approaching this all wrong and would love some
help.
 
B

Bill Kuunders

you would need to have three conditional formats on B2 cell

if cell value is greater than ....=0.95*A2
if cell value is between ......=0.85*A2 and =0.95*A2
if cell value is smaller than ....=0.85*A2

after entering the first condition and format
click onto "add" etc.

you can copy the format onto other cells using format painter
 
F

ferde

This works great for both a cell value > 95 and < 85 but excel gives me an
error message when I try and plug in if the cell value is between
......=0.85*a2 and =0.95*A2. The error message said "you may not use unions
or intersections for conditional formatting entries." Maybe I am putting
the formula in wrong. I used the word AND but that may not be right. Any
ideas?
 
F

ferde

I figured it out using your example.... I just couldnt use the word AND ....
Thank you so much for your quick reply.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top