+ Reply to Thread
Results 1 to 5 of 5

Conditional Formatting- on specific values

  1. #1
    Registered User
    Join Date
    08-21-2007
    Posts
    90

    Conditional Formatting- on specific values

    Can Conditional Formatting be set on multiple values? I cannot get this to work with any formula, the cell values are not between two values.

    For example:

    for value = D or R, or X change color to green

    (I would have another condition within a range F to Q)
    Last edited by johnnywinter; 02-12-2009 at 10:49 PM.

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Conditional Formatting- on specific values

    Do you mean if the cell value is equal to the letter "D" or "R" or "X"? If the cell your setting formatting in is A2, then that conditional format would be:

    =OR(A2="D",A2="R",A2="X")
    ...and set the color to green.



    Or were you referring to columns? So if the value in A2 equals the value in D2 or R2 or X2, then you want the cell to turn green? That conditional format would be:

    =OR(A2=D2,A2=R2,A2=X2)
    ...and set the color to green.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Registered User
    Join Date
    08-21-2007
    Posts
    90

    Re: Conditional Formatting- on specific values

    I am trying to Conditionally Format a Cell at time of input.

    I tried your example using: FORMAT - CONDITONALLY FORMATTING -

    Cell Value Is Equal To and input this : =OR(G15="D",G15="R",G15="X")


    It would not take it. I also tried the same formula with "Formula Is"

    I also tried it without the reference to G15- same result.

    I have no problems with contiguous range or for 1 value, but I have number of non-contiguous values that I need the cell to format in same color upon input.

  4. #4
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Conditional Formatting- on specific values

    Those are formulas, and it works perfectly as shown in your post:

    Condition1: Formula Is: =OR(G15="D",G15="R",G15="X")
    ...and set your color.

    I'm looking at a sheet right now that is working great with that formula.

  5. #5
    Registered User
    Join Date
    08-21-2007
    Posts
    90

    Re: Conditional Formatting- on specific values

    MY BAD! It works perfectly.

    Thnks for everything.

+ 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