+ Reply to Thread
Results 1 to 15 of 15

How do I exclude blank cells when using conditional formatting

  1. #1
    Registered User
    Join Date
    05-23-2013
    Location
    Milwaukee, WI
    MS-Off Ver
    Excel 2007
    Posts
    6

    How do I exclude blank cells when using conditional formatting

    I want to include some due dates to a spreadsheet I currently have. I want Excel to alert me 7 days before the due date. I am using conditional formatting. I'm using "Format only cells that contain" --> "Cell Value" --> "Less than" --> "=Today()+7". This works great, however, I need to format the entire column and not every cell in that column will have a date. I want the blank cells to stay blank but it's changing. Any idea on how to exclude the blank cells in my situation?

  2. #2
    Forum Expert judgeh59's Avatar
    Join Date
    02-07-2013
    Location
    Boise, Idaho
    MS-Off Ver
    Excel 2016
    Posts
    2,310

    Re: How do I exclude blank cells when using conditional formatting

    Check out the AND statement and the ISBLANK statement....HTH
    Ernest

    Please consider adding a * if I helped

    Nothing drives me crazy - I'm always close enough to walk....

  3. #3
    Registered User
    Join Date
    05-23-2013
    Location
    Milwaukee, WI
    MS-Off Ver
    Excel 2007
    Posts
    6

    Re: How do I exclude blank cells when using conditional formatting

    I'm probably writing the formula wrong but I have:

    ="and($A1<today()+7,not(isblank($A1)))"

    It's still not working. It alerted all the cells.

  4. #4
    Forum Expert judgeh59's Avatar
    Join Date
    02-07-2013
    Location
    Boise, Idaho
    MS-Off Ver
    Excel 2016
    Posts
    2,310

    Re: How do I exclude blank cells when using conditional formatting

    Please Login or Register  to view this content.
    Should work...

  5. #5
    Registered User
    Join Date
    05-23-2013
    Location
    Milwaukee, WI
    MS-Off Ver
    Excel 2007
    Posts
    6

    Re: How do I exclude blank cells when using conditional formatting

    This worked great for the blank cells but then it highlighted all the dates, even the ones that are due more than 7 days from now. Any idea why this is happening?

  6. #6
    Forum Expert judgeh59's Avatar
    Join Date
    02-07-2013
    Location
    Boise, Idaho
    MS-Off Ver
    Excel 2016
    Posts
    2,310

    Re: How do I exclude blank cells when using conditional formatting

    which formula did you use? Mine or ledgerly's?

  7. #7
    Registered User
    Join Date
    05-23-2013
    Location
    Milwaukee, WI
    MS-Off Ver
    Excel 2007
    Posts
    6

    Re: How do I exclude blank cells when using conditional formatting

    I used yours.

  8. #8
    Forum Expert judgeh59's Avatar
    Join Date
    02-07-2013
    Location
    Boise, Idaho
    MS-Off Ver
    Excel 2016
    Posts
    2,310

    Re: How do I exclude blank cells when using conditional formatting

    thats weird because I tested that on a date data set....can you upload the file with the dates?

  9. #9
    Registered User
    Join Date
    05-23-2013
    Location
    Milwaukee, WI
    MS-Off Ver
    Excel 2007
    Posts
    6

    Re: How do I exclude blank cells when using conditional formatting

    This is just a test document with random dates.
    Attached Files Attached Files

  10. #10
    Forum Expert judgeh59's Avatar
    Join Date
    02-07-2013
    Location
    Boise, Idaho
    MS-Off Ver
    Excel 2016
    Posts
    2,310

    Re: How do I exclude blank cells when using conditional formatting

    I see the issue....when you put this into CF I put in --- Use a Formula to determine which cells cell to format....not the Format all cells based on their values....check it out....

  11. #11
    Registered User
    Join Date
    05-23-2013
    Location
    Milwaukee, WI
    MS-Off Ver
    Excel 2007
    Posts
    6

    Re: How do I exclude blank cells when using conditional formatting

    Ahhhh! Perfect! It works now. Thank you SOOOOO much!!

  12. #12
    Forum Expert judgeh59's Avatar
    Join Date
    02-07-2013
    Location
    Boise, Idaho
    MS-Off Ver
    Excel 2016
    Posts
    2,310

    Re: How do I exclude blank cells when using conditional formatting

    you are very welcome

  13. #13
    Forum Expert judgeh59's Avatar
    Join Date
    02-07-2013
    Location
    Boise, Idaho
    MS-Off Ver
    Excel 2016
    Posts
    2,310

    Re: How do I exclude blank cells when using conditional formatting

    thanks for the Star

  14. #14
    Forum Expert judgeh59's Avatar
    Join Date
    02-07-2013
    Location
    Boise, Idaho
    MS-Off Ver
    Excel 2016
    Posts
    2,310

    Re: How do I exclude blank cells when using conditional formatting

    @ledgerly....thanks also

  15. #15
    Forum Expert judgeh59's Avatar
    Join Date
    02-07-2013
    Location
    Boise, Idaho
    MS-Off Ver
    Excel 2016
    Posts
    2,310

    Re: How do I exclude blank cells when using conditional formatting

    ignore my weird posts....

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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