+ Reply to Thread
Results 1 to 5 of 5

Conditional formatting - result depends on value of two cells

  1. #1
    Registered User
    Join Date
    05-29-2012
    Location
    uk
    MS-Off Ver
    Excel 2013
    Posts
    12

    Conditional formatting - result depends on value of two cells

    Hi,

    I've tried - but I can't work out how to achieve this

    If (D5) = "6" and (BK5) = either "A" or "B" or "C" then colour (A5) purple

    I have tried
    =AND($D$5="6",$BK$5="A")
    =AND($D$5="6",$BK$5="B")
    =AND($D$5="6",$BK$5="C")

    as three sep rules in (A5), but no joy...

    Any words of wisdom please?

    ( I have other rules running on (A5) too - all of which work fine)

    Many thanks

  2. #2
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: Conditional formatting - result depends on value of two cells

    Highlight A5 > Conditional Formatting > New Rule > Use a formula

    =AND(D5=6,OR(BK5="A",BK5="B",BK5="C"))

    Format however you'd like.

    Note that "6" and 6 are different to Excel.

  3. #3
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,214

    Re: Conditional formatting - result depends on value of two cells

    Try

    =AND($D5=6,OR($BK5="A",$BK5="B",$BK5="C"))

    is the 6 TEXT or number; if the latter, remove your quotes as per above

  4. #4
    Registered User
    Join Date
    05-29-2012
    Location
    uk
    MS-Off Ver
    Excel 2013
    Posts
    12

    Re: Conditional formatting - result depends on value of two cells

    Thank you very much - both work great. why the $ in one and not the other please?

  5. #5
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: Conditional formatting - result depends on value of two cells

    The dollar sign ($) before the column letter will keep the column reference static if the Conditional Formatting is being applied to multiple cells.

    I did not include it in mine because you did not mention any cells other than A6 to receive CF.

    Thanks for the rep! If that solved your question, please mark this thread as SOLVED.

+ 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 on Cells with "" being the result of a formula.
    By STABxWEST in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 06-27-2017, 02:15 PM
  2. Replies: 5
    Last Post: 05-08-2015, 12:08 PM
  3. excel formula depends upon 3 set of value result from set of range lookup
    By breadwinner in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-03-2013, 09:06 PM
  4. Replies: 12
    Last Post: 04-30-2008, 09:07 AM
  5. Embedding IF: depends on result..
    By nastech in forum Excel General
    Replies: 13
    Last Post: 07-05-2006, 05:15 PM
  6. [SOLVED] Can a conditional formatting result affect another cell or cells
    By marseans in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 11-23-2005, 02:20 PM
  7. [SOLVED] conditional formatting based on another cells formula result
    By kstarkey in forum Excel General
    Replies: 3
    Last Post: 10-05-2005, 05:05 PM

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