Solved

Date Calculation in Excel

Posted on 2014-03-02
8
270 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
ID: 39899520
try this
=IF(A1<TODAY()-1095,"Out Of Warranty","In Warranty")

Open in new window

0
 
LVL 8

Expert Comment

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

Assisted Solution

by:itjockey
itjockey 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
Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
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 23

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:itjockey
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:itjockey
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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Workbook link problems after copying tabs to a new workbook? David Miller (dlmille) Intro Have you either copied sheets to a new workbook, and after having saved and opened that workbook, you find that there are links back to the original sou…
This article descibes how to create a connection between Excel and SAP and how to move data from Excel to SAP or the other way around.
This Micro Tutorial demonstrates how to create Excel charts: column, area, line, bar, and scatter charts. Formatting tips are provided as well.
This Micro Tutorial will demonstrate on a Mac how to change the sort order for chart legend values and decrpyt the intimidating chart menu.

828 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