I have a spreadsheet that has value in it like this
I want to verify if it's 3 month or more then the current date from now6/23/2008 11:54
I can't seem to find the proper VBA code for it ..
any help ?
Thanks
I have a spreadsheet that has value in it like this
I want to verify if it's 3 month or more then the current date from now6/23/2008 11:54
I can't seem to find the proper VBA code for it ..
any help ?
Thanks
Try this
=IF(A1>DATE(YEAR(TODAY()),MONTH(TODAY())+3,DAY(TODAY())),"over","Under")
It's telling me Under and that doesn't seem to work.
Since it's OVER 3 month from now .. !
June 2008 was a while ago.
Entia non sunt multiplicanda sine necessitate
Maybe i don't understand it correctly ,
If it's over 3 month shouldn't it say "Over" ?
Like it's been more then 3 month right ?
Three months from now is in the future not in the past.
Ok so what i want is to now it's it's been more then 3 month since the date value that i gave ..
Like since June 2008 to Today , it's been more then 3 month , that's what i need.6/23/2008 11:54
Thanks guys !
Try This
=IF(A1<DATE(YEAR(TODAY()),MONTH(TODAY())-3,DAY(TODAY())),"over","Under")
You can use DATEDIF like this
=IF(DATEDIF(A1,TODAY()+1,"m")>=3,"Over","Under")
VBA is not required, enter Dadylonglegs formula in the first cell, then doubleclick on the fill handle to get the formula down to the last cell.,
If you want this done in VBA, then attach a sample workbook
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks