Notify if the date expires in Excel DB

eXtremer

Board Regular
Joined
Oct 20, 2010
Messages
74
Hi all.

There is a excel database with columns, there is a column with dates and I need to be notified by excel somehow that it past for example 30 days from that date, is it possible to implement such a thing in excel ? I need to be notified just once, after that to click on it and the reminder has to be set OFF.

I really need to find a workaround.

Thank you in advance.
 
Am I doing something wrong ?

excel.jpg
 
Upvote 0

Excel Facts

What is =ROMAN(40) in Excel?
The Roman numeral for 40 is XL. Bill "MrExcel" Jelen's 40th book was called MrExcel XL.
Ah, that works!

Yes, CheckExpiryDates goes in a new general code module, not a worksheet code module. In VBA, go Insert > Module and put it there.
 
Upvote 0
Thanks Ruddles, some feedback...

1. If I change the DATE_COL to a column with dates expired long time ago, for example 2007, 2008...I'm still being notified. That column has dates from 2011 too, the dates that I need, but it shows me from all the years.

"Policy 111111 expires on 10.01.2009"
 
Upvote 0
Change the test so that in addition to checking whether the expiry date is before thirty days time, it's also in the future:-
Code:
If .Cells(iRow, DATE_COL) < Now() + ALERT_PERIOD [COLOR=red][B]And .Cells(iRow, DATE_COL) > Now()[/B][/COLOR] Then
Try that and report back?
 
Upvote 0
Change the test so that in addition to checking whether the expiry date is before thirty days time, it's also in the future:-
Code:
If .Cells(iRow, DATE_COL) < Now() + ALERT_PERIOD [COLOR=red][B]And .Cells(iRow, DATE_COL) > Now()[/B][/COLOR] Then
Try that and report back?


It works! Thank you.

About Conditional Formatting "=A1<(TODAY()+10)"...can't get it work, the cell doesn't change it's colour.
 
Upvote 0
You're using the cell reference of the cell with the date in it rather than A1, yes?
 
Upvote 0
You're using the cell reference of the cell with the date in it rather than A1, yes?

Really can't understand how it works, if I manually choose cells with no data, it sets itself red. If I choose cells the the expiry dates is does nothing, but everything manually, doesn't it have to be automatically ?
 
Upvote 0
Yes, conditional formatting changes cell colours instantly. If it's not happening then you've made a mistake.

Get it working on a single cell first, then copy the formatting to all the other cells you want it to apply to.

Incidentally, that formula will set empty cells to red so you might want to use something like this instead:-
Code:
=AND(A1>0,A1<(TODAY()+10))
or:-
Code:
=AND(A1>TODAY(),A1<(TODAY()+10))
 
Upvote 0

Forum statistics

Threads
1,224,521
Messages
6,179,291
Members
452,902
Latest member
Knuddeluff

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top