Conditional formatting based on if statement.

G

Guest

I am trying to have different cells colors based on a list of province and
state abbreviations. Ex. If cell C6= NB, NS, or PE......... change background
to red,else change to green. Is this to much to expect or is it possible.
 
J

Jason Morin

Under CF, select "Formula Is" and put:

=OR(C6="NB",C6="NS",C6="PE")

Press the "Format" button and choose red on the Pattern
tab.

Create a 2nd condition by pressing "Add>>" and use:

=OR(C6<>"NB",C6<>"NS",C6<>"PE")

Select green on the Pattern tab.

HTH
Jason
Atlanta, GA
 
G

Guest

Perfect Jason, just exactly what I was looking for. Thanks very much.
Kevin

Jason Morin said:
Under CF, select "Formula Is" and put:

=OR(C6="NB",C6="NS",C6="PE")

Press the "Format" button and choose red on the Pattern
tab.

Create a 2nd condition by pressing "Add>>" and use:

=OR(C6<>"NB",C6<>"NS",C6<>"PE")

Select green on the Pattern tab.

HTH
Jason
Atlanta, GA
 

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