ABXZone Computer  Forums



Welcome to the ABXZone Computer Forums forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact us.

Reply
 
LinkBack Thread Tools Display Modes
Old 01-15-2008, 01:36 PM   #1
warranty voider
 
Ford Freak's Avatar
 
Join Date: Oct 2001
Location: Valdosta, GA
Posts: 3,823
Need some help with Excel


I am working on a spreadsheet for tracking inspections on equipment at work. Some stuff needs to be done every 180 days and other stuff needs to be done every two years. I have made blocks to put the dates that they are due. I'd like to know if it is possible to have that block change from one color to another one month before the inspection is due and then to another color two weeks before it is due.

__________________
(Offline)   Reply With Quote
Old 01-15-2008, 02:00 PM   #2
Remembering TQ
 
k0NG0's Avatar
 
Join Date: Mar 2001
Location: Sweden
Posts: 13,623
Re: Need some help with Excel

Maybe this will help: Microsoft Excel Date & Time Formulas Tips and Tricks

It appears TODAY() is the function to call to get the current date. And DATEDIF() can get you the number of years, months, days between two dates.

So DATEDIF(A1, TODAY(), "m") would give the number of months between today and the date in cell A1 (the first date to the function must be later than the second, else it spits out an error). Use "d" instead of "m" for # of days.

As for changing colors based on that, you'd need a function that checks the cell for the time difference and sets the color based on that. If that's doable with only Excel formulas or if it needs some sort of VB thingie, I don't know.
__________________

Use Firefox - "the one that blocks all the schmutz"
Feeling multicore elation? Remember this correlation: Amdahl's Law.
(Offline)   Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



Powered by vBulletin® Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.0.1
vBulletin Skin developed by: vBStyles.com