+ Reply to Thread
Results 1 to 7 of 7

Conditional Formatting Rule if x is y and

  1. #1
    Registered User
    Join Date
    09-23-2014
    Location
    Seattle
    MS-Off Ver
    2010
    Posts
    25

    Conditional Formatting Rule if x is y and

    How would I write this formula?

    If K11 = 20101 and M11 <> to SHL OR if K11 = 20104 and M11 <> SDC

  2. #2
    Forum Expert Tsjallie's Avatar
    Join Date
    09-15-2012
    Location
    NL
    MS-Off Ver
    2010, 2013, 2016
    Posts
    2,077

    Re: Conditional Formatting Rule if x is y and

    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Not sure what SHL and SDC stand for. Are they names referring to some cell? They must represent some value in order for the formula to work.
    Also be aware that when using relative references in a cf-formula the cell active when you create the cf will determine the offset.
    So if you would enter the formula like above while the active cell is on row 10 then this formula will always refer to the cell one row below the cell that's containing he cf.
    Same goes for columns.
    Cheers!
    Tsjallie




    --------
    If your problem is solved, pls mark the thread SOLVED (see Thread Tools in the menu above). Thank you!

    If you think design is an expensive waste of time, try doing without ...

  3. #3
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,063

    Re: Conditional Formatting Rule if x is y and

    Hi there. Like this maybe... See sheet.
    Attached Files Attached Files
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  4. #4
    Registered User
    Join Date
    09-23-2014
    Location
    Seattle
    MS-Off Ver
    2010
    Posts
    25

    Re: Conditional Formatting Rule if x is y and

    Duplicate post.
    Last edited by nwpassage; 03-29-2015 at 12:13 PM.

  5. #5
    Registered User
    Join Date
    09-23-2014
    Location
    Seattle
    MS-Off Ver
    2010
    Posts
    25

    Re: Conditional Formatting Rule if x is y and

    SHL and SDC are string values, essentially what I want to accomplish is:

    If K11 = 20101 and the value in M11 is <> SHL OR if K11 = 20104 and the value in M11 <> SDC then highlight the cell red

    will OR(AND(K11=20101;M11<>SHL);K11=20104;M11<>SDC) do the trick? I've applied it, tested it and the cells aren't turning red (and I do have red selected for formatting).
    Last edited by nwpassage; 03-29-2015 at 12:16 PM.

  6. #6
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,063

    Re: Conditional Formatting Rule if x is y and

    Did the CF in the attachment work for you; other than for the fact that I randomly chose green...

  7. #7
    Valued Forum Contributor
    Join Date
    05-20-2013
    Location
    Ohio, USA
    MS-Off Ver
    Excel 2013
    Posts
    941

    Re: Conditional Formatting Rule if x is y and

    Please Login or Register  to view this content.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Conditional Formatting Rule Question: IF AND THEN
    By nwpassage in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 03-29-2015, 11:43 AM
  2. Conditional Formatting By Rule
    By pickslides in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-05-2014, 12:44 AM
  3. Conditional formatting rule need help
    By Kagesen in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-25-2011, 04:42 AM
  4. Replies: 1
    Last Post: 07-29-2010, 11:26 AM
  5. Excel 2007 : Conditional Formatting Percent rule
    By Ichigo in forum Excel General
    Replies: 1
    Last Post: 04-25-2009, 12:50 AM

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