+ Reply to Thread
Results 1 to 4 of 4

Conditional Formatting not working

  1. #1
    Registered User
    Join Date
    01-28-2014
    Location
    Nottingham, England
    MS-Off Ver
    Excel 2010
    Posts
    15

    Conditional Formatting not working

    I have some dates from B5:B9 and I want to highlight the entire row in yellow if they are within a month and not complete, but nothing happens when I apply this rule:

    <code>=AND(MONTH(B5:B9)=MONTH(TODAY()), D5:D9<>"Y")</code>

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,155

    Re: Conditional Formatting not working

    Just select cells B5 to B9 and apply this CF formula

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



    Regards, TMS
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Conditional Formatting not working

    Hi,

    In B5 add this formula using the Formula is option in cond. formatting

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


    Set the format to yellow and the Apply this to rows 5:9, or perhaps just B5:D9
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  4. #4
    Forum Expert
    Join Date
    01-12-2007
    Location
    New Jersey
    Posts
    2,127

    Re: Conditional Formatting not working

    I think the code fails due to the ranges being included in the code. Try the following steps and let me know if it works better. (First, remove any conditional formatting already applied on the cells).

    1. Select the range of cells upon which you want to apply the conditional format. For the sake of the example, I will assume you are selecting cells A5:G9.
    2. Go to Conditional Format --> New Rule --> Use a Formula...
    3. Enter the following formula, taking note of the '$'
    Please Login or Register  to view this content.
    4. Select your format.

    Let me know if this works.

+ 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 not working
    By freshfruit in forum Excel General
    Replies: 2
    Last Post: 02-12-2014, 02:12 PM
  2. Conditional Formatting not working?
    By Margate in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 04-30-2013, 11:31 AM
  3. VBA working with conditional formatting
    By MARKSTRO in forum Excel Programming / VBA / Macros
    Replies: 31
    Last Post: 01-12-2012, 05:33 PM
  4. Replies: 0
    Last Post: 01-20-2009, 05:19 PM
  5. [SOLVED] Conditional Formatting not working
    By Crowbar via OfficeKB.com in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-19-2005, 03:15 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