Solved

Date Calculation in Excel

Posted on 2014-03-02
8
268 Views
Last Modified: 2014-03-03
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
0
Comment
Question by:AXISHK
8 Comments
 
LVL 8

Expert Comment

by:itjockey
Comment Utility
try this
=IF(A1<TODAY()-1095,"Out Of Warranty","In Warranty")

Open in new window

0
 
LVL 8

Expert Comment

by:itjockey
Comment Utility
See attached
date.xlsx
0
 
LVL 8

Assisted Solution

by:itjockey
itjockey earned 250 total points
Comment Utility
Assuming - A column is date of purchase.
=IF(AND(A2<TODAY()-1095,A2<>""),"Out Of Warranty","")

Open in new window

this more refine if there is either column  A is blank or date is in warranty period returns to blank. else Out Of warranty

if you want to returns result if date is in warranty with In Warranty Period then use this
=IF(A2<>"",IF(A2<TODAY()-1095,"Out Of Warranty",""),"")

Open in new window


Thanks
0
 
LVL 85

Accepted Solution

by:
Rory Archibald earned 250 total points
Comment Utility
Just FYI, you can also use DATEDIF:

=IF(DATEDIF(A1,TODAY(),"Y")>=3,"Out Of Warranty","In Warranty")
0
How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

 
LVL 23

Expert Comment

by:Eirman
Comment Utility
It might be safer to use 1096 to take account of possible leap years
or use Rory Archibald's formula.
0
 
LVL 8

Expert Comment

by:itjockey
Comment Utility
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
0
 
LVL 8

Expert Comment

by:itjockey
Comment Utility
But I guess Mr.Rory Archibald's Formula is more appropriate than mine.

Thanks
0
 

Author Closing Comment

by:AXISHK
Comment Utility
tks
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Introduction This Article briefly covers methods of calculating the NPV and IRR variants in Excel as well as the limitations in calculating and interpreting IRR results. Paraphrasing Richard Shockley, author of my favourite finance reference tex…
Improved? Move/Copy Add-in Replacement - How to avoid the annoying, “A formula or sheet you want to move or copy contains the name XXX, which already exists on the destination worksheet.” David Miller (dlmille)  It was one of those days… I wa…
The viewer will learn how to simulate a series of coin tosses with the rand() function and learn how to make these “tosses” depend on a predetermined probability. Flipping Coins in Excel: Enter =RAND() into cell A2: Recalculate the random variable…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

728 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now