Hi,
I have a spreadsheet with a master worksheet containing columns that list staff names and the training completed and forklift licenses obtained and when those licenses expire.
Another worksheet refers to that master sheet and using nested IF statements populates the cells with the names of staff who have obtained their forklift licenses and when the licenses expire.
Is there any way that I can expand the IF statements (or add something else) to change the cell colour depending on how close each cell name is to the license expiry date? e.g. change the cell colour to orange if the expiry date is within 6 weeks from today's date, red if within 3 weeks, and so on.
you can use conditional format >>> if you could post a small example of your file would help
Thanks for your reply. I've attached a small example to look at.
Hi, you can use conditional formatting.
With expiry date in column B, select the cells you want formatted and apply these conditions
=$B2-today()<=21
=$B2-today()<=42
For each condition, you choose what color should be used when condition is true.
Sorry it took so long to get back to you >> I was called away
click B10 go conditional format / formula is
format your color add=B10<=TODAY()+21
format your color=B10<=TODAY()+42
Fantastic - works a treat thank you. Now tell me is there a way to copy this conditional rule across multiple rows without doing each cell individually? I would have say 4 conditional formats per cell (4 different colours for different upcoming lead times to license expiration date) so across a thousand rows it would save me heaps of effort. Thanks again for bothering to help out.
I did apply the formats to a range inside the formatting rules management area, and that doesn't seem to be working very well now. I did try ticking and unticking the 'stop if true' boxes but no difference; the different colour format rules are only working ad hoc - that is, some of the cells colouring correctly as per the formula and others aren't. Very confusing.
Last edited by Paul; 01-20-2012 at 04:36 PM.
This may work better
and format colour=AND($B10<TODAY(),$B10>TODAY()-21)
and format colour=AND($B10<TODAY(),$B10>TODAY()-42)
now click B10 Copy then highlight were you want cells formated -- go Paste special / click FORMATS then OK
Thanks Guys - terrific help!
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks