ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Conditional formatting based on if statement. (https://www.excelbanter.com/excel-worksheet-functions/9064-conditional-formatting-based-if-statement.html)

kevin

Conditional formatting based on if statement.
 
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.
--
Thanks Kevin

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

-----Original Message-----
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.
--
Thanks Kevin
.


kevin

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

"Jason Morin" wrote:

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

-----Original Message-----
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.
--
Thanks Kevin
.




All times are GMT +1. The time now is 02:48 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com