+ Reply to Thread
Results 1 to 6 of 6

Date expiry notification

  1. #1
    Registered User
    Join Date
    10-20-2010
    Location
    MD
    MS-Off Ver
    Excel 2003
    Posts
    53

    Question Date expiry notification

    Hi all.
    I have a DB with many columns in one of them dates [The date of registration] (dd.mm.yyyy) are stored, I would like to be notified when 15 (cell green color), then 30 days (cell red color) will pass from that date, and after 45 days the cell will reset (get back to black color), how to get this done ? Any help will be appreciated.

    Thank you in advance.

  2. #2
    Valued Forum Contributor Steffen Thomsen's Avatar
    Join Date
    10-15-2010
    Location
    Kolding, Denmark
    MS-Off Ver
    Excel 2007 and Excel 2010
    Posts
    953

    Re: Date expiry notification

    I think you need to have helper columns!

    Column date + 15
    where you calculate date of registration + 15
    The same with 30 and 45

    Then you can in the workbook_open create a check
    Please Login or Register  to view this content.

  3. #3
    Valued Forum Contributor Miraun's Avatar
    Join Date
    04-03-2009
    Location
    New England
    MS-Off Ver
    2003, 2007, 2010, 2013
    Posts
    554

    Re: Date expiry notification

    Hey eXtremer;

    You're looking for conditional formatting.

    If Cell value is < Today() - 45, custom format normal
    If Cell value is < Today() - 30, custom format red
    If Cell value is < Today() - 15, custom format green

    What about before those 15 days?
    Going for Guru! Click the Star to the bottom left of this post if I helped!

  4. #4
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Date expiry notification

    Ηι.

    If I understand correctly your goal, this could be done with conditional formatting, without using VBA.
    Take a look at the attached file.
    Attached Files Attached Files
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

  5. #5
    Registered User
    Join Date
    10-20-2010
    Location
    MD
    MS-Off Ver
    Excel 2003
    Posts
    53

    Re: Date expiry notification

    Thank you guys for your replies,

    Now after your answers my task a little bit changed...

    So the cell that has a date in column "L" has to change it's color in red if 60 days passed, but this will only happen if the cell in column "P" is empty, if the cell in column "P" has any date then nothing has to happen. And if the cell in column "L" will get red after 60 days it will automatically "uncolor" itself if someone will insert a date in column "P".

    I hope someone will know the answer...thank you in advance.

    The task with the cell changing color I solved like this: =AND(TODAY()-L5>60;L5<>"") but what about other tasks ? In order to solve the whole problem. Thank you.

    P.S.: I attached the *.xls file so you would get a better understanding.
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    10-20-2010
    Location
    MD
    MS-Off Ver
    Excel 2003
    Posts
    53

    Re: Date expiry notification

    Solved like this:

    Please Login or Register  to view this content.
    All the credits go to Serge

+ 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