+ Reply to Thread
Results 1 to 5 of 5

Conditional Formatting Formula Problem

  1. #1
    Registered User
    Join Date
    08-13-2018
    Location
    Edmonton, Canada
    MS-Off Ver
    13
    Posts
    16

    Conditional Formatting Formula Problem

    Here is the formula I am trying to use. I want the cell to turn yellow.

    =OR($F869="TEXT A",$F869="TEXT B",$F869="TEXT C")AND($Q869="")

    The OR statement works, but I can't get the AND statement to work. The cell(Q869) turns yellow even though the cell is not blank.

    Please help.

  2. #2
    Forum Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,064

    Re: Conditional Formatting Formula Problem

    try

    =AND($Q869="",OR($F869="TEXT A",$F869="TEXT B",$F869="TEXT C"))

    AND has precedent over OR

    also if you're ANDing then logically you must have at least TWO things to AND against.

    This may also work depending on your data.

    =AND($Q869="",LEFT($F869,4)="TEXT")
    Last edited by Special-K; 01-22-2019 at 11:45 AM.
    Regards
    Special-K

    Ensure you describe your problem clearly, I have little time available to solve these problems and do not appreciate numerous changes to them.

  3. #3
    Registered User
    Join Date
    08-13-2018
    Location
    Edmonton, Canada
    MS-Off Ver
    13
    Posts
    16

    Re: Conditional Formatting Formula Problem

    Quote Originally Posted by Special-K View Post
    try

    =AND($Q869="",OR($F869="TEXT A",$F869="TEXT B",$F869="TEXT C"))

    AND has precedent over OR

    also if you're ANDing then logically you must have at least TWO things to AND against.

    This may also work depending on your data.

    =AND($Q869="",LEFT($F869,4)="TEXT")
    Thanks, but that doesn't seem to work. I only want the cell(Q869) turn yellow when two conditions are met. When F869 has one of three options selected and Q869 is blank. The formula you suggested highlights the cell, even if none of the three options are selected.

    Would ISBLANK be an option for capturing the blank cell? Am I making any sense?

  4. #4
    Registered User
    Join Date
    08-13-2018
    Location
    Edmonton, Canada
    MS-Off Ver
    13
    Posts
    16

    Re: Conditional Formatting Formula Problem

    I believe your first solution does work, and I thank you very much for that.

    I believe the problem was in my absolute reference of Q869, when trying to copy the format.

  5. #5
    Forum Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,064

    Re: Conditional Formatting Formula Problem

    Can you post the file or a section of it that covers the formulas?

    Use the Go Advanced option at the bottom of the page then scroll down to Manage Attachments as the "paperclip" method does not work on this forum.

    UPDATE: Ah, just seen your post above :-)
    Absolute reference, yes that would make sense.

    If it's working, great, f not post the file and we'll take a closer look.
    Last edited by Special-K; 01-22-2019 at 12:23 PM.

+ 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 formula problem
    By rajeshn_in in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 09-23-2016, 08:41 AM
  2. Conditional formatting problem- not all cells seem to use the formula
    By RattlerSkin in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 05-02-2016, 09:34 AM
  3. [SOLVED] Conditional Formatting formula for shading problem
    By johnsonbj22 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 08-25-2015, 12:58 PM
  4. [SOLVED] Conditional formatting based on formula problem
    By Leegps in forum Excel General
    Replies: 3
    Last Post: 03-11-2014, 07:14 AM
  5. [SOLVED] Conditional Formatting - Formula Problem?
    By KenMcN in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-27-2014, 03:00 PM
  6. [SOLVED] formula problem w/ conditional formatting
    By edwinculanding in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 05-30-2013, 05:20 AM
  7. Conditional Formatting formula problem
    By ddub25 in forum Excel General
    Replies: 3
    Last Post: 01-21-2010, 08:24 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