+ Reply to Thread
Results 1 to 8 of 8

Conditional Formatting Dependent on Values of Two Cells

  1. #1
    Forum Contributor
    Join Date
    10-25-2012
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    292

    Conditional Formatting Dependent on Values of Two Cells

    I am trying to set Column C to have a fill format when it is empty (suggesting the item has not yet been completed). The fill should be normal when it's not empty. The only ones that need to have that fill when the C column is empty are those cells where B11 match F8, for example. The "Something Here" options. I thought the formula below would work, but it doesn't seem to be working.

    Please Login or Register  to view this content.
    I'm including a screenshot and a mockup for you review. Thank you for your help.

    conditional-formatting-question.png
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    06-26-2010
    Location
    Austin, TX
    MS-Off Ver
    Excel 2010
    Posts
    1,673

    Re: Conditional Formatting Dependent on Values of Two Cells

    Try
    Please Login or Register  to view this content.
    Pauley
    --------
    If I helped with your issue, I'd appreciate a rep bump (hit the '*' icon to the bottom left of this post).

  3. #3
    Forum Contributor
    Join Date
    03-22-2017
    Location
    Malaysia
    MS-Off Ver
    Excel 2010
    Posts
    230

    Re: Conditional Formatting Dependent on Values of Two Cells

    eemiller1997,

    Appreciate you had tried yourself,

    but, since you post a lot and registered long time ago,
    You should learned how the formula work.

    the text between "" sign is assume as text instead of function a formula.
    and excel would not understand "and", but it understand =and([logic 1], [logic 2]).

    ="B11=V8 AND C11="<>""

    should be

    =AND(B11=V8,C11="<>")

    it return true if and only if both are same TRUE

    AND(TRUE,TRUE) return to TRUE
    AND(FALSE,FALSE) return to FALSE
    AND(FALSE,TRUE) return to FALSE
    AND(TRUE,FALSE) return to FALSE

    if you want to have reverse result you may add NOT() (ie =NOT(AND(B11=V8,C11="<>")) )in front of formula. it change TRUE to FALSE
    Hope you can learn every time you visit here.

    If you still confuse on how it work, kindly ask or go to
    i) Formula - Formula (Ribbon) > Formula Auditing (Section) > Evaluate Formula > Evaluate; or
    ii) VBA/Code - Click F8 to see how it work step by step.

    It it take care of your question, Please:
    Mark tread as [Solved] [Thread Tools->Mark thread as Solved]
    ;and
    Click *Add Reputation to thank anyone solved your question.

  4. #4
    Forum Contributor
    Join Date
    10-25-2012
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    292

    Re: Conditional Formatting Dependent on Values of Two Cells

    This one formatting ALL the cells.
    Please Login or Register  to view this content.
    This one formatted NONE of the cells.
    Please Login or Register  to view this content.
    Any ideas why these aren't working?

  5. #5
    Forum Expert
    Join Date
    06-26-2010
    Location
    Austin, TX
    MS-Off Ver
    Excel 2010
    Posts
    1,673

    Re: Conditional Formatting Dependent on Values of Two Cells

    Not sure what you mean by it formatting ALL the cells. Cells affected are defined in your conditional format, so it implies you set it up to affect all the cells.

  6. #6
    Forum Contributor
    Join Date
    10-25-2012
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    292

    Re: Conditional Formatting Dependent on Values of Two Cells

    Quote Originally Posted by Pauleyb View Post
    Not sure what you mean by it formatting ALL the cells. Cells affected are defined in your conditional format, so it implies you set it up to affect all the cells.
    It formatted the entire column of C.

    According to the two formulas, this one should only be formatting the C column cell when it's blank and the B cell matches the value in V8. But, it formatted all of the cells in the C column no matter the conditions of B and C.

    Please Login or Register  to view this content.
    This formula should be checking to see if the cell in column C is empty and if it is, to see if the cell in column B matches the value in V8. If both of those match, then format the cell in column C. But, nothing was formatted.

    Please Login or Register  to view this content.

  7. #7
    Forum Contributor
    Join Date
    03-22-2017
    Location
    Malaysia
    MS-Off Ver
    Excel 2010
    Posts
    230

    Re: Conditional Formatting Dependent on Values of Two Cells

    sorry for that, this one is not valid formula,
    =AND(B11=V8,C11="<>")

    the beside blank formula should be,
    =AND(B11=V8,C11<>"")

    and base on your request/file,
    I believe is F8 instead of V8 and is need to format the blank one,

    the formula should be,
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    or

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


    PS: Create format at B1 to avoid error,

  8. #8
    Forum Expert
    Join Date
    06-26-2010
    Location
    Austin, TX
    MS-Off Ver
    Excel 2010
    Posts
    1,673

    Re: Conditional Formatting Dependent on Values of Two Cells

    I have a theory that you have your cell referencing (absolute vs relative) is not set up correctly. As it stands, for the first conditionally formatted cell, it will look in cells B11, C11, and V8. The next conditionally formatted cell will offset appropriately. Maybe you have absolute references?
    As @BoredWorker states, the check for C11="<>" is likely not what you want. That will check if the cell strictly contains the text <>, not if it is blank or not. ISBLANK is the formula to use. However, the cell must truly be blank, if it has a space in it (it looks blank but it really isn't), or even a formula that calculates to "" (e.g. IF(TRUE,"",5)) then isblank will return false.

+ 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. conditional formatting for blank cells dependent on due dates
    By Brandi_____ in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-19-2017, 02:17 PM
  2. Replies: 3
    Last Post: 11-16-2016, 04:04 PM
  3. Conditional formatting with dependent criteria
    By dbelliottexcel in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-14-2016, 09:18 AM
  4. [SOLVED] Conditional formatting dependent on text and value
    By Howlin in forum Excel General
    Replies: 5
    Last Post: 02-02-2016, 11:21 AM
  5. Formatting Cells with Date or Text Values in a Conditional Formatting Formula
    By Phil Hageman in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 07-15-2014, 09:36 AM
  6. Replies: 7
    Last Post: 11-20-2013, 04:00 PM
  7. Conditional formatting dependent on value in a different cell
    By cheal2 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-24-2013, 12:59 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