+ Reply to Thread
Results 1 to 3 of 3

Conditional Formatting

  1. #1
    Registered User
    Join Date
    10-27-2009
    Location
    Indianapolis, IN
    MS-Off Ver
    Excel 2003
    Posts
    26

    Conditional Formatting

    I want to set up formula in conditional formating so that when:
    $AF6 = "CA" the color is red
    or
    if $AF6 = ("GA","ME","PR") then the color is blue

    what I came up with is
    Condition 1
    = ($AF6 ="ca") [which will turn the cell red]
    Condition 2
    ="OR($AF6={""GA"",""ME"",""PR""}, "")" [which doesn't do anything]

    Thanks
    Last edited by Grumpy9215; 12-29-2009 at 02:07 PM.

  2. #2
    Valued Forum Contributor rwgrietveld's Avatar
    Join Date
    09-02-2008
    Location
    Netherlands
    MS-Off Ver
    XL 2007 / XL 2010
    Posts
    1,671

    Re: Conditional Formatting

    and this

    =OR($AF6="GA",$AF6="ME",$AF6="PR")

    This also works =OR($AF6={"GA","ME","PR"}), but not for CF as you can't have an array in CF formula's

    What does work is to make a name and use that =OR($AF6=Values)

    Values refers to ={"GA";"ME";"PR"}
    Last edited by rwgrietveld; 12-29-2009 at 01:26 PM.
    Looking for great solutions but hate waiting?
    Seach this Forum through Google

    www.Google.com
    (e.g. +multiple +IF site:excelforum.com/excel-general/ )

    www.Google.com
    (e.g. +fill +combobox site:excelforum.com/excel-programming/ )

    Ave,
    Ricardo

  3. #3
    Registered User
    Join Date
    10-27-2009
    Location
    Indianapolis, IN
    MS-Off Ver
    Excel 2003
    Posts
    26

    Re: Conditional Formatting

    Works great! Thanks!

+ 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