+ Reply to Thread
Results 1 to 4 of 4

Conditional Formatting with AND, ISBLANK, and DATE

  1. #1
    Registered User
    Join Date
    02-18-2011
    Location
    Virginia Beach, VA
    MS-Off Ver
    Excel 2007
    Posts
    2

    Conditional Formatting with AND, ISBLANK, and DATE

    Okay, I hate to even post because there are so many conditional formatting questions and answers out there, but everyone has a different way they want to do things, and I can't find a way to make mine work. I'm able to get some things working, but at the same time, it will also be highlighting cells that don't meet the criteria.

    Here's what I need.

    I have a list columns A-M containing data, C and M are date fields. C will always have a date, and M will only have a date when the row has been "Approved."

    If the date in C is greater than 12 days away, I would like the entire row to turn yellow.

    If the date in C is less than 12 days away AND the corresponding cell in M is blank, I need the entire row to turn red.

    I have managed to get the C cell that is greater than 12 days away to turn yellow by using the "Format only cells that contain" rule with Cell Value - Greater Than - =TODAY()+12

    However, it only highlights the cell. I tried using the "Use a formula to determine which cells to format" but couldn't get the syntax right.

    I've also messed with the ISBLANK to try to get the row to turn red, and had some close calls, but for some reason it would highlight a few rows that actually had data in them.

    Thanks for the help!

    Greg (broscup)
    Last edited by broscup; 02-19-2011 at 12:01 AM. Reason: Solved

  2. #2
    Forum Expert Paul's Avatar
    Join Date
    02-05-2007
    Location
    Wisconsin
    MS-Off Ver
    2016/365
    Posts
    6,885

    Re: Conditional Formatting with AND, ISBLANK, and DATE

    Hi Broscup, welcome to the forum.

    Try using these options instead. First, select your range of data, e.g. A1:M100. Then click 'Conditional Formatting' > 'New Rule' > 'Use a formula to determine..'

    Beneath 'Format values where this formula is true', type:

    =$C1>TODAY()+12

    Click the Format... button and choose the Fill color Yellow. Click OK twice to return to the worksheet.

    Click Conditional Formatting > New Rule > Use a formula... a second time, and this time type:

    =AND($C1<=TODAY()+12,$M1="")

    Click OK twice again, and that should do it. Hope that helps!

  3. #3
    Registered User
    Join Date
    02-18-2011
    Location
    Virginia Beach, VA
    MS-Off Ver
    Excel 2007
    Posts
    2

    Re: Conditional Formatting with AND, ISBLANK, and DATE

    Works fantastic. I added ,$A1<>"" to the AND statement to remove the red from below the last row, and also a New Rule to "Format only cells that contain" No Blanks to remove highlighting from the header row. Thank you so much for your help!! I can't thank you enough!

  4. #4
    Registered User
    Join Date
    03-05-2011
    Location
    Los Angeles, CA
    MS-Off Ver
    Excel 2007
    Posts
    4

    Question Re: Conditional Formatting with AND, ISBLANK, and DATE

    From limited experience I know that excel calculates dates via serial numbers.

    I have formulas to add a number of days to a cell containing an entered date and display the resulting new date (ie. 03/01/2011 (c34)+11 = 03/12/2011)

    I am seeking to leave resulting formula cell blank until a date is entered in the input cell. Currently when the input cell is empty the formula cell obviously displays 1/11/1900 using the above example.

    What conditional format would achieve leaving the formula cell blank until date data in entered into the source cell?

    Hopefully a simpler question for your experience level than mine.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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