Conditional Formatting Excel Rows Based On Relationship To TODAY() - excel

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.

Related

How to set color code in excel using conditional formatting- based on year?

Morning Everyone,
how to set color code on excel sheet based on year.
example :
i. red - expired
ii. Yellow - three months before expired
iii. Orange - a month before expired.
below is the example on how i want it to be on excel sheet.
i have tried some formula using conditional formatting - only red color are being marked but not yellow and orange.
kindly need your help. thank you so much.
The dates you provided do not act as a good example since they are years apart, not months apart. You can do this with a conditional formatting equation. Simply subtract the two dates (Expiration Date - Current Date).
If A1 = Expiration Date and A2 = Current Date, go to "Conditional Formatting>Manage Rules>New Rule>Use Formula To Determine Which Cells to Format, and then set the following three rules:
=A2-A1 < 1, Set formatting Red
=A2-A1 < 31, Set formatting Yellow
=A2-A1 < 91, Set formatting Orange
Once you have added these conditional formats, go back to "Manage Rules" and then make sure the rules are in this exact order.

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.

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).

Excel Conditional Formatting for expired dates

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:

Excel Formatting Cell Conditions

I have some large tables of data for percentages of employees in different areas with degrees for each month for the past year, I want to add a conditional format that highlights a cell green if the number increased from the previous month and red if it decreased. I know how to do this individually but I was wondering if there was a larger scale method to do this?
The following assumes that the data is formatted such that the percentages of employees are all in the same row and the successive months are in consecutive columns.
Here's how I have my sheet set up:
What you can do to acquire the red/green formatting is highlight C2:M2, click Conditional Formatting under the Home ribbon, then select New Rule. Next, click "Use a formula to determine which cells to format" and in the formula bar write the following:
=IF(C2 > B2, 1, 0)
Now click Format and go to the Fill tab. Select any shade of green that you want and press OK. Press OK once again on the Rule window and that "greater than" rule will be created. Do the same thing but instead enter this formula
=IF(C2 < B2, 1, 0)
and select a shade of red and you should be good to go.
A possibility you did not mention is that cells that have not changed in value from one month to the next should be neither red nor green. That is still possible with just two rules if coupled with a default fill set as ‘standard’ fill rather than with conditional formatting, say red:
Select the range to be formatted, say C2:M100, and apply a ‘standard' fill of red colour. B2 is assumed to be a datapoint but since without precedent is not to be formatted.
Overwrite this with a conditional formatting rule using a formula to determine which cells to format such as:
=C2>B2
and select green fill.
Add a second rule of:
=C2=B2
and select white fill.
Since the rules are mutually exclusive, might as well check Stop If True for both.
There is no need for =IF(…,1,0) since this is Conditional Formatting and the IF is implied.
If you wanted say a traffic light analogy, with amber for ‘no change’, use a ‘standard’ amber fill for B2:M100, select C2 and apply:
=C2>B2
as above and select green fill but change the second rule to:
=C2<B2
and select red fill.
Ensure that the Applies to range for both the above is =$C$2:$M$100 (this just being an alternative to starting by selecting C2 rather than the entire applicable range).

Resources