- For individual users
- Instant access to solutions
- Ask your tech questions
- Start your 30-day Free Trial
Main Topics
Browse All TopicsI have an Excel 2007 spreadsheet for all of my servers. It gives the model, serial numbers, OS, backup type, etc. However the most important for planning is the warranty information.
For example:
Cell F2 holds the shipping date
Cell H1 holds the warranty expiration date
Cell I1 holds the current date
Cell J1 holds the days left until warranty expiration
What I need is:
If the warranty is still good for a FY, color the font green
If the warranty expires in the current FY, color the font yellow
If the warranty is completely gone, color the font red
I'd much prefer to do this without a script. Any help would be much appreciated.
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Business Accounts
Answer for Membership
by: mvidasPosted on 2009-09-01 at 08:10:27ID: 25232358
Hi Andy,
1)=YEAR(TO DAY()))
)<>YEAR(TODA Y()))
AY()+365)
Take a look at conditional formatting, it does exactly what you want.
First, select the cell(s) you want to color. Go to the Home tab, and you'll see "Conditional Formatting" in the Styles section. Click that, and go to "Manage Rules".
Click New Rule. For "Select a Rule Type", click "Use a formula to determine which cells to format". In the space for the formula, paste the following:
=AND($H$1>=TODAY(),YEAR($H$
Click the Format button, and choose a yellow font. Click ok to close the format window, and ok again to close the New Rule window.
Click New Rule again, with the same "Use a formula to determine...". For the formula, use:
=AND($H$1>TODAY(),YEAR($H$1
Click the format button, choose green, and close those same windows again.
Lastly, add another new rule, same rule type, and for the formula use:
=$H$1<TODAY()
Make that the Red formatting, and close the same windows.
The only change you may want is based on how you determine the green/yellow barrier. If you mean green should be "doesnt expire in the next 365 days", and yellow means "expires in next 365 days", then use the following formulas instead:
Yellow: =AND($H$1>=TODAY(),$H$1<=TOD
Green: =$H$1>TODAY()+365
Let me know if you have any questions
Matt