Comparing one months table with previous month, and was looking to add conditional formatting where I compare this months incidents per state to last months incidents in each state, and if there is an increase in 10% or more incidents, then change the cell to Red, and if there is reduction in 10% or more then change to green, and if it is between those two numbers then yellow.
Is the only way to add 3 separate rules to each cell individually, and if so how do you do that?
Otherwise is there a quicker way?
Thank you
I don't know if it can be done with a single CF rule but I made three CF rules based on formula, one for each color:
Red color formula: =B3-B9>=0.1*B9
Green Color formula: =B3-B9<=-0.1*B9
Yellow color formula: =AND(B3-B9<0.1*B9;B3-B9>-0.1*B9)
If I change May values, colors update:
Related
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.
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:
I have a list of domains that my company owns. In the control panel it doesn't show an expiration date but we always choose a two year option on the domain.
What I have figured out is how to calculate how many days are left till renewal. But what I can't figure out is how to apply a 3 color coded conditional formatting on the cells that return the number days till renewal.
Example:
Here is the formula to find the number of days left.
=DATEVALUE("16-July-2016")-TODAY()&""
So I am trying to get numbers from:
0-100 a red color
101-400 a yellow color
401-730 a green color
I keep trying to apply it to the cells with that show the days left, but it won't show any color.
Can anyone help?
With &"" at the end of your formula, the result outputs as TEXT, and Conditional Formatting is trying to evaluate numbers. Set your formula to just =DATEVALUE("16-July-2016")-TODAY() and see if that fixes it.
Maybe three separate rules, applied to whichever column your values (excluding &"") are in (here assumed to be A):
In Excel, Home -> Conditional Formatting.
See this introduction on Conditional Formatting.
I have three columns of dates. The first contains the start date, the second is a date for when a 2month review is due and the third is the date that review is completed. I then set conditional formatting to turn the dates that are overdue (+5 Days-Red and +15 Days-Yellow) from current date (this part works). Now what I want to do is turn a date that is red or yellow to green if a date is entered in the third column. I can do each individual cell, but there is too much information to individually add a rule to each cell in the column. Highlighting a single cell and adding the rule (Cell Value-equal too-Green) will work but again, there are too many cells in the columns. If I highlight the entire column and try add the rule it will not let me and states that a must only apply it to a single cell.
I then tried to add a rule by formula that if this cell is empty then it will turn it green. This isn’t working. I am not sure what to do…I thought about a macro that would remove conditional formula if the dates matched up or I could even highlight it a different color if it was completed late.
It might be best to explain what I will be using it for…we have people working and they are due performance reviews. I would like to open the spreadsheet and see (visual) which ones are due by color coding their importance. Then changing that warning color to a good color (green) so I know it’s been completed.
Select your entire range (in picure below A1:C9). With selected range apply three CF rules using formulas:
For red: =$B1-5>=TODAY()
For yellow: =$B1-15>=TODAY()
For green: =$C1<>""
and using MOVE UP and MOVE DOWN buttons change the order of CF rules as shown in the picture: green should be first, yellow - second, and red - the last
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).