Trying to set up a bit of a to do list with conditional formatting dates. Any time I open the file B2 will load =today()'s date. What I'm hoping to do is find a formula that will allow something like if C2 < B2 (Over due) then conditional formatting rule, or if C2 is 7 days more than B2 then format rule 2.
Not sure how to proceed with this as =today() isn't being treated like numeric data.
Any suggestions?
Thanks!
To apply to C2, 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::
=C2<B2
Format..., select choice of formatting, OK, OK.
Then repeat with:
=C2=B2+7
and (presumably) a different choice of formatting, though could be the same (in which case a single rule would be sufficient).
Beware if C2 contains time as well as date the second rule above will not work (and not that formatting will only work for 7 days time, not 6 nor 8 ahead etc, only seventh day from today not counting today).
TODAY() could be part of the formulae (if adjusted) - does not need to bein a separate cell.
To apply to ore than one cell (eg an entire column) is quite possible with slight adjustments.
Related
i am trying to make a work calendar for myself. screenshot of the excel file
I have written a conditional formatting to color all saturdays and sundays with the following code
=OR(WEEKDAY(B2)=2,WEEKDAY(B2)=1)
how can i make the Entire column under that day be colored.
Thanks :)
If you are not going to be moving columns around (Friday will always be in whichever cell it is at present and days just continue in sequence to the right) it might be easier to select the entire range to be subject to formatting and HOME > Styles - Conditional Formatting, New Rule..., Use a formula to determine which cells to format and Format values where this formula is true::
=OR(MOD(COLUMN(),7)=3,MOD(COLUMN(),7)=4)
Format..., select your choice of Fill, OK, OK.
Adjust 3 and 4 to match whichever day you choose to start the sequence with wherever your selected range starts.
Given information you have withheld of what is where the above might be simplified.
In Conditional formatting | Use a formula...
=WEEKDAY(B$2,16)<3
extended from B2 down and across.
Looks like you need to add a relative cell reference on B2:
=OR(WEEKDAY(B$2)=2,WEEKDAY(B$2)=1)
Here's an article about using relative references in conditional formatting: https://www.ablebits.com/office-addins-blog/2014/08/07/relative-absolute-cell-references-excel-conditional-formatting/
i'm newbie in excel and i have an excel sheet where i need to change the cell color if the date mentioned in the cell is becomes 15 days old and also add a status in next column as pending.Please help with this.
Assuming your dates are in ColumnA, please select that column 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()-A1>=15
Format..., select your choice of colour for formatting, OK, OK.
If the "pending" labels re then to be added in ColumnB where appropriate please put in B1 and copy down to suit:
=IF(TODAY()-A5>=15,"pending","")
You could use the pending in ColumnB to trigger the colour for ColumnA but it may be better to keep the two requirements separate. If you were to trigger via 'pending' you would still need a formula rule, rather than a "cell content" one.
Change 15 to 20 when you have decided what the interval should be. Beware that if your ColumnA values include times (even if not displayed) you cannot reliably simplify >=15 to >14.
This is the formula you might be looking for:
=IF(DAYS(TODAY(),A1)>=15,"pending",other_status_you_use)
Then you should go to
Conditional Formatting > Highlight Cell Rules > Text that Contains...
There you can type pending and change the color as you wish.
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).
I am trying to do conditional formatting on the below example.
I would like to highlight certain columns/cells based on the day of the week. For example, if the date is a Tuesday, then I would like the WeHo, Sunset, WW, MB, Irvine, BrentW, Cienega and Hun B columns highlighted. If possible I would like to base the day of the week off the pre-existing date in cell A2, since we do our work one day before hand (working on a Monday, but cells are highlighted as if the actual date was Tuesday).
Assuming that the date in A2 is a Monday and you want B2:B20, E2:E20, J2:K20, Q2:Q20 and T2:U20 to be formatted then please select those ranges (with Ctrl depressed) and HOME > Styles - Conditional Formatting, New Rule..., Use a formula to determine which cells to format and Format values where this formula is true::
=WEEKDAY($A$2)=2
Format..., select your choice of formatting, OK, OK.
Sounds like you want to use formula conditional formatting. Basically, go to the formula conditional formatting and =$A$2="Tuesday" then click ok and make the "apply to" apply to the column you want highlighted when A2 says it's a Tuesday.
I have a table:
I want cells which top cell (B1, C1) is older than corresponding date value (column D) to be filled with red, as shown below:
Here C3 needn't be red because 15 Feb is in February.
How can I do this with conditional formatting?
Use Conditional Formatting, Use a formula to determine... and enter the formula
=DATE(YEAR($D2),MONTH($D2),1)>DATE(YEAR(B$1),MONTH(B$1),1)
(or the shorter =EOMONTH(B$1,0)<EOMONTH($D2,0) as suggested by pnuts),
and Applies to
=$B$2:$C$4
The formula gets rid of the day in each of the two cells to be compared, keeping only the months/years. It also uses suitable relative/absolute indexing for the matrix.
I have used both, each with different formatting, to test them at once.
Use Conditional Formatting.
Use a formula to determine.
Enter the formula
=DATE(YEAR($D2),MONTH($D2),1)>DATE(YEAR(B$1),MONTH(B$1),1)