+ Reply to Thread
Results 1 to 5 of 5

Conditional Formatting causing hair loss!

Hybrid View

  1. #1
    Registered User
    Join Date
    08-13-2012
    Location
    Lincs
    MS-Off Ver
    Excel 2007
    Posts
    3

    Conditional Formatting causing hair loss!

    Hi.

    This is probably a very basic question, but as someone relatively new to the features available in Excel its one that is driving me mad.

    I have a column with a combination of blank cells and dates (in a simple UK format, eg. 13/08/2012).

    What I am trying to do is use conditional formatting to highlight just the dates in green if the date is after (ie a future date) tomorrow , and in red if the date is tomorrow, today or any date in the past.

    I've tried looking on line, but have so far drawn a blank.

    Any help would be appreciated, and then perhaps I can stop pulling what little hair I have left out!

    Adrian
    Last edited by ahilder70; 08-13-2012 at 06:27 AM.

  2. #2
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: Conditional Formatting causing hair loss!

    Use two rules..

    1. Cell value -- less than or equal to -- =TODAY()+1--format 'red'
    2. Cell value -- greater than -- =(TODAY()+1)--format 'green'

    Save your hair!
    Life's a spreadsheet, Excel!
    Say thanks, Click *

  3. #3
    Registered User
    Join Date
    08-13-2012
    Location
    Lincs
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: Conditional Formatting causing hair loss!

    Thanks very much for that. It works a treat on the dates.

    Is there any way of getting those formulas to ignore the blank cells though? It is seeing a blank cell as being less than the current date.

    Thanks

    Adrian

  4. #4
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: Conditional Formatting causing hair loss!

    Add as first condition to format cells with 'blanks --no format' and select the 'Stop if true' checkbox

  5. #5
    Registered User
    Join Date
    08-13-2012
    Location
    Lincs
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: Conditional Formatting causing hair loss!

    Perfect!

+ 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