So I want to have a cell change red if the date in that cell is 2 months from todays date. (contract end date is 17th July, 1 month from now, cell is red)
I have put:
=Today() in cell Y3
=($Y$3-$B3) in cell Z3 and dragged it down, as all dates are different
And then in Column B:B where the dates are I condition formatted - custom formula is and put =AND(($Z3>0), ($Z3<60))
Not working :(
You can just use conditional formatting on the columnB:B.
Set the custom formula to:
=AND(B1 <> "", ROW(B1) >= 3, EDATE(TODAY(), 2) > B1)
ROW(B1) >= 3 - assuming your data starts from the 3rd row.
Related
As of now, I would like to compare a range of values (different rows but same cells) and highlight them according to the result.
Let's say that we have Row A with some numbers and Row B also with numbers.
A B
10 5
20 30
30 40
I would like to use conditional formatting to highlight cells in Row B if they are greater than in Row A. Like iterate through each of them, compare A1 < B1 (A2 < B2.. A"X" < B"X") and highlight each of them if the cell is greater.
Could you support me on this? Thanks in advance!
In order to do that
Go to Format > Conditional formatting > format cell if... and Choose Custom formula. and Paste this formula in "Value or Formula". take a look at the Example Sheet.
=IF(A2:A="",,B2:B>A2:A)
Explanation
IF Range A2:A is Empty "" Do nothing ,, if isn't Empty check if B2:B > A2:A if TRUE Highlight green if FALSE do nothing.
You can use in Custom formula is
=B1>A1
OR (to take into account empty cells in column A)
=AND(B1>A1,A1<>"")
I have a table for each week of the year with week number in column A. then for column B, C, D and E I have results for each person per week. I want to condtional format the cell based on the result of the previous week. eg week 3 is the same or higher than week 2, I want week 3 to be green, but if then week 4 is lower than week 3 to show as red.
I have tried multiple different custom formula's based on different examples i've seen but none are working
Please select from B3 to the row of the last cell in your table and ColumnE (assuming you have a header row) and: Format > Conditional formatting..., Format cells if... Custom formula is and:
=B3>=B2
with green highlighting and repeat with instead:
=B3<B2
and red highlighting.
I am stuck on a formula for the conditional cell formatting. I want to highlight cells based on "AND" rule of these two conditions:
In cell H3 I have % values. I want to highlight cell where value is below 90%.
AND
In cell B3 I have date formatted as MM/DD/YYYY. I want to highlight cell when the current date is one day before compared date in B3.
I tried:
=AND(H3<90,B3 < TODAY()-1)
What I am doing wrong?
Here is an example.
Works fine and as intended. However this might be the formula you're looking for:
=AND(H3<90,(B3-1) <=TODAY())
This query is in relation to Google Sheets.
If the date in B1 is 10 days older than the date in A1, then B1 is shaded red.
If the date in B1 is within 10 days of the date in A1, then B1 is shaded green.
Does anyone know how I can do this please?
We hope to use this as follows:
Record the date we submit a product.
Record a date to show we have detailed the product as suitable.
(We want this to be within 10 days of us initially submitting the product.)
Therefore we submit a product on the date in A1
We then detail the product as suitable and record this date in B1.
If we have done this within 10 days, B1 should be green. If not, it should be red. This will help us deal with delays.
Does anyone know how I can do this within Google Sheets please?
You have to use Format > Conditional Formatting for the column B, defining the range from the second row:
B2:B1000
You have to set the range this way because the formula is always evaluating in its top left corner first. So you can get the past date from row 1 and formatting the cell in row 2.
You should format your cells with custom formula like:
=DATEDIF(A1,A2,"D")>10
Your B column by default can be green.
You can check my demo sheet for this problem here.
DATEDIF:
https://support.google.com/docs/answer/6055612?hl=en
Conditional Formatting:
https://support.google.com/docs/answer/78413
I have a date in cell B1 and list of Dates in A1:A100.
I would like to get for B1 the cell in A1:A100 where the date has the smallest difference in time.
As you can see in the example, the closest Date to B1 from A1:A100 is in cell A2.
A B C
1 15.4.2011 03.3.2011 A2
2 01.3.2011
3 11.7.2011
4 09.2.2011
To get the dates which are nearest to the date in cell B1, try the following formula in some free cell:
=arrayformula(filter(A:A,abs(A:A-B1)=min(abs(A:A-B1))))
And to get the row number in which the nearest date is, try the following formula:
=arrayformula(match(filter(A:A,abs(A:A-B1)=min(abs(A:A-B1))),A:A,0))
And finally try the following formula for your desired result:
=arrayformula(address(match(filter(A:A,abs(A:A-B1)=min(abs(A:A-B1))),A:A,0),1,4,true))