+ Reply to Thread
Results 1 to 5 of 5

Conditional formatting excel 2007 -certificate expiration dates

  1. #1
    Registered User
    Join Date
    02-18-2014
    Location
    ghana
    MS-Off Ver
    Excel 2007
    Posts
    3

    Smile Conditional formatting excel 2007 -certificate expiration dates

    Hi there

    Happy to be part of this group!
    I have small request regarding conditional formatting in excel 2007.

    I have trouble with formatting attached sheet in order to show expiration dates in two different colors
    For 3 months before expire in YELLOW
    For 1 month Before expire in RED

    Thanks for help
    Attached Files Attached Files

  2. #2
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.92 (24120731))
    Posts
    9,119

    Re: Conditional formatting excel 2007 -certificate expiration dates

    for 1 month - red use
    =AND(D1>=DATE(YEAR(TODAY()),MONTH(TODAY())-1,DAY(TODAY())),D1<=TODAY())
    that tests if within today and 1 month ago

    for 3 month - yellow
    =AND(D1>=DATE(YEAR(TODAY()),MONTH(TODAY())-3,DAY(TODAY())),D1<=DATE(YEAR(TODAY()),MONTH(TODAY())-1,DAY(TODAY())))

    this tests for between 3 months and 1 month

    in you example most of the dates are over three months anyway

    did you want to flag any date that is less then 1 month red
    and less than 3 months yellow

    if so

    Yellow
    =AND(D1<>"",D1<=DATE(YEAR(TODAY()),MONTH(TODAY())-3,DAY(TODAY())))

    RED
    =AND(D1<=DATE(YEAR(TODAY()),MONTH(TODAY())-1,DAY(TODAY())),D1<>"")
    PUT YELLOW first and stop if true
    Attached Files Attached Files
    Wayne
    if my assistance has helped, and only if you wish to , there is an "* Add Reputation" on the left hand side - you can add to my reputation here

    If you have a solution to your thread - Please mark your thread solved do the following: >
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

  3. #3
    Registered User
    Join Date
    02-18-2014
    Location
    ghana
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: Conditional formatting excel 2007 -certificate expiration dates

    Thanks you Etaf ...That was fast

  4. #4
    Registered User
    Join Date
    02-18-2014
    Location
    ghana
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: Conditional formatting excel 2007 -certificate expiration dates

    Acctualy Etaf this is not working properly because even if date is 2012 is marking YELLOW,as soon I change date to 2014 is gone all collor??
    Anybody?

  5. #5
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.92 (24120731))
    Posts
    9,119

    Re: Conditional formatting excel 2007 -certificate expiration dates

    This may be better

    Red for anydate upto a month in future
    Yellow for dates a month in future to three months in future

    see attached

    yellow
    =AND(D1<=DATE(YEAR(TODAY()),MONTH(TODAY())+3,DAY(TODAY())),D1>=DATE(YEAR(TODAY()),MONTH(TODAY())+1,DAY(TODAY())))

    red
    =D1<=DATE(YEAR(TODAY()),MONTH(TODAY())+1,DAY(TODAY()))

    thanks
    Attached Files Attached Files

+ 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. [SOLVED] Conditional Formatting on expiration dates.
    By xceldummie in forum Excel General
    Replies: 6
    Last Post: 11-12-2013, 01:13 AM
  2. [SOLVED] Expiration of dates in conditional formatting
    By Bakkertje in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-08-2013, 03:55 AM
  3. Conditional Formatting for Expiration Dates (Excel 2007)
    By milehigh5000 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-30-2013, 12:44 AM
  4. Conditional Formatting (Expiration Dates)
    By ConsbruckR in forum Excel General
    Replies: 7
    Last Post: 09-20-2011, 10:49 AM
  5. conditional formatting expiration dates
    By shanek in forum Excel General
    Replies: 2
    Last Post: 03-15-2010, 04:50 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