Excel Conditional Formatting for expired dates - excel

I have training that is due every year for a group of 30 people. I want to find a way on excel to make the cells change colors. Lets say the training was on 5/13/2015 I want to find a way where that cell would automatically change from green (valid) to yellow (a month before expiration) and red (expired). This training is valid for only one year. So i would like the cell to change yellow for 4/13/2016 so a month before that training date is not valid. (these dates are examples and not everyone has the same training date).

The same principle as #Abe but if to allow for leap years and that months vary in length while also taking heed of the fact that there are 30 people involved (say with training dates in A1 to A30) then perhaps select A1:A30 and fill (standard) green then HOME > Styles - Conditional Formatting, New Rule..., Use a formula to determine which cells to format, Format values where this formula is true::
=A1<DATE(YEAR(Now())-1,MONTH(Now()),DAY(Now()))
Format..., Fill, red, OK, OK, and New Rule..., Use a formula to determine which cells to format, Format values where this formula is true::
=A1<DATE(YEAR(Now())-1,MONTH(Now())+1,DAY(Now()))
Format..., Fill, yellow, OK, OK.

You will need to use Conditional Formatting in Excel.
Here is a step by step example using unit values instead of dates , but the idea is the same:
https://www.youtube.com/watch?v=2RQnTGlM57g
The video also shows written instructions here: http://www.contextures.com/xlCondFormat01.html

Using conditional formatting, the formula for the expired training would be:
=NOW()-$A$1>365
The formula for the expiring training would be:
=NOW()-$A$1>335
A1 being an example of the cell to format.
Then change the rules to format the text color. The rules should be in this order. See screenshot:

Related

Comparing Dates with Colored Cells in Excel

I have an Excel file were I have to update Manufacturing ETA's Bi-Weekly.
I have original dates in Column 'E' and The new updated dates in Column 'F'.
I would like to create a system, where every time the new Date is lower than the Previous, it highlights Green, and when the New date is higher than the previous, it highlights RED. If the date didn't change at all, nothing happens.
Could anyone guide me, on a solution please? I appreciate it.
Clear CF from ColumnsE:F, select from E3 to wherever suits and HOME > Styles - Conditional Formatting, New Rule..., Use a formula to determine which cells to format and Format values where this formula is true::
=$E3<$F3
Format..., select red fill, OK, OK.
Then repeat with:
=$E3>$F3
for green fill.
This will highlight (or not) the cells in pairs.

Excel - Shading entire Column based on one value

i am trying to make a work calendar for myself. screenshot of the excel file
I have written a conditional formatting to color all saturdays and sundays with the following code
=OR(WEEKDAY(B2)=2,WEEKDAY(B2)=1)
how can i make the Entire column under that day be colored.
Thanks :)
If you are not going to be moving columns around (Friday will always be in whichever cell it is at present and days just continue in sequence to the right) it might be easier to select the entire range to be subject to formatting and HOME > Styles - Conditional Formatting, New Rule..., Use a formula to determine which cells to format and Format values where this formula is true::
=OR(MOD(COLUMN(),7)=3,MOD(COLUMN(),7)=4)
Format..., select your choice of Fill, OK, OK.
Adjust 3 and 4 to match whichever day you choose to start the sequence with wherever your selected range starts.
Given information you have withheld of what is where the above might be simplified.
In Conditional formatting | Use a formula...
=WEEKDAY(B$2,16)<3
extended from B2 down and across.
Looks like you need to add a relative cell reference on B2:
=OR(WEEKDAY(B$2)=2,WEEKDAY(B$2)=1)
Here's an article about using relative references in conditional formatting: https://www.ablebits.com/office-addins-blog/2014/08/07/relative-absolute-cell-references-excel-conditional-formatting/

Conditional Formatting Excel Rows Based On Relationship To TODAY()

I am trying to use 3 rules to format the row 3 separate colours based on the information in various cells.
Example of table
I am trying to get the whole row to operate a traffic light system:
Amber if there is a date in Date Rcvd
Red if either Due Date is before Today
Green if Invoice Date is not blank.
the amber and green rules appear to work using the following:
=NOT(ISBLANK(A2)) to turn row amber, =IF(D2,TRUE) to turn row green but =OR($B2 < TODAY(),$C2 < TODAY()) does not turn row red if due dates are missed, I have tried various And/IFs etc but I cannot get this to work.
Your help is greatly appreciated as I'd love to get this working to impress in new job
the amber and green rules appear to work
so just considering
Red if either Due Date is before Today
Please select ColumnsA:D and HOME > Styles - Conditional Formatting, New Rule..., Use a formula to determine which cells to format and Format values where this formula is true::
=AND(ROW()<>1,$B1<>"",MAX($B1,$C1)<TODAY())
Format..., select red colour Fill, OK, OK.
As mentioned by #Scott Craner, you may have to decide on the priorities for the three colours and order accordingly, perhaps applying Stop if True to suit.

Copy conditional formatting to other columns on a spreadsheet that are not grouped together

I have created conditional formatting in a date column to show red if it's expired, orange if it's 30 days out from expiring. My boss now wants me to apply this to every register/database that exists. Problem is that some of the worksheets have multiple date columns and are not one after the other.
I haven't worked out how to copy and/or past the conditional formatting to the other date columns on the worksheets without redoing the conditional formatting from scratch.
Any solutions?
Assuming this is for Excel and you are dealing with entire columns then I suggest starting again (so we know what formulae are in use and that the Applies to range is a complete column) with, say for ColumnA, HOME > Styles - Conditional Formatting, New Rule..., Use a formula to determine which cells to format and Format values where this formula is true::
=AND(A1<>"",A1<TODAY()+30)
Format..., select orange, OK, OK.
Then repeat for red with:
=AND(A1<>"",A1<TODAY())
If these suit for ColumnA you should then be able to pick any one of the conditionally formatted cells, click Format Painter then, select whichever other columns you wish the rules to apply to.
Note that the order in which these rules are applied is significant. In Conditional Formatting Rules Manager red should be above orange (their order may be changed with the up/down arrows) and I'd suggest for red checking Stop If True).

Conditional format formula using =today() and greater than / less than

Trying to set up a bit of a to do list with conditional formatting dates. Any time I open the file B2 will load =today()'s date. What I'm hoping to do is find a formula that will allow something like if C2 < B2 (Over due) then conditional formatting rule, or if C2 is 7 days more than B2 then format rule 2.
Not sure how to proceed with this as =today() isn't being treated like numeric data.
Any suggestions?
Thanks!
To apply to C2, select it and HOME > Styles - Conditional Formatting, New Rule..., Use a formula to determine which cells to format and Format values where this formula is true::
=C2<B2
Format..., select choice of formatting, OK, OK.
Then repeat with:
=C2=B2+7
and (presumably) a different choice of formatting, though could be the same (in which case a single rule would be sufficient).
Beware if C2 contains time as well as date the second rule above will not work (and not that formatting will only work for 7 days time, not 6 nor 8 ahead etc, only seventh day from today not counting today).
TODAY() could be part of the formulae (if adjusted) - does not need to bein a separate cell.
To apply to ore than one cell (eg an entire column) is quite possible with slight adjustments.

Resources