Fill color with if function

M

maz

Hi.
I want to fill a cell with some color based on the value in other cell.
if a2>4 then a1 is blue.
Can anyone help me?
thanks
 
M

Mike H

Hi,

Use conditional formatting.
Select A1 then
Format|Conditional Formatting
Formula is
Enter the formula =A2>4
Pick you colour
OK

Mike
 
P

Pete_UK

You use conditional formatting to do this. Select A1, then click on
Format | Conditional Formatting and in the dialogue box select Formula
Is rather than Cell Value Is. Enter this formula:

=A2>4

Then click the Format button, then the Patterns tab (for background
colours) and choose your colour. OK your way out.

Hope this helps.

Pete
 
L

L N

I have a similar situation only I have 4 columns that I need all to be greater then 3 and then fill color to be used in my rank column. Is this possible?
 
S

Spiky

I have a similar situation only I have 4 columns that I need all to be greater then 3 and then fill color to be used in my rank column. Is this possible?
Use this formula in conditional formating for your rank column (adjust
to suit your references), then copy formats down the column.
=AND(B3>3,C3>3,D3>3,E3>3)
 

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