+ Reply to Thread
Results 1 to 3 of 3

Conditional formatting based on if statement.

  1. #1
    kevin
    Guest

    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

  2. #2
    Jason Morin
    Guest

    Re: Conditional formatting based on if statement.

    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
    >.
    >


  3. #3
    kevin
    Guest

    Re: Conditional formatting based on if statement.

    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
    > >.
    > >

    >


+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1