+ Reply to Thread
Results 1 to 7 of 7

Conditional Formatting highlights blank cell even if criteria is not met

  1. #1
    Registered User
    Join Date
    03-19-2024
    Location
    SG
    MS-Off Ver
    M365 Apps for enterprise (Version 2308)
    Posts
    4

    Conditional Formatting highlights blank cell even if criteria is not met

    Conditional Formatting.PNG

    I have created the above formulas (image attached) under conditional formatting so that:
    • empty cells are left blank
    • cells below 80% are highlighted red
    • cells greater or equal to 80% are highlighted green

    However, some of my empty cells are still highlighted in green/ red, and some of my blank cells when changed to a cell containing numbers does not appear highlighted according to the condition set.

    Would appreciate some assistance with this!

  2. #2
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.83 (24031120))
    Posts
    8,749

    Re: Conditional Formatting highlights blank cell even if criteria is not met

    isblank() is not going to work , if the cell has a formula in which returns "" for some condition
    BUT i dont know what you have in the cells

    But from image C6<0.8 is true for Green and Red - stop if true not used - so that would show RED most of the time

    so would be better to -

    The forum does allow for spreadsheets to be uploaded direct to the forum -

    Please see the Yellow Banner at the top of the page explaining how to attach a sample spreadsheet

    A good sample workbook has just 10-20 rows of representative data that has been desensitised. It also has expected results mocked up, relevant cells highlighted and a few explanatory notes.

    Here are the instructions, found at the top of the page again
    HOW TO ATTACH YOUR SAMPLE WORKBOOK:, Fast answers need clear examples. Post a small Excel sheet (not a picture) showing realistic & representative sample data WITHOUT confidential information (10-20 rows, not thousands...) and some manually calculated results. For a new thread (1st post), scroll to Manage Attachments, otherwise scroll down to GO ADVANCED, click, and then scroll down to MANAGE ATTACHMENTS and click again. Now follow the instructions at the top of that screen.
    Last edited by etaf; 03-19-2024 at 06:32 AM.
    Wayne
    if my assistance has helped, and only if you wish to , there is an "* Add Reputation" on the left hand side - you can add to my reputation here

    If you have a solution to your thread - Please mark your thread solved do the following: >
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

  3. #3
    Registered User
    Join Date
    03-19-2024
    Location
    SG
    MS-Off Ver
    M365 Apps for enterprise (Version 2308)
    Posts
    4

    Re: Conditional Formatting highlights blank cell even if criteria is not met

    Sample Workbook.xlsx

    I've attached a sample of the workbook I'm working on.

    The conditional formatting works when it applies to just one cell in the table (Cell K14).
    However, once I extend this to other cells in the table, they turn green/ red even when the cell is blank (Cell E6).

    What I want to achieve with this conditional formatting is to highlight cells that are =>80% in green, cells <80% in red and leave empty cells blank.

    Would appreciate your further help with this!
    Last edited by mtmy99; 03-20-2024 at 06:43 AM.

  4. #4
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.83 (24031120))
    Posts
    8,749

    Re: Conditional Formatting highlights blank cell even if criteria is not met

    try
    using
    AND( cell <>"", cell<0.8)
    AND( cell <>"", cell>=0.8)

    what ranges are you applying to

    JUST The % ??
    C, E, G etc - just the ones labelled %

    So as not to highlight the 2nd row of titles and just the columns with a % and to have just 1 set of conditions for the spreadsheet
    RED
    =AND(B6<0.8,B6<>"",RIGHT(B$5,1)="%",RIGHT(B6,1)<>"%")
    GREEN
    =AND(B6>=0.8,B6<>"",RIGHT(B$5,1)="%",RIGHT(B6,1)<>"%")


    not sure what excel version 2308 is I suspect office 365, if you could update the profile to show the office version and its version that would be great
    Attached Files Attached Files
    Last edited by etaf; 03-20-2024 at 07:25 AM.

  5. #5
    Registered User
    Join Date
    03-19-2024
    Location
    SG
    MS-Off Ver
    M365 Apps for enterprise (Version 2308)
    Posts
    4

    Re: Conditional Formatting highlights blank cell even if criteria is not met

    Thanks for sending over the file. I'm using M365 Apps for enterprise (Version 2308, Build 16731.20550).

    Yes, I would like to only highlight the columns labelled with % (the cells without % will eventually be hidden), but only for Rows 6 and 14.

    For the columns labelled with % in Rows 7-10 and 15-18, I would like them to be highlighted in font colour #833C0C / fill colour #FCE4D6 if the cell value is <0.8. If the cell is blank, the cell should likewise not be highlighted.

    Also, is this working that you've done at the bottom of the workbook necessary when I apply the formatting formulas to my actual workbook?
    Capture.PNG
    Last edited by mtmy99; 03-20-2024 at 10:43 PM.

  6. #6
    Forum Expert
    Join Date
    10-19-2021
    Location
    Brazil
    MS-Off Ver
    Office 365 V2401 w/ Win10 Home 64 Bit
    Posts
    2,014

    Re: Conditional Formatting highlights blank cell even if criteria is not met

    You could use the formula bellow to deal with less dates.

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


    Using entire columns you may end with some interference in the calculation if you left some cell filled with numbers in 'Raw Responses' and the calculation tend to be slower.

    Multiplying by * 100% is like multiplying by * 1.
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Attached Files Attached Files

  7. #7
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,587

    Re: Conditional Formatting highlights blank cell even if criteria is not met

    Formula for CF in B6 and applied to B6:Y18
    for red
    Formula: copy to clipboard
    Please Login or Register  to view this content.

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


    Change font and fill colors as required.
    Attached Files Attached Files
    Pl note
    Array formula should be confirmed with Ctrl+Shift+Enter keys together.
    If answere is satisfactory press * to add reputation.

+ 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. Replies: 9
    Last Post: 07-08-2019, 08:57 AM
  2. Replies: 3
    Last Post: 10-30-2018, 11:11 AM
  3. Conditional Formatting with 2 Highlights (IF condition)
    By kobokan in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-06-2017, 12:59 AM
  4. [SOLVED] Conditional formatting: Cell highlights after a given date
    By peoplemover in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 12-09-2013, 06:49 PM
  5. Conditional Formatting Value highlights multiple values
    By brent_bris in forum Excel General
    Replies: 15
    Last Post: 04-22-2013, 11:26 AM
  6. Conditional Formatting Help-highlights a single row
    By Tommy1005 in forum Excel General
    Replies: 1
    Last Post: 02-22-2011, 02:22 PM
  7. One criteria AND cell is blank in conditional formatting formula?
    By westis in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-19-2008, 06:37 PM

Tags for this Thread

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