+ Reply to Thread
Results 1 to 2 of 2

Excel 2007 : Conditional Formatting according to the date the data is entered

  1. #1
    Registered User
    Join Date
    05-03-2010
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    1

    Conditional Formatting according to the date the data is entered

    I'll do my best to explain my question, please let me know if more information is needed.

    I have a "calendar" of sorts that is in Excel format. It lists several events, dates that the events will take place, and other pertinent information. I have been asked to format the calendar in such a way that when I enter in a new event, it will be in red text for 30 days, and then convert to "normal" or black text after being in the spreadsheet for 31 days.

    Is there a way to set this up with Conditional Formatting? Everything I have found relates to the date actually typed into the spreadsheet. I need it to be from the date the data is entered (regardless of the date typed in the field).

    Thanks in advance for any help.

  2. #2
    Forum Expert Palmetto's Avatar
    Join Date
    04-04-2007
    Location
    South Eastern, USA
    MS-Off Ver
    XP, 2007, 2010
    Posts
    3,978

    Re: Conditional Formatting according to the date the data is entered

    Since the tracking date must be independent of the calendar event date, it requires the use of VBA code to capture the date the entry was made, which requires the new date value to be maintained in its own cell. You can still apply the Conditional Formatting in the normal way using the DATEDIF function, like so:

    =DATEDIF(B1,TODAY(),"d")<32

    Unfortumately, Conditional Formatting does not allow reference to other worksheets so the reference date for applying the CF must be stored on the same sheet.

    Given lack of a sample workbook, here is example code that would place the current date into column-B when a date is entered in to column-A.

    For more precise help, upload a sample workbook (sensitvie date removed), that exactly duplicates the structure of your real workbook.

    Please Login or Register  to view this content.
    Palmetto

    Do you know . . . ?

    You can leave feedback and add to the reputation of all who contributed a helpful response to your solution by clicking the star icon located at the left in one of their post in this thread.

+ 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