I have an Excel sheet that shows a Target date in one column and the next column has the Actual date. I have added statements to turn the Target date to RED, GREEN or YELLOW.
How do I turn the Target date column back to white after a date is added to the Actual date column?
If the colours are added by Conditional Formatting it may be best to incorporate the "back to white" requirement into whatever rules you are using but you can use Conditional Formatting to apply a rule such as:
=ISBLANK(B1)
with white colour - assuming (a) the Target dates are in ColumnA (b) the Actual Dates in ColumnB and (c) the range you apply this to is either =$A:$A or as relevant (or you select the range before setting the rule).
If necessary move this rule to the top and check Stop If True.
Related
I have two columns. 1st column is an expected completion date (ECD). 2nd column is a actual completion date (ACD), which starts out blank. I want the ECD to turn red if its date is in the past...easy. I want the ECD to turn back to white if there is an ACD filled in.
To me the formula would be: =AND(A3:A5 < TODAY(), B3:B5 IS NOT BLANK) But that formula is not allowed.
Can someone please help?
When you setup conditional formatting you have to be very careful about how you specify things. When setting up your formulas you only reference the 1st row of your AppliesTo range, excel will adjust the references as it moves down the range. Of course this will be different if you are referencing cells that are not in your first row. If referencing constants remember to use the $ for the rows/columns that don't change.
In this specific case the formula you want is: =AND(A3<(TODAY()),B3=0,A3<>0)
I am trying to create a worksheet which colour codes the cells according to the next date. If the value of 1 July is higher than the value of 30 June then the cell of 1 July needs to be green but if its lower then it needs to be red. This would then apply to all dates in my worksheet according to the previous days value.
I am unsure how to apply conditional formatting to an entire column based on the previous rows cell value and not one single cell value
The conditional formatting will be applied when the criteria result = TRUE.
Here is the formula to enter into the conditional format window to result in a RED cell. Green would be the same, but with a greater than symbol. Click on the first cell that should be conditionally formatted, then create the conditional format rule and check it. Then copy the cell, highlight the range of cells to be formatted and paste-formatting only.
Note, in your explanation you mention that a lower value than the prior day should be RED, but the image shows GREEN. You can reverse the formula below based on the output that you need.
=AND(ISNUMBER(B2),ISNUMBER(B3),B3<B2)
I'm relatively new to Excel and have to stitch together something. I'm having some trouble with conditional formatting.
What I'd like to do is, for each line, type in the date of request. The hidden column is just the date of request +21 days. For the heading records rec'd, I have it elsewhere with 1 and 0, and then a custom cell view in which [=1}"Yes";[=0]"No". When the "hidden" column date is in the past, I'd like to conditionally format the date of request to appear in red.
I've tried something like this: =IF($F$3
When the "hidden" column date is in the past, I'd like to conditionally format the date of request to appear in red
The hidden column is not required for conditional formatting as the calculation of 21 days can be done within the CF formula rule. Select Date of Request (assumed to be ColumnF) and HOME > Styles - Conditional Formatting, New Rule..., Use a formula to determine which cells to format and Format values where this formula is true::
=TODAY()>F1+21
Format..., select your choice of red, OK, OK.
However you also mention Records Rec'd? column (presumably H) and if the above formatting is not to apply when the corresponding row contains "Yes" (on its own) in that column, change the above formula to:
=AND(TODAY()>F1+21,H1<>"Yes")
The reference to columnH might be changeable to the source (1s or 0s) that trigger the Yes, depending on how the Yes and No are derived.
For simplicity the formatting rule has been applied to the entire column. If a shorter range is required select from H3:Hn (where n is the highest row number in the range) and adjust the formula from F1 to F3 and from H1 to H3, or don't adjust but set another rule for the first three rows that applies no formatting but takes precedence, or specifically exclude the first three rows within the formula.
IF is not normally required within a CF formatting rule (because such formatting is conditional).
How can I format Excel to read the date in a cell (A), compare that against dates in other cells (B,C,D etc), and if A is a date before B, highlight row in a particular colour; if A is a date before C, highlight row in a particular colour etc.
Example:
A is 15/11/2014
B is 07/11/2014 (Green)
C is 14/11/2014 (Red)
D is 21/11/2014 (Blue)
Based on this, the row should be Blue as it is before D.
You are going to want to look at Conditional formatting. Under the Home Tab, in the Styles Group, click Conditional Formatting. You can set up the rule (format by value probably). One way to do it is to add multiple rules (one for before red date, one for before blue date, etc.) and then check the box for stop if true for each one.
In the example you provided, first rule would be: if A < B then format green. Second rule: if A < C then format Red. Third rule: if a < D then format Blue. There's also an option to do multiple ranges in one rule (depending on your version of Excel). That would probably be simpler. You should be able to use relative (A1 instead of $A$1) references for your equations, so that when you use the format painter to paint the entire column the comparison formula travels with it. For more detailed information on Conditional Formatting:
https://support.office.com/en-US/Article/Quick-start-Apply-conditional-formatting-6b6f7c2a-5d62-45a1-8f67-584a76776d67?ui=en-US&rs=en-US&ad=US
Does that help?
I have a column with conditional formatting rules set to make the background one of three colors based on how close the date is in comparison to the current date (Today's date + 7, + 15, +30 days).
I want to extended the conditional format across to effect the entire row, rather than just the individual cell for the user more easily to see which item's date is approaching.
Is it possible to do a conditional format using a cell's format?
Update: To explain it further. Conditional format is set to a column: if a cell value is in between today's date and 7 days from today's date, it is formatted to have a green background. I want this format to extend across the ROW in which the value turns green.
Please try:
where the three formulae are:
Green =$A1<TODAY()+7
Orange =$A1<TODAY()+15
Yellow =$A1<TODAY()+30
and I have assumed each 'row' spans A:Z and your dates are in ColumnA.
This will highlight dates earlier than today also (though could easily be adjusted).
Just change the Applies to range to all the columns you want to be colored. You'll need to make sure you lock down the reference of the date column in the Conditional Formatting rule.
For example:
If your data is in columns A:H, then your Applies to range will be =$A:$H
If your date column is column C, then your conditional formatting rule (for C1) would be something like:
=AND($C1>=TODAY(),$C1<=TODAY()+7)