Solved

Date Calculation in Excel

Posted on 2014-03-02
8
281 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
8 Comments
 
LVL 8

Expert Comment

by:Naresh Patel
ID: 39899520
try this
=IF(A1<TODAY()-1095,"Out Of Warranty","In Warranty")

Open in new window

0
 
LVL 8

Expert Comment

by:Naresh Patel
ID: 39899521
See attached
date.xlsx
0
 
LVL 8

Assisted Solution

by:Naresh Patel
Naresh Patel earned 250 total points
ID: 39899530
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
Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

 
LVL 85

Accepted Solution

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

=IF(DATEDIF(A1,TODAY(),"Y")>=3,"Out Of Warranty","In Warranty")
0
 
LVL 24

Expert Comment

by:Eirman
ID: 39900228
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:Naresh Patel
ID: 39900255
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:Naresh Patel
ID: 39900263
But I guess Mr.Rory Archibald's Formula is more appropriate than mine.

Thanks
0
 

Author Closing Comment

by:AXISHK
ID: 39902076
tks
0

Featured Post

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A little background as to how I came to I design this code: Around 5 years ago I designed an add-in that formatted Excel files to a corporate standard, applying different cell colours and font type depending on whether the cells contained inputs,…
In Part II of this series, I will discuss how to identify all open instances of Excel and enumerate the workbooks, spreadsheets, and named ranges within each of those instances.
Graphs within dashboards are meant to be dynamic, representing data from a period of time that will change each time the dashboard is updated with new data. Rather than update each graph to point to a different set within a static set of data, t…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

630 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