Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Date problem

Status
Not open for further replies.

colkas

IS-IT--Management
Aug 26, 2003
39
SE
Hi

We have a date of purchase for an item in one column. It as a warranty of 3 years. I want to set a column where it says how long is left on the warranty (perhaps in months)based on the purchase date if it is out of warranty in 3 months to display in green , if out of warrnaty to display in red.

Any ideas how I can achieve this.

Many thanks
 
Format cells as date and then put the equation =a1+1095 in cell b1 (1095 = 365 * 3 is 3 years)
(assuming your date is in cell a1)
This will show the date of waranty expiry.
Then you need to conditionally format that cell to colur to your criteria (you state 3 years at one point and 3 months at another so not entirely sure when you want the cell to go red)

Regards, Phil.

M.U.F.C. Show your true support here:
"Shares not Shirts
 
Have a look at the DATEDIFF FAQ on this forum for more info on dates and reporting on them - specifically on teh difficulties of reporting the number of non standard units (that'd be months) until completion

Rgds, Geoff

"Three things are certain: Death, taxes and lost data. Guess which has occurred"

Please read FAQ222-2244 before you ask a question
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top