Highlight cells in one column based on date in adjacent column - excel

How do I change the cell fill color of the cells in a certain column when it is 16 days past the dates in the adjacent column?
The cell should only change color if the cell does not have any text in it.
eg. Cell E1 should change to blue fill if today's date is 16 days past the date in cell D1 AND cell E1 is blank (there is no text entered in this cell).
In the image, cell E1 needs to be highlighted blue as there is no text in it and it is beyond 16 days past the date in cell D1.

How to change the cell fill color of the cells in a certain column when it is 16 days past the dates in the adjacent column. The cell should only change color if the cell does not have any text in it. eg. Cell E1 should change to Blue fill if today's date is 16 days past the date in cell D1.
with this one, you can try to use =now() in one cell once done, subtract that to your your cell e1, you can use conditional formatting tool on the top side of your menubar in excel. (home > Style) go to conditional formatting> highlight cell > more rule > use formula.

here's the sample one.
on your cell a1 , add this formula =e1-(date(year(now()),month(now()),day(now()))
once done, use the conditional formatting to hightlight the cell e1 when value of a1 =>16 days.
go to conditional formatting> highlight cell > greater than option, a new field will show, highlight the cell a1 then add > 16.
make sure that you are on cell e1 when doing the conditional formatting.
dont forget to tag this up if this helps you :)

I used =AND((TODAY()-(INDIRECT("RC[-1]",0))>16), ($E1="")) in the conditional formatting menu and then used the drag option. It works!

Related

How to enable conditional formatting so that a cell becomes red whenever today's date becomes previous cell's date + work days?

Cell A1 (till A10) contains random date. I want B2 (till B10) to become red on the 3rd work day after A1. Also, if B is empty or NA then dont color B.
For example: if A1 = 18Oct, then B1 should become red on 23Oct. If A2 = 21Oct, then B2 should become red on 24Oct.
What code should I put in conditional formatting?
Highlight the relevant range in Column B, which is B1:B4 in the above example, enter the following formula as the formatting rule for conditional formatting:
=NETWORKDAYS($A1,$B1)=4

Why is this condition comparing dates returning true?

I have a column full Dates and I am trying to highlight all of the dates if they are before 30 before todays date.
An example of why what I have that is not working is the value in the cell is 4/12/2017 and it is being highlighted when only values before 4/01/2017 should be highlighted (today is 5/01/2017).
My rule in conditional formatting is
Format only cells with:
cell value less than =Today()-30
*change background color*
but the 04/12/2017 is still being highlighted.
Select the first cell in the range you need to format, then put that cell into the formula. For example, if you select A1 change the formula to:
=A1<TODAY()-30
Then click OK and check your 'applies to' range.
You probably also want to filter out blank cells. For this you can change the formula to:
=AND(A1<TODAY()-30,A1<>"")

Excel conditional formatting per row cells

Is it possible to create a conditional statement to do the following without having to create the conditional format for each row?
For each row, if row column D cell is less than the value of row column A cell I want it to highlight red. If row column D cell is greater than the value of row column A cell, I want it to highlight green.
Example:
if D1 < A1 Highlight RED
if D1 > A1 Highlight GREEN
if D2 < A2 Highlight RED
if D2 > A2 Highlight Green
and so on and so forth....
Assuming you want Column A's cells to highlight the color, set up your conditional formatting like this:
Formula: =$D1>$A1 for Green, =$D1<$A1 for Red
Then, make sure the "Applies To" range is correct (this is where I personally usually mess up):
Applies to (for both): $A$1:$A$10
If you want the row to highlight, then the "Applies to" range is =$1:$10 or just =$A$1:$D$10.

Conditionally format one cell based on values in a column

The user enters a date/time into cell B2. If this matches one of the values in column L I would like to format cell B2 as red, else format cell B2 as green.
Any idea how to do this?
Please format B2 green with standard fill, then apply the following Use a formula to determine which cells to format, Format values where this formula is true:
=match(B2,L:L,0)>0
with formatting (red) to suit and Applies to B2.
Assuming you are using Excel 2007 onwards:
Set cell shading for B2 = Green
Select Cell B2 and select the Conditional Formatting > New Rule menu item
Use a formula to determine which cells to format
In the formula bar, put in =ISNUMBER(MATCH(B2,$L$6:$L$100,0))
For format, change shading to Red
Obviously change the $L$6:$L$100 to suit you, but that should do it...
What about breaking this up into two steps.
Try putting a simple formula in Cell B1:
=ISNUMBER(MATCH(B2, L:L, 0))
This will return a TRUE if there's a match and a FALSE if there is not a match. Then make two conditional rules based on Cell B1.

In Excel, I want to make the text of a cell disappear if the adjacent cell is blank

In Excel, I want to make the text of a cell disappear if the adjacent cell is blank. Or the reverse: when text is entered into a cell, a specified number appears in the adjacent cell.
Ex. When any text is entered into A4, the number 43210 appears in cell B4.
Formula in cell B4
=IF(ISBLANK(A4),"",43210)
You could also use conditional formatting, stablishing a rule that sets text colour to white using the formula
=$A4<>""
on cell B4

Resources