+ Reply to Thread
Results 1 to 6 of 6

If date older than today color cell RED

  1. #1
    Registered User
    Join Date
    09-18-2008
    Location
    Azarath
    Posts
    2

    If date older than today color cell RED

    Hi guys,

    I've been around excel for a while but never tried building any meaningful sheet until now :-)

    I need your help.

    Column B is populated with dates only. I want the cell to the right (on column C) to become:

    - RED -- if the date in column B is equal to a week from the current date or older (basically older than 7 days from now)
    - GREEN -- if the date in column B is greater by 8 days from the current date.


    For example:
    Today (current date) is Sep-18-2008:

    Jan-02-2008 RED
    Sep-18-2008 RED
    Sep-22-2008 RED
    Sep-30-2008 GREEN
    Oct-11-2008 GREEN

    Thank you!

    Choco
    Last edited by chococharlie; 09-18-2008 at 03:03 PM.

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    Select the range in column C to colour and go to Format|Conditional Formatting

    Select Formula Is from 1st drop down and enter formula =$B1<=TODAY()+7

    where B1 is top most cell to check.

    Click Format and choose Red

    Click Add

    Select Formula Is and enter formula: =$B1>=TODAY()+8

    Click Format and choose Green
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Registered User
    Join Date
    09-18-2008
    Location
    Azarath
    Posts
    2
    Sir, you are a genius! Thank you.

  4. #4
    healthier
    Guest
    A very well worthy tip from NBVC. Thanks for that.

  5. #5
    Registered User
    Join Date
    05-23-2013
    Location
    Brampton, ON
    MS-Off Ver
    Excel 2016
    Posts
    135

    Re: If date older than today color cell RED

    This is a great idea, and I am trying to use it, but I'm coming up short. My goal is:
    I have a calendar, and I want all days past to be grey, for example.

    I thought it would be a simple edit to the above, but I haven't found it. Any input is appreciated.

    Thanks

  6. #6
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,936

    Re: If date older than today color cell RED

    Unfortunately your post does not comply with Rule 2 of our Forum RULES. Do not post a question in the thread of another member -- start your own thread.

    If you feel an existing thread is particularly relevant to your need, provide a link to the other thread in your new thread.

    Old threads are often only monitored by the original participants. New threads not only open you up to all possible participants again, they typically get faster response, too.
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

+ 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. Display today date as quorters of the year macro
    By hunsnowboarder in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-12-2008, 08:36 AM
  2. Advanced Timesheet
    By DaKohlmeyer in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 07-28-2008, 04:49 PM
  3. Finding the closest future date from Today from a list of dates
    By maharg in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-18-2008, 09:45 AM
  4. looping issues
    By Marcus Gee in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 10-09-2007, 11:42 PM
  5. today() and now() incorrect date entered
    By opn6 in forum Excel General
    Replies: 3
    Last Post: 01-14-2007, 02:35 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