"How to format cell based on data in sam column but previous row" - gs-conditional-formatting

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.

Related

Conditional format formula for row colour based on date, but to ignore if other cell contains certain text

I have a Google sheet that I want to apply conditional formatting, the formula I have now doesn't seem to work as it still highlights rows that I want to ignore.
I have about 15 columns of data but only want to focus on columns B,C,D
B Order status
C Date ordered
D Ship by date
Originally, I was trying to only highlight rows that are overdue.
So that if the date in D cell is today onward it would make the row red, but, to ignore this rule if the status in B cell is 'fulfilled'.
This formula ( I had someone do for me ) kept giving random results
=IF(AND($D1 > TODAY(),$B1 <> "FULFILLED"),TRUE,FALSE)
I would also like to add 2 other conditions to colour grade rows.
-To mark the rows as green from order date up to 3 days before the due date
-To mark the rows as orange 3 days before and up until the due date.
So that orders that have not been fulfilled will go from green to orange to red.
If unclear, I can provide more information.
WORKING ANSWER:
=IF(AND($B2 <> "FULFILLED",$D2 <TODAY()),TRUE,FALSE)
Link

Google Sheet Conditional Formatting Based on Date

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.

Repeat conditional formatting formula

I'm using Google Sheets and I have a pattern that repeats every 10 rows: A number in A1 and other stuff in A2:A10. Then the same again: A different number in A11 and other stuff in A12:A20. I want to apply conditional formatting to each block, based on the first number. For example, turn all A1:A10 cells green if A1 is greater than 5. The problem is I want to do it for the whole column and for all new blocks, without having to enter the formula each time a block is added. Is it possible? Thanks
Create a helper column B with this formula:
=INDIRECT("A" & ROUNDUP(ROW(B1),-1)-9)
It will return the value of the first cell in each group, repeated down the column (rows 1:10 will show the value from row 1, etc). Then, apply the conditional formatting based on that column.

Colour a cell based on the length of time between that date cell and another date cell

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

Conditional formatting based on a date OR if another cell is blank

I'm trying to set up conditional formatting to change the color of cells in column A if the date is more than 1 day before today's date AND the corresponding cell in column F is blank (ie, A2 and F2). If there is a date in column F, then I do not want the cell in column A to change color. I also want to copy a variation of this formatting into column F (if the date is older than 3 days before today's date AND the corresponding cell in column G is empty), and column G (corresponding with column H). If possible, I'd also like to format column I to change color if the date is today's date, or earlier, but to not change color if there is a date in column H.
All the previous formatting I've attempted has either changed the color of all the blank cells in the column, or will only work for one of the conditions (whichever is at the top of the list), or not at all. Any help would be greatly appreciated!
(I tried to include an image for reference, but it won't allow me)
For the cell, A4, I have created the following formula, which only triggers if the date is older than yesterday and the cell F4 is blank.
=AND(NOT(ISBLANK(A4)),A4<TODAY()-1,ISBLANK(F4))

Resources