+ Reply to Thread
Results 1 to 10 of 10

Excel 2007 : Conditional Formatting a Date Table?

  1. #1
    THORmx
    Guest

    Conditional Formatting a Date Table?

    Hi,

    Could someone please help me on Conditionally formatting a date table? I would like to make a table, and have dates that are within 1 month (for example, may be different) of the current date to turn red.

    For example
    system date shows 4/17/09

    I'd like any date in the table that shows 5/17/09 or earlier (up to 4/17/09 of course) to turn red.

    Any ideas? Thanks!!
    Last edited by THORmx; 04-20-2009 at 05:19 AM.

  2. #2
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,482

    Re: Conditional Formatting a Date Table?

    Maybe you can post an example workbook
    Cheers
    Andy
    www.andypope.info

  3. #3
    Forum Expert oldchippy's Avatar
    Join Date
    02-14-2005
    Location
    Worcester, UK
    MS-Off Ver
    Excel 2007 (Home)
    Posts
    7,097

    Re: Conditional Formatting a Date Table?

    May be this will help?
    oldchippy
    -------------


    Blessed are those who can give without remembering and take without forgetting

    If you are happy with the help you have received, please click the <--- STAR icon on the left - Thanks.

    Click here >>> Top Excel links for beginners to Experts

    Forum Rules >>>Please don't forget to read these

  4. #4
    THORmx
    Guest

    Re: Conditional Formatting a Date Table?

    That is perfect OldChippy!

    Care to share how you did that?

    Thanks!

  5. #5
    Forum Expert oldchippy's Avatar
    Join Date
    02-14-2005
    Location
    Worcester, UK
    MS-Off Ver
    Excel 2007 (Home)
    Posts
    7,097

    Re: Conditional Formatting a Date Table?

    Hi,

    On the ribbon Home tab, go to Conditional Formatting, Highlight Cell Rules, Between, enter

    =TODAY()

    and

    =EDATE(TODAY(),1)

    select your shading

  6. #6
    Forum Expert oldchippy's Avatar
    Join Date
    02-14-2005
    Location
    Worcester, UK
    MS-Off Ver
    Excel 2007 (Home)
    Posts
    7,097

    Re: Conditional Formatting a Date Table?

    Hi,

    Forgot to mention, select your range of cells first, then do the CF

  7. #7
    THORmx
    Guest

    Re: Conditional Formatting a Date Table?

    Thanks Chippy! Can you explain what each function in the EDATE things means?

    Also, anyway to do it on like (monthly, 2 weeks, or 56 days?) thanks again so much for your help!

  8. #8
    Forum Expert oldchippy's Avatar
    Join Date
    02-14-2005
    Location
    Worcester, UK
    MS-Off Ver
    Excel 2007 (Home)
    Posts
    7,097

    Re: Conditional Formatting a Date Table?

    Hi,

    Well as you can see there are not many parts to EDATE, but basically the first part is the start date and as you wanted it to be dynamic then we can use TODAY(). The second number being the number of months, either before or after the start date. EDATE is exactly a number of months from the start date, so 15/02/2009 to 15/03/2009 is a different number of days to 15/04/2009 to 15/05/2009.

    If you wanted to do 2 weeks or 56 days, then you could use instead of EDATE

    =TODAY()

    and

    =TODAY()+14

    being 14 days or 56 days

  9. #9
    THORmx
    Guest

    Re: Conditional Formatting a Date Table?

    Thank you very much Old Chippy. You have been a great help!

  10. #10
    Forum Expert oldchippy's Avatar
    Join Date
    02-14-2005
    Location
    Worcester, UK
    MS-Off Ver
    Excel 2007 (Home)
    Posts
    7,097

    Re: Conditional Formatting a Date Table?

    If you are satisfied with the solution(s) provided, please mark your thread as Solved.

    How to mark a thread Solved
    Go to the first post
    Click edit
    Click Go Advanced
    Just below the word Title you will see a dropdown with the word No prefix.
    Change to Solved
    Click Save

+ 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