Closed Thread
Results 1 to 5 of 5

Excel 2007 : Date expiry conditional formatting in Excell 2007 (I think it is the 2007 version anyway)

  1. #1
    Registered User
    Join Date
    01-28-2012
    Location
    Belgium
    MS-Off Ver
    Excel 2007
    Posts
    8

    Date expiry conditional formatting in Excell 2007 (I think it is the 2007 version anyway)

    Hey all,

    I am struggeling with getting my certificats expiry dates light up 2 years, 1 year; 6 months, ... before expiry and on expiry.
    With this in the boxes. "- 2 years" in a green box. "-1 year" in a light green box. "- 6 months" in a yellow box, ...

    See attached for my file. I tried with the less then 2 years valid but struggle with this pretty some. Tried so many codes so far in conditional formatting but not working all as should.

    Hope anyone can help me out with this?

    Thanks so much for the help in advance,

    Nico
    Attached Files Attached Files
    Last edited by [email protected]; 05-20-2012 at 05:30 AM.

  2. #2
    Valued Forum Contributor
    Join Date
    04-30-2012
    Location
    Australia
    MS-Off Ver
    Excel 2010
    Posts
    547

    Re: Date expiry conditional formatting in Excell 2007 (I think it is the 2007 version anyw

    Hi,

    create these rules in this order and set them to stop when true.

    =IF(ISNUMBER(F6),F6<TODAY(),FALSE) --> Red fill
    =IF(ISNUMBER(F6),F6-TODAY()<30,FALSE) --> orange fill
    =IF(ISNUMBER(F6),F6-TODAY()<180,false) --> yellow fill
    =IF(ISNUMBER(F6),F6-TODAY()<365,FALSE) --> pale green
    =IF(ISNUMBER(F6),F6-TODAY()<(365*2),FALSE) --> light green

    The best way to create formulas for conditional formatting is to create a cell formula that returns true or false, depending on the condition. Then plug that formula into the conditional formatting dialogue. See the formulas I've used to come up with the suggested CF in the attached file.

    regards,
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    01-28-2012
    Location
    Belgium
    MS-Off Ver
    Excel 2007
    Posts
    8

    Re: Date expiry conditional formatting in Excell 2007 (I think it is the 2007 version anyw

    Dearest npamcpp,

    Is there a way to get it looking like this in attachment please?
    No working with the true and false then.
    If only the first line will be changed, then I should be able to do all the next lines for sure. :-)

    Will try to change your formula's a little bit and see what that will say to start with.

    Thanks again super much,

    Nico

  4. #4
    Forum Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,451

    Re: Date expiry conditional formatting in Excell 2007 (I think it is the 2007 version anyw


  5. #5
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: Date expiry conditional formatting in Excell 2007 (I think it is the 2007 version anyw

    Nico,

    Welcome to the Forum, unfortunately:

    This is a duplicate post and as such does not comply with Rule 5 of our forum rules. This thread will now be closed, you may continue in your other thread.

    Thread Closed.
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

Closed 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