Excel-Conditional Formatting-Conflicting Rules - excel

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

Related

Change color of a cell based on another cell

Say i have a list of 100 items. I want to automatically change the color of a specific cell of the item based on whether that item has been sold partially or not. So like if i have 100 quantities of this stock, if it's still 100 after one month then it should be red. Otherwise it should be changed to green if sales are made within that month.
Sorry if this is simple, much appreciated!
Based on the information this can be easily achieved using conditional formatting
I have populated a sample data below
Sample
Using conditional formatting , you need to set two rules
Turn Cell background to red if no values present in row
Turn cell background to green values present in row
Considering the sample data above, you need to select the Cells from C2 to C4 and create conditional formatting -> New rules -> Use a formula to determine which cells to format
Rule 1
then create one more rule
Rule 2
it should look like this in summary
summary
Click apply and you will have the result required

Highlighting cells in a column based on other cells dates in the same row

I have a spreadsheet that is used to track the last date a set of logs was downloaded.
We need to take logs at around the 7 day mark if possible (not critical)..
We have approximately 170 assets that we do this to.
The way the spreadsheet is set up the new date is added to an ever expanding list (rather than just overwriting) i have used conditional formatting to show that a date is less than 7 days old but that cell can be 20 columns accross and is still hard to cross reference to the asset number. I want to highlight column A if any other cell in the same row is highlighted (unless you have a less clunky way of doing it, having the date highlighted really is unimportant it is simply as far as i can get on my own.
I even tried doing a sort by cell colour but that seems to require that i pick one coulmn only.
Thanks for your help.
Conditional formatting will do this for you. I used this example:Column A has dates, Columns B and C have miscellaneous gibberish. (click the link to view the image)
Select the entire range of cells you want to follow these rules (possibly just "select all" to be sure you are getting future additions as well, then choose Conditional Formatting from the ribbon.
Conditional Formatting > Use a formula to determine...
Then enter the following code. =TODAY()-$A2<7 Update $A2 with whatever cell contains your first date value, and be sure to put a $ in front of its column reference so that the formula references only your date column and doesn't wander.Code: =TODAY()-$A2<7
Click the "Format" button to set whatever format you like (I chose yellow fill).

Conditional Formatting Rows Based on Date

I have a table with a round 500 rows of data. I want to setup conditional formatting to highlight rows based upon how old a row is (based upon the date cell in that row). The idea is that as an entry get's older, it is entered with a white background, but as it ages, it turns a darker shade of red. We have data taken from 5 separate weeks and plan to add more. Is this POSSIBLE in Excel, or will I need to highlight each week manually?
If you are willing to have one column be highlighted, as opposed to the entire row, this example should help.
Steps to reproduce:
Highlight the column with the dates
In the Conditional Formatting menu (Under the Home Tab on the Ribbon - Office 2013)
New Rule
Format All Cells based on their values.
Choose the darkest color for the Lowest Value
Choose the lightest color for the Highest Value
OK
Note in the example below how the scale of the colors changes based on the range. When the lowest date is 2001, that receives the darkest red, but when a date from 1980 is entered, the dates from 2001 and up are considered to be in the lighter third.
The formatting applies to the entire column, so you can add as many dates as you need.
Here are some very useful tips demonstrating a number of uses for conditional formatting:
Excel formulas for conditional formatting based on another cell value
How to conditionally format dates and time in Excel - built-in rules and formulas

Conditional Formatting on cells with the result of a formula

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.

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