Link to home
Start Free TrialLog in
Avatar of AXISHK
AXISHK

asked on

Date Calculation in Excel

There is a purchase date column in a Excel. Is it possible to write a formula such that is the purchase date - today is more than 3 years. A message "out of warranty" will be displayed.

Tks
Avatar of Naresh Patel
Naresh Patel
Flag of India image

try this
=IF(A1<TODAY()-1095,"Out Of Warranty","In Warranty")

Open in new window

See attached
date.xlsx
SOLUTION
Avatar of Naresh Patel
Naresh Patel
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
ASKER CERTIFIED SOLUTION
Avatar of Rory Archibald
Rory Archibald
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
It might be safer to use 1096 to take account of possible leap years
or use Rory Archibald's formula.
I am on my way back to home so can't help it now. Surly assist you after 2 hours to how to tackle leap year.

Thanks
But I guess Mr.Rory Archibald's Formula is more appropriate than mine.

Thanks
Avatar of AXISHK
AXISHK

ASKER

tks