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).
Related
I'm trying to use one Conditional formatting rule that does the following:
Ignore Blank Cells
Ignore Cells that do not have a date value
Highlight Dates that are going to expire in 30 days
So i have a list of dates:
07/25/2021
06/25/2021
05/25/2021
etc...
i used the custom formula under conditional formatting and used the following codes:
=CountIF(A:Z,today()-30)
i also used
=CountIF(A:Z,"<="&today()-30)
both codes highlight blank cells, i tried using the IF statements or IsBlank statements but i don't think i fully understand how those work. because i made a mess.
regardless of what i do, cells that are non-dates and blank cells are highlighted.
i even tried using the the conditional formatting rule, "Format only cells that contain" and i added the following:
Format Only cells with:
Cell value - less than or equal to - Today()-30
what do you guys think im doing wrong?
Assuming that your dates are in column B:
Select entire column B.
From menu start Format / Conditional formatting...
Add a new rule with the plus sign.
At Style select Classic.
After select Use a formula to determine which cells to format
Enter this expression: =AND($B1<>"",$B1<=TODAY()-30)
Select a desired formatting.
You can easily adjust this to row or any other range, or +30 days etc.
If you need more columns, select all of them, and assuming that the first column is A, the formula should be: =AND(A1<>"",A1<=TODAY()-30). See the screenshot below with formula and some example data:
I have been trying to do this myself for a good few weeks now but it seems I do require some expertise here!
As I state in the Title, I'm trying to format duplicate values ONLY if date (located C1:AG1) =today. The values per day are in cells C2-AG28, the table of reference is AI2:28.
I don't have enough reputation to submit an attachment so I hope this is enough information for someone to shed a light on this.
Conditional formatting.
Click cell C1 and click conditional formatting and then new rule.
For the rule, use a formula to determine which cells to format and use this formula:
= C$1=TODAY()
Change the format to whatever you want and then apply this rule to the desired range (C1:AG28).
Clear any existing CF from the relevant range, 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::
=AND(C$1=TODAY(),COUNTIF(C:C,C1)>1)
Format..., select choice of formatting OK, OK.
Select the range C2:AG28 and create a new Conditional Formatting rule using a formula. The formula should be entered as follows:
=AND(C$1=TODAY(),COUNTIF(C$2:C$28,C2)>1)
The first part, identifying the column containing today's date in the first row is self-explanatory. The countif section of this formula works by identifying only those values which appear more than once in the column (e.g. having a count > 1). The way we limit this to a particular column, rather than the entire table, is by omitting the $ in front of the column in the address.
I have a totals column (S) with conditional formatting for the top 3 values.
What I want to do is also set a conditional format to match the first column (A) which contains the name for that row of data.
So whatever 3 totals are formatted in column S, the corresponding cell in column A will also be highlighted.
sample
Basically as suggested by #Scott Craner (and for the sake of an answer!) but combines formatting for both columns into a single rule. Select Columns A and S, HOME > Styles - Conditional Formatting, New Rule..., Use a formula to determine which cells to format and Format values where this formula is true::
=$S1>=LARGE($S:$S,3)
Format..., select choice of formatting OK, OK.
There is little to be gained by restricting the range to which the CF rule applies and "whole column" may ease subsequent expansion, if any.
An alternative, depending what rule is already in place, would be merely to extend that to Column A by incorporating that into the Applies to range in the Conditional Formatting Rules Manager, for example:
=$A:$A,$S:$S
rather than say $S2:$S25.
I'm trying to set up a formula or rule (don't know which is the best to do this) in Excel 2010.
I have values in "D10:D80", which I parse daily from the web, in the format (¥ 15,792) and values in the same format in "O10:O80". I would like conditionally to format the entire "D" cell (to became red) if the price in the "O" column is different from the price in the corresponding row of Column "D".
Select the range you want to format (ie D10:D80 - though entire ColumnD is possible is you wish) and HOME > Styles, - Conditional Formatting, New Rule..., Use a formula to determine which cells to format, Format values where this formula is true::
=$D10<>$O10
Format... select your formatting (red), OK, OK.
Please see below image, select the first cell to format then conditional formatting.
I've added (badly draw) arrows on to the settings and the formula you need to use. this will work. after that copy the formatting down the page :)
I am trying to implement the following logic but my formulas are not encompassing all possibilities.
Am I able to accomplish the following using the approach outlined below?
C5 has a start date(yy/mm/dd), 2013-10-01.
D5 has an end date(yy/mm/dd),2013-10-23.
F3->CX2 has 7 cells merged with the monday's date in the cell.
Example: F3: 30-Sep-13, M3: 07-Oct-13, T3: 14-Oct-13.
F4->CX4 and below are the unmerged seven cells, therefore you have seven cells below each week cell.
My goal is to use Conditional Formatting when cell has value TRUE to fill the background colour of each individual cell between the start and the end date. However I am having trouble determining the correct formula. I have tried the following in F4 and across and below but none have proven to work for all scenario's:
F4=AND(C5=F3, D5>=F3) F5=AND(C5=(F3+1), D5>=(F3+1))...
only fills the cell for the start date not all the cells between the start and end date.
In short, I need to identify the start cell and fill it, continue filling all cells until the end date.
Should this be a macro with a while loop?
***I Believe I have solved my question with the following formula:
=IF(AND((F3)>=$C$5,(F3)<=$D$5),TRUE,FALSE), =IF(AND((F3+1)>=$C$5,(F3+1)<=$D$5),TRUE,FALSE), =IF(AND((F3+2)>=$C$5,(F3+2)<=$D$5),TRUE,FALSE)...Then after 7 cells it becomes: =IF(AND((M3+1)>=$C$5,(M3+1)<=$D$5),TRUE,FALSE), =IF(AND((M3+1)>=$C$5,(M3+1)<=$D$5),TRUE,FALSE)
Should this be a macro with a while loop?
It seems it does not have to be, though that depends upon my interpretation of your question, which seems odd if only because the conditions are not in the rows for which they trigger the formatting.
Select the applicable range starting in F4 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($F$3+COLUMN()-6>=$C5,$F$3+COLUMN()-6<=$D5)
Format..., select choice of formatting, OK, OK.
Here's a stepwise view on the problem as I see it:
Set up your data and include the actual date of your "weekly view" as part of the sheet:
Add conditional formatting to a single cell (say, Monday of Week 1) that applies to "a formula to determine which cells to format":
Copy-and-Paste-formats to the remainder of the cells:
The result should resemble:
Change the actual cell formatting to "" to remove the date from view:
The removes the capability to insert any content in the cells (but that wasn't part of the question). If you want to insert content and maintain colouring, you can base the conditional formatting on a similar-sized/shaped layout elsewhere in the sheet and format it accordingly. For example, the following layout provides this yet allows you to enter content in the conditionally formatted area:
Use the formula conditions. I put a start date in A1, and an end date in A2. Modify as needed per your requirements.
Then I will apply conditional formatting to values in range E1:E6. Again, modify as per your requirements.
Then simply use Highlight cells Rules > Between
Then, select your start/end values and press OK. Voila!