![]() | |
|
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. |
![]() |
| | LinkBack | Thread Tools | Display Modes |
| | #1 |
| warranty voider 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) | |
| | #2 |
| Remembering TQ ![]() 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) | |
![]() |
| Thread Tools | |
| Display Modes | |
| |